How to get log from an android application I want to see the log files of an android app and all of its outputs when it runs. Please tell me how i can do this. Thanks in advance


Integrate: $\int e^{2\theta}\sin(3\theta)\ d\theta$

$$\int e^{2\theta}\sin(3\theta)\ d\theta$$   I don't know where to stop when it comes to questions such as this? Can you make me aware? I believe there was a possible prior person who answered the same question but they failed to indicate what the       I was and in the larger scheme of things why there was no need to further integrate or utilize another method to integrate.


20-25 percent difference in view in between Facebook ad clicks are visible in Google Analytics

We advertise blog posts of our blogging website on facebook but there is a huge difference between Fb ad clicks and clicks available on Google analytics.  Few user has reported about this issue that when they click on  our website page Fb post, Sometimes it doesnt take it to our website.  When i tried to debug a problem then i found this that whenever we click on any post on fb, Instead of taking it directly to our website , It makes a http-post request to this    using form-data like this   *__a:1 __af:i0 __be:-1 __dyn:aKhoFeyfyGmaomgDBUOWOGi9EwlUJ6yUmyVbGAEG8UNFLOaA6em5-rmi9GaxOfiLyFpe8QueCHxvxqqqUnCG22aULhUKbkwzzEG5WAzHBA--VRxeUWbByp-EiGtWzVUogHDh8LBxDVF8SLQhDBzA5KuiaAz8gAVCcy46oZolByFGADh8zyogyVoWbCAwBxl5DyFLZoSLiQ48Ccy8CF8hJkQiambGl7m8UmVmEhDCGVt4gmx2iiESnAiKaCWVE __pc:PHASED:DEFAULT __req:5s __rev:2806747 __user:100003297861120 fb_dtsg:AQHTCPlVp6c1:AQGsGXeHA0-B ph:V3 q:[{"user":"<someuserid in Numeric>","page_id":"<page id>","posts":[["click_ref_logger",["0hC3",1485929631555,"act",1485929631554,41,"https://www.someurl.com/","click","click","timeline_main_column","r","/ourwebsite/?fref=ts",{"ft":{"tn":"HH","top_level_post_id":"1421442361208771","tl_objid":"1421442361208771","fbfeed_location":36},"gt":{"type":"click2canvas","fbsource":703,"ref":"nf_generic"}},476,9653.222473150425,0,1012,"b6omca","XPagesProfileHomeController"],1485929631555,0],["ods:ChannelTransport",{"sendPull.json":[1]},1485929631564,0]],"trigger":"ods:ChannelTransport","send_method":"ajax"}] ts:1485929631565 ttstamp:2658172846780108861125499495865817111571881017265484566*   Ofcourse they do this for analytics and from their internal server they redirects to our page.  My question is how can i debug that why my users are not able to reach my website from fb post clicks.  I have already checked this  url debugger tools from facebook and my url are fine for sharing   Also if a url is scrapped by Fb scrapper and its already posted on Fb page, Then it shows that there is no issues with our url.


* * * * * export DISPLAY=:0.0 && usr/bin/notify-send "Hello world!"   I added the above command to the crontab, notify-send is working from terminal but not from the cron. Also checked the logs, its working every minute but notifications are not being displayed.


Edit: This is not asking how to get Ubuntu to remember WiFi passwords. I'm asking for the opposite.  Most of the other questions I find ask how to get Ubuntu's NetworkManager to stop forgetting the WiFi password. Instead, here I'm wondering how to get it to forget the password each time. That is, for security purposes, I would like it so that I would manually need to choose a WiFi network and enter its password each time I start Ubuntu and login. I already know how to get it to stop automatically connecting to a network, but not how to get it to be amnestic about passwords.


Suppose A answers question Q with a clever answer. Then, to gain more reputation, A starts a bounty  for 50 points on Q with the expectation (it's a gamble) that the extra attention will collect at least 5 upvotes for A's answer.  A can't award the bounty to his or her own answer, of course, but still comes out with more reputation (assuming that the extra attention was effective in collecting at least 5 votes).  On one hand, if the answer is good, then it's nice that the answer (and other answers that may get provided) and the question get more attention.  On the other hand, this seems like reputation gaming, and a bit sketchy.  More importantly, it means that starting a bounty can cause a net gain in reputation for the bounty starter, meaning that there's incentive for every answerer (with confidence in the quality of their answer) to do this, thus lowering the value of the bounty system (since so many questions would receive bounties).  Has this been addressed somehow?  Should it be?  Notes:   I haven't actually observed this anywhere, but I haven't looked for it either.


How can I prove $(n^2)!$ greater growth than $(n!)^n$

I tried take limit n goes to infinity. Wolfram solved the limit and $(n^2)!$ has greater growth rate but there is not step by step solution. I think I can simplify $(n!)^n$ to $(n^n)^n$ But how can I prove $(n^2)! > (n^n)^n$


Binding to actualWidth doesnt work, allthough it works in the designer; wpf

I wrote an application in WPF and binded the width of an rectangle to the with of a grid columnDefinition. I filled it red to test if it works. It works in the designer but when I start the application I cant´t see anything red. That´s my main window: <Grid>         <Grid.ColumnDefinitions>             <ColumnDefinition x:Name="col1" Width="200"/>             <ColumnDefinition Width="5"/>             <ColumnDefinition x:Name="col2"/>         </Grid.ColumnDefinitions>         <Grid.RowDefinitions>             <RowDefinition x:Name="row1"/>         </Grid.RowDefinitions>          <GridSplitter Grid.Column="1" SizeChanged="CanvasChangeSize" HorizontalAlignment="Stretch" Width="5"/>         <Rectangle Fill="Red" HorizontalAlignment="Left" Height="50" StrokeThickness="0" VerticalAlignment="Top" Width="{Binding ElementName=col1, Path=ActualWidth}"/>      </Grid>  Can anyone help me?


Aborted connection - Got an error reading communication packets

I'm using MySQL Community Server 5.7.15-log and MySQL Connector/ODBC 5.3.6 on Windows 2012 and getting a lot of these messages:     [Note] Aborted connection X to db: 'Y' user: 'Z' host:   'localhost' (Got an error reading communication packets)   I have max_allowed_packet set to 1G:  mysql> SHOW GLOBAL VARIABLES LIKE 'max_allowed_packet'; +--------------------+------------+ | Variable_name      | Value      | +--------------------+------------+ | max_allowed_packet | 1073741824 | +--------------------+------------+ 1 row in set (0.14 sec)  mysql>      Any advice?


Proof that CRF models and logistic models are convex functions

Where can I find a good proof that CRF based models and logistic regression based models are convex? Is there a general trick to test/prove that a model or objective function is convex?


How can I get my WYSIWYG editor to stop *#@&%^ing up my HTML?

I've tried every combination of "CLEANUP AND OUTPUT" settings that might conceivably prevent munging my HTML, but nothing works.  No matter, what, my HTML gets flattened or in some way rewritten, mainly with whitespace being trimmed off that I want to leave in.  I would suspect CKEditor (version 3.6.4.7575) except that when I tell WYSIWYG to "Apply source formatting", CKEditor doesn't prevent that, so it seems that logically this problem is in the WYSIWYG module.  "Apply source formatting" simply causes the HTML to be screwed up differently.  Some linebreaks are left in place, but spaces at the beginning of the line are left in place.  How can I prevent this, and still use a WYSIWYG editor?


Interpreting multiple regression with transformed response variable

I have build regression model focused on association between physical activity and fat mass. The model is as follows: model <- lm(FMI_W ~ IG_WD + SEX + MOTHER_BMI_W + MOTHER_EDUCATION_CATEGORIES, data = df_adolescent)  Where FMI_W = Fat mass index winsorized, IG_WD = novel metric from accelerometers which is reflecting negative drop in intensity of physical activity as time increase and is always negative. However this model is violating the assumptions of normality and homogeneity of residuals. As result I decided to log transform the respons variable as it improves residuals of the model. But now I am having problems with interpretation. The model and results are following: > model <- lm(log(FMI_W) ~ IG_WD + SEX + MOTHER_BMI_W + MOTHER_EDUCATION_CATEGORIES, data = df_adolescent) > summary(model)  Call: lm(formula = log(FMI_W) ~ IG_WD + SEX + MOTHER_BMI_W + MOTHER_EDUCATION_CATEGORIES,      data = df_adolescent)  Residuals:      Min       1Q   Median       3Q      Max  -1.18164 -0.32438 -0.01599  0.28784  1.20763   Coefficients:                              Estimate Std. Error t value Pr(>|t|)     (Intercept)                 -0.601001   0.326940  -1.838   0.0669 .   IG_WD                       -0.414468   0.129461  -3.201   0.0015 **  SEX                          0.520450   0.049994  10.410  < 2e-16 *** MOTHER_BMI_W                 0.030605   0.006954   4.401 1.45e-05 *** MOTHER_EDUCATION_CATEGORIES  0.010488   0.050510   0.208   0.8356     --- Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1  Residual standard error: 0.4389 on 333 degrees of freedom Multiple R-squared:  0.3521,    Adjusted R-squared:  0.3443  F-statistic: 45.23 on 4 and 333 DF,  p-value: < 2.2e-16  Could you please help me with back transformation of estimate of IG_WD. For me it doesn't make sence to use exp(-0.414468) = 0.6606917 as the exponential result is positive value but according to what we know about physical activity it should decrease fat mass. If I use the model with violating the assumptions so without the log transformation I get estimate around -1.9 for IG_WD. Also I have tried BoxCox transformation as is in this post   Actualization: The FMI_W is a shortcut for fat mass index which is equvivalent of $FMI = fat mass(kg)/height^2(m)$. _W stands for winsorzed data to reduce outliers. Summary of FMI_W: > summary(df_adolescent$FMI_W)    Min. 1st Qu.  Median    Mean 3rd Qu.    Max.    1.532   2.648   4.111   4.634   6.202   9.875   Distrubution of FMI_W can be seen on next plot:  As suggested in the comments. Would be the glm with gamma family link = "identical" appropriate?


Doing bad in undergraduate but good in a masters program

Suppose you do bad in undergraduate school in say computer science. But you do very well in a masters program in computer science. If you want to apply to a PhD program in computer science, will the masters degree grades offset the undergraduate degree grades?


How can I use '*' to capture everything with exceptions

For example, I have files named   A_1.txt A_t_1.txt A_ts_1.txt A_tsa_1.txt   in a directory ~/admin/packages/.  I am building a for loop to by globbing to A_1.txt   for f in ~/admin/packages/*_1.txt   It's obvious that this can potentially glob to any one of these files.  Specifically I would like to use an "exception" command (if it exists) to say glob to any file as long as it does not have a t, s, a before _1.txt.  EDIT: I forgot to mention that I have the path stored as a variable.  PROJECT="~/admin/packages/*_1.txt"  for f in ${PROJECT}...


Make grub show at startup - Single Boot System - Grub 2 Grub Latest

I want to know how to make Grub load up when my laptop boots! I searched all over askubuntu forums and the answers I found were from 9 years ago! Feel free to ask questions! I will accept all edits to this post!


In  note, I've read that $\mathbb S_n$ is a semidirect product of the alternating group $A_n$ by $\mathbb Z_2$. So I am trying to define a morphism $\rho: \mathbb Z_2 \to Aut(A_n)$ to show that $\mathbb S_n \cong A_n \rtimes Z_2$. I would appreciate suggestions on how could I define the morphism. Thanks in advance.


I understand why this is the case comparatively , if a set is looked at as being a 'box', then the empty set is considered to be an empty box. So the set $\{1,2,3\}=A$ is considered to be a 'box' containing elements $1,2,3$, and $\{1,2,3,\emptyset \}=B$ is the set containing the elements  $1,2,3$ and an 'empty box'?   What I struggle with is how this intuition would make sense given the empty set is a subset of every other set.   Also, I know that $\{\emptyset \} \neq \emptyset$, so would it be the case that for the given set $A$, $\emptyset \subset A$, but that $\emptyset  \notin A$, as the set containing no elements is not in the set $A$, but $\emptyset \in B$ is true, right?  In the midst of forming this question I thought of a way of looking at this question, but I am not sure whether it is correct:  So continuing with the comparison of looking at a set being a 'box', $\emptyset \subset A$ simply means that the the set $A$ has some 'free space' in the box, and so the set could be visualised by $A=\{1,2,3,\qquad\}$?, and every set\'box' has some 'empty space', whereby the 'empty box' represents simply  the collection of that void.  Does this analogy capture the true picture of Why $\{1,2,3\} \neq \{1,2,3,\emptyset \}$ and $\emptyset \subset A$?  Just a very quick question,  Is the power set of $C=\{1,\emptyset\}$,  $$\mathcal{P}(C)=\{\{1\},\{ \emptyset \},\{1, \emptyset \},\emptyset \}?$$


$G$ a finite group $n$-abelian goup and g.c.d.$\big(|G|,n(n-1)\big)=1$ , then to show $G$ is abelian

Let $G$ be a finite group and $n$ be a given positive integer such that $(ab)^n=a^nb^n , \forall a,b \in G$ and   g.c.d.$\big(|G|,n(n-1)\big)=1$ , then how to prove that $G$ is abelian ? If I can show that   $(ab)^{n(n-1)}=a^{n(n-1)}b^{n(n-1)} , \forall a,b \in G$ then I would be done , so I'm also asking , is this identity true ?


How to offset the texture coordinates of an object with an array modifier for mapping an image texture?

I'm trying to model some house siding. I'm using a single board with an array modifier. The problem is that when I go to texture them I can only texture the first one, and they all have the same texture. How can I offset the texture so that each new board on the array modifier has a different texture?  Here's a picture:    All the boards are an array from a single board, and I'd like to be able to offset the texture for each new board, but have no idea how. Here's the texture I'm using (Image 2).  (CGTextures)  I'd also (preferably) not have to apply the array modifier before offsetting the textures, but if that's not possible, that's fine.  Edit: The duplicated question does in no way answer my question, and is quite different. The only detailed answer is referring to generated textures, I'm using an image texture. Please explain how my question is answered in the other question marked as duplicate. The previous person who asked a similar question to mine commented on the first answer that he could work with generated textures, I cannot use generated textures in this situation.


Solve for the angle UFO with the russian triangle

I know that this question has been posted already, but I saw that is possible to draw the triangle of the question inside of the russian triangle. Can someone help me to finish the question using this?    I find a lot of angles and I got the equation $∠UFO+∠UFN=100°$, but I couldn't find the value of $∠UFN$


What is the difference between union and union all in SQL?


Why does Ubuntu still require restart after kernel updates when tools out there mean it's unnecessary?

A regular occurrence in updating Ubuntu is kernel updates, which require a restart. There are applications which negate the need for a restart after a kernel update e.g. ksplice.  Why doesn't Ubuntu use tools similar to ksplice? Are there security, memory, etc. concerns to not restarting immediately/ever? Or, can these issues be overcome (i.e. are they just bugs)?


Unable to get Facebooks "Lookback Video"

Is this video a one time link? I realize it's still very new and we're all still working out the kinks and such but I was able to view and share it once, then I deleted it. Now when I go back to the link, it just thanks me and the video is no longer there. So is there no chance of viewing this again or what??


Is it possible to force an app to use cellular data instead of WiFi?

Our local office provides free public WiFi for phones and tablets, but blocks access in ways that means that some applications (like WhatsApp) are unable to connect. Is there any way to configure Android so that a certain app (in this case WhatsApp, but could be others) will always use cellular data even though it is connected to a WiFi access point? Bonus points if it'll only do it for a specific access point, so we can configure it to use cellular data for the office, but at home it'll still go over WiFi. Currently the only alternative is to either keep WiFi off (which is much slower and eats into data caps) or keep toggling WiFi on and off (which is really quite annoying). (Free or paid solutions appreciated. Using Android 4.3. Would prefer solutions that don't require root, but if that is the only way, then so be it.)


How to numerically find the mode of a joint probability distribution from samples?

I have a large number of samples (say $N$) from a multimodal joint probability distribution, for example:  a     b     c     d     e     f  0.01  5.37  2.87  3.22  1.93  5.38 0.07  5.24  2.99  3.56  2.02  6.01 ...   I want to find the values $(a,b,c,d,e,f)$ at which the joint probability density function attains its maximum value.   How can this be best achieved?


How to add new macros like \author{} without editing latex.ltx

I want to write a new class based on the article class for student home-works that needs a modified title page.  Is it possible to create new macros like \title{} and \author{} that can be used in the modified \maketitle code (e.g. \tutor{} and \dueDate{}) without editing the latex.ltx file?  In the question  the class that is worked on is memoir.cls while I'm trying to modify the article.cls. Furthermore the best solution given is by adding new information to \author macro and not on how to add new macros that are ready to use in the preamble.


Philosophy: how to begin? (from a context of having studied mathematics)

I have just finished my second year of a pure mathematics degree and am intrigued by philosophy, and would like to spend my summer learning more about philosophy to accompany my mathematical interest.  I have no prior knowledge or study of philosophy, so I am very much looking for resources for beginners.


Windows 10 (Build 1607) won't allow remote desktop connection

My laptop is running Windows 10, build 1607, and no longer allows remote desktop connections to be made. When it was running Windows 8 and the previous versions of Windows 10 (before the major updates) remote desktop connections worked perfectly fine. The machine can still make remote connections to other computers, but other computers (both Windows 7 and 10) can no longer 'see' it.  I have done all the obvious fixes and checks, ensuring my computer is on a local network, ensuring firewalls from both machines are disabled, checking to see if remote assistance is permitted on the machine (it is, at the option is enabled) and trying to access the computer via IP and computer name.  The problem is baffling- and the menu the lists the options for remote access seems to have changed from previous versions (screenshot attached)


Book where characters have powers that get stronger as they get closer to the center of the world

I'm looking for a young adult series. I read the first of installment a long time ago and I have never been able to find the rest. It starts with the protagonist scamming people with his ability to change the image displayed on the surface of an object; in this case, he changes one playing card to another in street games of "queens", where the goal is to find the queen. There are (maybe) 9 "dimensions" and as the characters go deeper into the realms, their abilities get stronger. For example, in the second realm, the main character can not only transform the surfaces of objects, but also the inside: he turns arrows shooting at his friend into harmless rose petals.


Sometimes I have seen people ask questions using sentences which don't start with an auxiliary verb:     You don't like to eat ice cream?   Instead of:     Do you like to eat ice cream?   Is it okay ask questions in both cases? I think its common around Internet people asking question like that but how correct it is?


/private/var/folders not getting empty after reboot on macOS Catalina

/private/var/folders is not getting empty after reboot. The folder is 200 GB! I tried safe mode too and it didn't change.  How can I thin out the folder(s)?


This form has been disabled due to suspicious content error message in Cognito Forms

Getting this error message:      Invalid Form      Our apologies, this form has been disabled due to suspicious content. If you believe you have received this message in error, please contact the original form author.   Any advice?


Should I use "in" or "at" in the following sentence? "Join us at/in our Spanish patio."

Which should I use in the next sentence?     Join us at/in our Spanish patio.


Is it known whether a triangular number can be any power with exponent greater than $2$?

Here :    I asked how it can be proven that a triangular number (a number of the form $\frac{n(n+1)}{2}$) cannot be a cube, fourth power or fifth power and lulu posted very useful results which probably solve the problem completely.   But even more seems to be true :   CONJECTURE : A triangle number cannot be a power $k^s$ with $k\ge 2$ , $s\ge 3$  The conjecture is true for $n\le 10^9$ and I currently verify the range $[10^9,10^{10}]$ without having found a counter-example yet.     Is it known whether this conjecture is true ?


Alternative way of saying "calling a spade a spade"

I found this expression curt and powerful. But I also understand it's offensive to someone, and somehow, has a racist implication.   Is there a similar curt and powerful expression I can use without offending anybody?


This is about the seemingly controversial shield to ground connection. The system is basically a body-worn intel-based computer, powered by a battery. Two USB 3.0 (or 3.1 Gen1) cables come out to a PCB that contains two USB 3.0 hub chips (). Two external cameras plug in to this usb hub PCB (one camera for each hub). So the usb hub PCB has 4 usb connectors (2 upstream and 2 downstream).  The question is, what to do with each of the usb connector shields? The main directive is USB connection robustness.  I have seen many recommendations. For example:  Recommendation 1  TI's TUSB8020B hub reference design  ties all shells directly to ground.    Intel's  also recommends to tie to ground (although this was written for USB 2.0).    Recommendation 2  TI's TUSB8020B EVM (and datasheet) connect shields together, and to ground using RC filter:    Microchip's  also ties shields together and uses an RC filter, but a 3 orders of magnitude smaller R:    Recommendation 3  Cypess  ties each shield independently to ground using either LC or L filter (chokes really):    The cameras themselves (off the shelf) use Cypress recommendation (LC to ground). The embedded computer seems to tie to ground from visual inspection and checking continuity to ground, but I'm not 100% sure (schematics are not available).  Now we face the shield dilemma with the hub PCB (which by the way currently does not have a metallic enclosure, it is a 3d printed plastic enclosure).   What is your say?


I want to put a camera on my roof and possibly record for 24 hours. What do I need and how can this be done? I think generally, people take photos correct? I am thinking I might have to hook up a 1TB harddrive some how.


Remove spot on sensor Olympus OM-D E-M10

I've got a visible spot on the sensor of my OM-D E-M10 (Mark I). I think it's a tiny splatter. Can I clean it with a cotton swab and some alcohol for example? I assume there is a piece of glass in front of the sensor?


Why does a simple pendulum or a spring-mass system show simple harmonic motion only for small amplitudes?

I've been taught that in a , for small $x$, $\sin x \approx x$. We then derive the formula for the time period of the pendulum. But I still don't understand the Physics behind it. Also, there's no angle $x$ involved in a spring-mass system, then why do we consider it an SHM only for small amplitudes?


Java - Mistakenly removed /System/Library/Frameworks/JavaVM.framework/Versions

Using Mountation Lion, I've mistakenly removed all of the content in /System/Library/Frameworks/JavaVM.framework/Versions How can I get java working again on my machine? (I don't have it in Trash)  Also worth noting, I do have /Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk  UPDATE: I ended up upgrading to Mavericks.


how to find generic datatype size in JAVA?

I have tried T.SIZE/8 for this question, but gives me an error.  and I have also tried Integer.Size this gives me an correct solution 4 bytes.  so how can I find SIZE for Generic datatype T in JAVA?  MY PROGRAM:  class A<T> {   T a;   T b;   A(T a, T b) {     this.a = a;     this.b = b;   }   void s() {     System.out.print("size in byte is "+(T.SIZE/8)+"bytes");   } }  class Demo {   static public void main(String a[]) {     A<Integer> ob = new A<Integer>(10, 20);     ob.s();   } }


How to import/export textures created through nodes to UE4?

I am trying to export this rock model over to Unreal Engine 4. So far, i can import the mesh, but i cant figure out how to import the textures. keep in mind that the texture is made purely from Nodes (veroni, noise ect) so importing the .png isnt possible     just to clarify, i would like to import the textures, made purely using nodes, into Unreal Engine 4 (if possible).  Thanks


Choice of $q$ in Baby Rudin's Example 1.1

First, my apologies if this has already been asked/answered.  I wasn't able to find this question via search.  My question comes from Rudin's "Principles of Mathematical Analysis," or "Baby Rudin," Ch 1, Example 1.1 on p. 2.  In the second version of the proof, showing that sets A and B do not have greatest or lowest elements respectively, he presents a seemingly arbitrary assignment of a number $q$ that satisfies equations (3) and (4), plus other conditions needed to show that $q$ is the right number for the proof.  As an exercise, I tried to derive his choice of $q$ so that I may learn more about the problem.  If we write equations (3) as $q = p - (p^2 - 2)x$, we can write (4) as   $$ q^2 - 2 = (p^2 - 2)[1 - 2px + (p^2 - 2)x^2]. $$  Here, we need a rational $x > 0$, chosen such that the expression in $[...]$ is positive.  Using the quadratic formula and the sign of $(p^2 - 2)$, it can be shown that we need   $$ x \in \left(0, \frac{1}{p + \sqrt{2}}\right) \mbox{ for } p \in A, $$  or, for $p \in B$, $x < 1/\left(p + \sqrt{2}\right)$ or $x > 1/\left(p - \sqrt{2}\right)$.  Notice that there are MANY solutions to these equations! The easiest to see, perhaps, is letting $x = 1/(p + n)$ for $n \geq 2$.  Notice that Rudin chooses $n = 2$ for his answer, but it checks out easily for other $n$.  The Question:  Why does Rudin choose $x = 1/(p + 2)$ specifically?  Is it just to make the expressions work out clearly algebraically?  Why doesn't he comment on his particular choice or the nature of the set of solutions that will work for the proof?  Is there a simpler derivation for the number $q$ that I am missing?


Adding line break in displayed math, only one equation

This question may seem like a duplicate, but I haven't seen any satisfactory answer in similar questions.  Is there a way to add a line break in displayed math mode without using multiple-line environments such as gather or eqnarray? I want to display an equation that spans multiple lines inside an equation environment (so that the entire thing only gets one number).  My current code:  \begin{equation}    A_i=A_0-\sum_{j=0}^{i-1}[(2^i\cdot3)\cdot\frac{s_i^2}{18}\cdot sin(\alpha)]=%    \sum_{j=0}^{i-1}[(2^i\cdot3)\cdot\frac{(\frac{s_0}{3^i})^2}{18}\cdot sin(180º-\frac{120º}{2^i})]=%    \sum_{j=0}^{i-1}[(2^i\cdot3)\cdot\ddfrac{s_0^2}{18\cdot3^{2i}}\cdot sin(180º-\frac{120º}{2^i})] \end{equation}   This "overflows" the line:   I want to add a line break in between (after one of the = signs), but still have the whole thing labelled as (4.7).


Manga where the main character is summoned by a king of a kingdom, then kicked out to live in a forest infested by an army of the demon

I forgot the description, but it's about the mc being summoned by a king of a kingdom, then kicked out to live in a forest infested by an army of the demon. He later purifies the whole Forest. I read this about a year ago, and the last time I checked, it had more than 10+ chapters, probably 15-30.


How to perform a spatio-temporal query in attribute table?

I am not good at programming, so I would ask for your understanding concerning my question.  I have an attribute table that contains five columns which are: (Date, ID, Latitude, Longitude, Rainfall).  Rainfall for different periods of time (which are defined in column "Date") have been recorded in certain stations.  In the column "ID" is the ID of the station on which the recording has been made for a specific period of time. Every station has a unique ID, but at the same location, rainfall has been recorded for different time periods. On the column "Rainfall" appears the amount of rain that was recorded on the specific time and the specific station.  My question is, how can I get the total rainfall in a certain station that has been recorded, using all the records in column "Date" that refer to that specific station. Could I somehow use the coordinates of its station to get the total rainfall that has occurred on that specific station?  The software I use is QGIS 2.4 on Windows machine.


unable to install synaptic package manager

i am new to linux and so far i am getting the hang of it but i was not able install anything with software center so i looked up the error i was getting and i found  and i did the first command "sudo apt-get update" and as always it asks for my password and i put it in and i get   Hit:1 http://dl.google.com/linux/chrome/deb stable InRelease Hit:2 http://archive.ubuntu.com/ubuntu xenial InRelease          Get:3 https://dl.winehq.org/wine-builds/ubuntu xenial InRelease [6,259 B] Get:4 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]        Ign:3 https://dl.winehq.org/wine-builds/ubuntu xenial InRelease Get:5 http://archive.ubuntu.com/ubuntu xenial-security InRelease [109 kB] Fetched 225 kB in 2s (111 kB/s)                              Reading package lists... Done W: GPG error: https://dl.winehq.org/wine-builds/ubuntu xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 76F1A20FF987672F W: The repository 'https://dl.winehq.org/wine-builds/ubuntu xenial InRelease' is not signed. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details.   and since i am new to linux i didnt know what it was doing i guessed it was getting the download files to install it with and so i put the next command "sudo apt-get install synaptic" and i got   E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?   and i didnt know what it meant so i tried to find the app and it doesnt show it, as if i never installed it. so i guessed it didnt work, so i tried the same command and got the same message. and i am on Ubuntu 16.04.6 LTS


The command . .bash_profile is used to reload(?) bash_profile. What is the general purpose of the first .? How it can be used and is there a resource to read about these type symbols of Terminal?


how to integrate $\frac{1}{\sqrt{e^{2x}+e^x+1}}$

I am having troubles with this integral:   $$\int \frac{1}{\sqrt{e^{2x}+e^x+1}}dx.$$   Could anyone help me?


How can a light cone (volumetric) be setup with cycles?

I tried to reproduce the results from the  unfortunately the video link is broken. And I might have overlooked some related settings.  The spot light is barley visible on the ground.    Increasing the Density of the Volume Scatter Node darkens the sky texture but leads to some light cone from the car's headlight. (only 10 samples in preview).    Which settings do I need to change or should I try a different approach?  Integrator settings are default and spotlight settings were copied from the example found in the docs.  Related:    (pre 2.7)  (BI only)


How to modify the label name in subfigure?

How to modify the subcaption "Figure 1a" to "Figure 1 (a)"?  \documentclass[12pt]{article} \usepackage{blindtext} \usepackage{graphicx,psfrag,epsf} \usepackage{epstopdf}  \usepackage{float} \usepackage[export]{adjustbox} \usepackage{mathtools} \usepackage{verbatim}  %\usepackage[subrefformat=parens,labelformat=parens, labelsep=quad]{subfig} \usepackage{subfigure} \usepackage{caption} %\usepackage{subcaption} \newcommand{\bs}{\boldsymbol} \renewcommand\thesubfigure{\alph{subfigure}}  % correct bad hyphenation here  %\pdfminorversion=4 % NOTE: To produce blinded version, replace "0" with "1" below. \newcommand{\blind}{0}  % DON'T change margins - should be 1 inch all around. \addtolength{\oddsidemargin}{-.5in}% \addtolength{\evensidemargin}{-.5in}% \addtolength{\textwidth}{1in}% \addtolength{\textheight}{-.3in}% \addtolength{\topmargin}{-.8in}%  \begin{document}  The Figure~\ref{descriptive1} is composed by Figure~\ref{fig:hist_longair} and Figure~\ref{fig:curve_longair}.  \begin{figure}[H]     \center     \subfigure[Histogram]{\includegraphics[width = .42\linewidth]{hist_longair.eps} \label{fig:hist_longair}}%     \quad%     \subfigure[Contour curve]{\includegraphics[width = .42\linewidth]{curve_longair.eps}\label{fig:curve_longair}}%     \caption{Histogram, contour curve and symbolic scatterplot of $\bs{Y}$}      \label{descriptive1} \end{figure} \end{document}


What's wrong with having the same variable in the integrand as in the limits?

To give you a bit of context, if I'm trying to calculate the work done by a force from a distance $x_0$ (given constant) to $x$ (variable), I've been told (in lectures) to write the work done  as $$W=\int_{x_0}^x F(\xi)d\xi \tag{1},$$ rather than $$W=\int_{x_0}^xF(x)dx \tag{2},$$ the reason being that "we've got the same variable in two places".  But what exactly is wrong with this?   Is $(2)$ wrong?


Do particle velocities in liquid follow the Maxwell-Boltzmann velocity distribution?

The Maxwell-Boltzmann velocity distribution arises from non-reactive elastic collisions of particles and is usually discussed in the context of the  (for gases). There are various offhand remarks, for example  (slide 5), that state without reference that particles observe a similar velocity distribution in liquid. Is that true? References?  The main reason I'm curious is that it seems as though the mean free path would be extremely short in liquid vs. gas. I'm actually most curious about the nature of the collisions in liquid vs. gas, i.e., are collisions in liquid still (on average) elastic?  EDIT: The linked post on  is definitely interesting and weighs in on this question, and I appreciate the distinction made between local position fluctuation vs. long range movement. Still, let me frame this question in a few different ways.   Gillespie proposed  which is formulated on the idea that non-reactive elastic collisions serve to 'uniformize' particle position so that the assumption of well-mixedness is always satisfied (see page 409 in the linked version). This is formulated from kinetic theory. A corollary to this is that a non-reactive collision between two molecules that are able to react does not induce local correlation, i.e., two particles able to react with each other that just collided, but didn't react are no more likely to react with each other in the next dt than any other particle pair in the volume. Gillespie's algorithm is commonly used in biology where biochemical species are modeled in the aqueous environment of cells. Is this valid, and if so why? On a microscopic scale, suppose we are interested in two 'A' particles diffusing in one dimension in an aqueous environment. The two A particles collide but don't react. What is their behavior immediately after the collision? Is it a 'reflection' which conserves velocity and might correspond to a Neumann BC? In a gas that approach seems natural, but in liquid the short mean-free path makes me think that diffusive forces would rapidly dissipate any momentum from the A-A collision, which might imply the A particles collide and 'stop'. How should I be thinking about this?   Just to bring it back to the original question, I think both (1) and (2) depend on the statistical velocity behavior of particles in liquid.


I'm trying to include a png figure and it works when I see it in dvi, but the ps comes in black and white.  If I compile directly to pdf there is no problem. However I'm using psTricks for a different figure, so I need to use ps first.  Any suggestions?


Javascript, calling function within promise

Explanation of code  I have a function called placeDecode which takes an HTML input element. Within the function I have a promise which converts input value into a formatted address.  I called placeDecode twice, to check when both called have been resolved I use a Promise.all, checking both each function call. My problem arises when I try to call a function viewResult, I get Cannot read property 'viewresult' of undefined error.    Code      //call function twice     var startAddress = this.placeDecode1(this.searches.startSearch);     var endAddress = this.placeDecode1(this.searches.endSearch);        //promise all     Promise.all([endAddress,startAddress]).then(function(values) {       this.viewResult(values);      }).catch(function(result){       console.log(result);     })      console.log('hit');   }     //method convertes input into formatted address   private placeDecode1(input: HTMLInputElement) {      var result = new Promise(function(resolve, reject) {       var location = input.value;        var geoCode = new google.maps.Geocoder();       geoCode.geocode({         address: location       }, function(result,status){         if(status == 'OK'){           console.log(result[0].formatted_address);           resolve(result[0].formatted_address);         }       })     });      return result;    }       Problem  The problem I am having is when i call this.viewResult(values); , I get an   Cannot read property 'viewResult' of undefined Error.  many thanks


Adding a single forward slash or double backward slash to directory path in java

I am using JFileChooser to get a directory path in a project of mine. It is working perfectly, but there is a little problem. Suppose this is the directory structure:  ->Home   ->Documents     ->Java   This is the code:  JFileChooser fileChooser=new JFileChooser();         fileChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);         int userSelection=fileChooser.showSaveDialog(this);         if(userSelection==JFileChooser.APPROVE_OPTION){             try{File fileTosave=fileChooser.getSelectedFile();                 File newFile=new File(fileTosave.getAbsolutePath()+"satish.txt");                 System.out.println(newFile);                 this.dispose();}             catch(Exception e){}         }   If currently i am inside the java folder, it gives me the path Home/Documents/Java(or Home:\Documents\Java) in windows. What I want is that it should return the path which includes single forward slash or double forward slash (according to plaform) such that it looks like Home/Documents/Java/. I want to do this because later I have to append a file name to this path such that file path becomes Home/Documents/java/file.txt.  Any Idea on how to do this?  I don't want to add slashes manually because then I would also have to keep the platform in mind.  Thank you!


Dimension reduction for discrete qualitative and aggregated variables

I know about PCA for multiple dimensions of continuous features but here is a problem I have some trouble to find a method for.  I don't have a list of individual countries but rather a discrete classification of countries, and for each line (which I'll call segments) I have two output variables.  Each line can represent one or several countries, as long as they fit all the classifications of this particular line. In case a line represents several countries, then the output variables are total values (in case of a number like total population) or pondered averages (in case of a percentage like employment rate).    So my questions are:   Does this particular way of organising data have a name? How can I isolate the most influential dimensions for, say, Employment rate? (aka discriminant analysis) How can I perform something similar to PCA with this discrete classification instead of continuous values as dimension values?


I know there is k-means clustering algorithm and k-median. One that uses the mean as the center of the cluster and the other uses the median. My question is: when/where to use which?


Why is present perfect not possible in this case

Two days ago I tried to order a book but could not pay because your system  has not accepted Paypal payments yet. I don't understand why present perfect with yet can not be used yet means that one day the system will accept this payment but not now, so I really don't understand why it is not possible.


Powerdot breaks with both minted and verbments

I am sure I am not the only one trying to put some computer code onto my slides. When it comes to LaTeX presentation class my choice as a long time PostScript/PSTricks  user is of course . When it comes to syntax highlighting I really like minted not at least because I am heavy Python user. Recently I also discovered verbments which is maintained by a guy from my late mother's hometown so I gave it a try.  I really like verbments and maintainer's  explanation for what problems he was trying to solve with  verbments sound very plausible. However both  verbments and minted break Powerdot. This is MWE with verbments  and Powerdot.  \documentclass[style=husky]{powerdot} %\pdsetup{ %palette=red %} \usepackage{amsmath,amsfonts,amssymb} \usepackage[dvips]{hyperref} \hypersetup{colorlinks} \usepackage{color} \definecolor{darkred}{rgb}{0.5,0,0} \definecolor{darkgreen}{rgb}{0,0.5,0} \definecolor{darkblue}{rgb}{0,0,0.5} \hypersetup{colorlinks, linkcolor=darkblue, filecolor=darkgreen, urlcolor=darkred, citecolor=darkred} %\usepackage[all]{hypcap} \usepackage{psfrag} \usepackage{graphicx} \usepackage{fancybox} \usepackage{fancyvrb} %\usepackage{minted} \usepackage{verbments} \newtheorem{theorem}{Theorem} \newtheorem{proposition}{Proposition} \newtheorem{definition}{Definition}    \title{Association Rule Learning}  \author{Predrag Puno\v{s}evac\\          Auton Lab} \date{\today} \begin{document}  \maketitle  \begin{slide} {Use Cases}  Some text \begin{pyglist}[language=python] import numpy as np def boring(args = None):     pass \end{pyglist}  \end{slide}   Running latex (it is well known that Powerdot doesn't work with pdflatex command)    latex --shell-escape filename.tex   I get the following error  Runaway argument?  import numpy as np def boring(args = None): pass \end {pyglist}  ! Paragraph ended before \FV@BeginScanning was complete. <to be read again>                     \par  l.48 \end{slide}   Which looks very similar to the way   Are there any suggestions how to work around this issue? I have managed to import the code essentially by tex-ing it separately and including it into Powerdot as a eps image. However quality leaves much to be desired.


How do I add automatically labels to the incoming emails in my Gmail account?

How do I add labels to incoming emails that I am sending to myself. I saw somewhere that it is possible to send emails to myself using specially formatted email addresses that are containing the labels in the email address, but never managed to make it work.   Is it possible this at all? if yes, how?


I only have the Ubuntu Server. Can I install Ubuntu Desktop?

Like it says above, I only have a server. Am I able to download the desktop version (preferably 16.01 LTS, if I'm remembering the right one) from a repository?


Windows Subsystem for Linux: /home/user (Linux Home Directory Path) to use for ConEmu Terminal?

I'm trying to set up 2 terminal location tabs to open in my  on Windows 10 (for Windows Linux Subysystem)  1. Windows Home Directory C:\Users\USERNAME     or... %USERPROFILE%  and 2. Linux Home Directory C:\Users\USERNAME\AppData\Local\Lxss\home\USERNAME        or... %LOCALAPPDATA%\lxss\home\USERNAME  The Window Home path works fine, but I'm not sure how to make the Linux Home path work? The closest I can get is to making it open up the root / location. Does anyone know the right way to do this?


Can I travel to Italy with two passports: an EU passport and non EU?

I am going on a school trip next week to Rome, Italy. The flights were booked before the summer in May, using my Filipino passport. But over the summer I received my EU passport (I am living in Ireland, so I'm an Irish citizen). I was wondering if I can still fly to Italy without a visa on my Filipino passport since I have my EU passport?


I have a table with the following structure below:  Id (Int), Telephone_Number (Int), Name (VARCHAR), Address (VARCHAR)   I wish to create a covering index for this SELECT query:  SELECT Id FROM mytable WHERE Telephone_Number = '55442233';    I understand covering indexes remove the amount of Disk I/O as the indexes are stored in the memory cache, therefore increasing performance.  For my SELECT query, am I right in saying making Id an index will not remove the need for Disk I/O due to the WHERE clause needing access to the Telephone_Number value?  If so, would a composite index of (Id, Telephone_Number) work as a covering index? Or do covering index have to be single column's?


I need to prove that $$\sum\limits_{k=0}^{n}2^k \binom{n}{k}=3^n$$  for any integer $n$. Induction seems to be the straightforward solution, but I have failed at it:  \begin{align} \sum\limits_{k=0}^{n}2^k \binom{n}{k}=\\\sum\limits_{k=0}^{n-1}2^k \binom{n}{k}+2^n=\\ \sum\limits_{k=0}^{n-1}2^k \binom{n-1}{k}\frac{n}{n-k}+2^n=\\ \sum\limits_{k=0}^{n-1}2^k \binom{n-1}{k}\left(1+\frac{k}{n-k}\right)+2^n=\\ 3^{n-1}\sum\limits_{k=0}^{n-1}2^k \binom{n-1}{k}\frac{k}{n-k}+2^n=\\ \end{align}  The last step is the induction hypothesis and the base of induction is trivial. I'm not sure what to do next.  There might also be a combinatorical proof: the expression on the left is the amount of ways to pick some balls out of $n$ balls and color each one of them in either of 2 colors. However, I do not follow how that is equal to $3^n$.


Product of cosines: $ \prod_{r=1}^{7} \cos \left(\frac{r\pi}{15}\right) $

Evaluate $$ \prod_{r=1}^{7} \cos \left({\dfrac{r\pi}{15}}\right) $$  I tried trigonometric identities of product of cosines, i.e, $$\cos\text{A}\cdot\cos\text{B} = \dfrac{1}{2}[ \cos(A+B)+\cos(A-B)] $$ but I couldn't find the product. Any help will be appreciated. Thanks.


Command line: search and replace in all filenames matched by grep

I'm trying to search and replace a string in all files matched by grep: grep -n 'foo' * will give me output in the form: [filename]:[line number]:[text]  For each file returned by grep, I'd like to modify the file by replacing foo with bar.


What are reasonable alternatives to changing your name for academic publishing when you have a common surname?

I've recently embarked on my PhD studies (cancer, structural biology) and have yet to publish. Currently, there are some 200 papers in my name and several thousand under my surname. Because of this, I am considering switching my surname to an old, rare, surname in my family, which is only used by one active researcher.  My question is this: are there any reasonable alternatives that does not include legally changing my name? I personally don't mind changing it, but the old surname happens to be "noble", and may come off as quite pretentious. I would be able to change to another, less pretentious, surname, but in terms of rareness, no alternative comes close.   In short, what are my alternatives?


I have a city model (all one mesh) and a separate curved base plane. I would like to have the bottom faces of the each building in the city mesh flat against the plane and keep each building at 90 degrees to follow the curve of the base plane. This is illustrated here in the inception movie poster although this looks more like a sharper curve than I thinking but is a very good visual.    (source: )    I have tried the shrink wrap modifier but cant seem to get the settings to keep each building 90 degrees to the curve. I cant use the particle method because I want to use a real city model that is one mesh.  How can I do the Inception style city on a curved plane effect in blender?


I want to move my .xml files from a directory (let's call it "from") to another (we'll call it "to") but using wildcards moves unwanted files like .xml_. How can I move them while being specific about the ".xml" extension?


My old passport with US Visa in it was declared lost or stolen

My old passport  under my nickname with US Visa in it was declared lost or stolen So I wasn’t able to leave. US authorities asked me to get a new passport. Now i have my new passport with my name in my birth certificate. Can I still travel to the USA?


Is it advisable to use lead-free PCB and solder paste on a first SMD assembly job?

I am sending my first PCB design to Sunstone for manufacture and I need to decide whether to order the board finish lead-free. All of the components are lead-free, and I have not decided on solder paste. There are about 25 chips on the board and the smallest are 0803 and SOT143. The board size is 3.0x1.5 inches. I am planning to order a cheap IR reflow oven like the T962A. This is not a consumer product (it's a driver board for an IR laser used in scientific experiments). I understand that lead-free solder doesn't flow as nicely and requires higher temps, etc. Shoud I Go Green or should the additional usage complexity dissuade me from using lead-free?  Followup question: should I order a stencil for a board like this?


Why do vapour cones form around jet fighters?

Apparently this phenomenon has nothing to do with jets breaking the sound barrier and has something to do with the  as described on Wikipedia. But, the Wikipedia article isn't very detailed and it doesn't explain why the cone arises.  Is there a reason why a "cone", of all the possible shapes, forms around the jets?


Describe the maximal ideals in the ring of Gaussian Integers $\Bbb Z[i]$.  So first of all my question would be - Is it possible to write any ideal of $\Bbb Z[i]$ (which happens to be a PID) as $\langle a\rangle$ or does it have to be $\langle a + bi\rangle$ or are they the same thing?  i.e Can ANY Ideal in $Z[i]$ be written as $\langle a\rangle$ ?  Further, I am not able to continue. Please help!  Some possible references (I looked through these but to no avail):


I have an standar ubuntu 18.04 installation plus many handmade applications developped by myself.  I need a way to create some sort of installer which will make the same thing as a bootable media installer but will install (and configure) my own applications as well.  PS: I need it for quick deployment.


Is every output of a hash function possible?

Is every output of a hash function (e.g. SHA1, MD5, etc) guaranteed to be possible, or, conversely, are there any output values that cannot possibly be created from any input? In other words, are hash functions surjective?  If so, what guarantees this? If not, is it possible to discover such impossible outputs via an attack faster than brute force?


Setting and using variable within same command line in Windows cmd.exe

In Bash, I can do EDITOR=vim command and command will be run with EDITOR set to vim, but this won't affect the value of EDITOR in the shell itself. Is it possible to do this in cmd.exe?


How do I concatenate const/literal strings in C?

I'm working in C, and I have to concatenate a few things.  Right now I have this:  message = strcat("TEXT ", var);  message2 = strcat(strcat("TEXT ", foo), strcat(" TEXT ", bar));   Now if you have experience in C I'm sure you realize that this gives you a segmentation fault when you try to run it. So how do I work around that?


Need an algorithm to calculate all variations (Combination Calculation)

I have a list which has always even item count.  I need an algorithm to find all two member combinations.  For instance if item count is 4, output will be;  Items:  {1, 2, 3, 4 }  ResulSet:  {12}, {34}  {13}, {24}  {14}, {23}  Order makes no difference, {12} covers {21}.  For item count 6, output will be;  Items:  {1, 2, 3, 4, 5, 6}  ResulSet:  12 34 56  12 35 46  12 36 45  13 24 56  13 25 46  13 26 45  14 23 56  14 25 36  14 26 35  15 23 46  15 24 36  15 26 34  16 23 45  16 24 35  16 25 34  Could you show me a way please?  Thank you.  Edit:  Question is really short to read, and if you take 1 minute to read question you can see it is not duplicate like most of people think (probably they are semi-illiterate)  Combination of {1, 2, 3, 4, 5, 6} is  123456 and as you see at top, this is not what I'm looking for. Read question if you want to help or just get off.  Have a nice day.


HDD is seen in BIOS and seen as storage device but never able to boot windows

So I had been literally trying to fix my windows not being able to boot at all for more than 24 hours straight till now. I almost read every single article and troubleshooting step on the web to find a solution but nothing seems to work. I will keep it short as much as I can.  I did all of the following and it was:  "Reset this PC" gave an error "The required drive partition is missing"  "Refresh this PC" gave an error "The drive where windows is installed is locked. Please unlock and try again"  "System restore" gave an error something I don't actually remember but its like "Choose your OS and then try again"  "Automatic Repair" just failed to fix it and reverted me back to advanced options.   After all of that, I did  bootrec /fixboot bootrec /fixmbr bootrec /scanos bootrec /rebuildbcd bcdboot d:\windows (D is where I have the windows installed and C is for system reserved) bcdboot d:\windows /s c: /f ALL   All of these command prompt lines failed giving multiple errors like:  For REBUILDBCD, it said "Identified total windows installations: 1" then clicked "Y" to add it to the list and then it said "The requested system device cannot be found"  For bcdboot d:\windows it said Failure when attempting to copy boot files"   I wiped the disk multiple times using diskpart and installed fresh copies of windows on it 3 times but each time the installation will finish stage 1 (at a very slow pace) then when it restarts to continue installation, it simply won't boot (Windows logo and a spinning dot circle below forever)  I gave up and tried a totally new HDD and installed windows to it, it booted so normal and fast actually so I made sure it was not an issue with the windows.  Now I am booted from the new HDD and reformatted the old HDD and working on data recovery using easeus and it is finding my stuff luckily. It is also noticeable that the old HDD is making some noise while it is reading now as I scan for lost files.  My ultimate question is, will this HDD ever be able to used again? Even as a storage drive not as a drive I boot from? Because it is being seen through the bios boot menu and I see it in the disk management with healthy status. Can this HDD be fixed or I'm better off stop using it?  Here is a screenshot of the health status through SMART using HD Tune Pro:


How to remove duplicate values from an array in PHP

How can I remove duplicate values from an array in PHP?


The square and circle below are tangent at one point and meet at four other points. Whats the radius?

The square and circle below are tangent at one point and meet at four other points, as shown. If the side of the square is 8 units long, what's the radius of the circle?


Not enough space in /var/cache/apt/archives/

When I run the command to install the package solr-jetty, I am told   You don't have enough free space in /var/cache/apt/archives/   Here's the result of the df -H command:    I have installed Ubuntu with VirtualBox on my Mac.  How can I fix this problem?


How to show $n(n+1)(2n+1) \equiv 0 \pmod 6$?

I've been asked to show that:  $n(n+1)(2n+1) \equiv 0 \pmod 6$  I found in a previous question that:  $n(n+1)$ was divisible by $2$ and resulted in an even number e.g  $n(n+1) \equiv 0 \pmod 2$  so I figured I needed to find:  $(2n+1) \equiv 0 \pmod 3$ in order to complete  $n(n+1)(2n+1) \equiv 0 \pmod 6$  but I am unsure on how to find $(2n+1) \equiv 0 \pmod 3$  Is this the right way to find the mod 6 and if so could you tell me how I could find  $(2n+1) \equiv 0 \pmod 3?$


Difference between (int*) calloc and just calloc?

What is the difference between:  int *array; array = (int*) calloc(5, sizeof(int));   and  int *array; array = calloc(5, sizeof(int));   I don't get it. Both samples work. At the university the professor explained why you need the (int*) before the calloc, but I didn't get it.  In the course was a code sample like this:  struct data{    int number;    char *name; }; typedef struct data student;  int main(){     student **list;     list = (student*) calloc(10, sizeof(student*));      //Create structures dynamic in list     ....      return 0; }   I hope someone can explain it to me. Thank you.


Batch file to prompt UAC like Run as administrator

How can I get a batch file to prompt for UAC on Windows Vista to Windows 8 to run with Administrator rights - that is - other than right clicking on the batch file and hitting "Run as Administrator"?


Iterating list and variable at the same time

num_of_class=5 num_of_division=[1,2,3,4,5] for j, i in num_of_divisions, range(num_of_class):     kiki=f"Class {i+1} has {j} divisions"     print(kiki)   I'm expecting an output to be something like but I don't know how to get it. Need help with code for that.   Class 0 has 1 divisions Class 1 has 2 divisions Class 2 has 3 divisions Class 3 has 4 divisions Class 4 has 5 divisions


Certain MultiPolygons cause “BOOM! Could not generate outside point!” in PostGIS?

I've just posted this at StackOverflow and someone suggested I try here. Original:   I'm trying to represent a rectangular area which crosses 180 degrees longitude. For more background see   Here's my test case:  from django.contrib.gis.geos import Polygon, MultiPolygon from my_project.my_app.models import Photo  a = Polygon.from_bbox((30, -80, 180, 80))  # the part to the east of 180 b = Polygon.from_bbox((-180, -80, -160, 80))  # a part to the west of 180 c = Polygon.from_bbox((-180, -80, -100, 80))  # a larger part to the west of 180  ok   = MultiPolygon(a,b) ok2  = MultiPolygon(c) boom = MultiPolygon(a,c)  # This works Photo.objects.filter(location__coveredby=ok)[:1] # This also works so c is ok Photo.objects.filter(location__coveredby=ok2)[:1] # This gives "BOOM! Could not generate outside point!" Photo.objects.filter(location__coveredby=boom)[:1]  # splitting c doesn't help c1 = Polygon.from_bbox((-180, -80, -140, 80)) c2 = Polygon.from_bbox((-140, -80, -100, 80)) test = MultiPolygon(a,c1,c2) Photo.objects.filter(location__coveredby=test)[:1] # BOOM! Could not generate outside point!   By changing the numbers I can make this error come and go. (-180, -80, x, 80) works where x <= -140 for example. For every number there is a threshold like this but I can't find a pattern. For boxes with the same area, some will work and others not. For boxes with the same width some will work and others not.   I can look at the SQL being generated but the areas are represented in binary (EWKB) and I'm not sure how to read it.  Can anyone explain this?


If someone claim that chemical formulation for the water isn't $H_2O$, how we can prove for he/she that water has constituted of $H_2O$ molecules. Generally based on what evidences we sure that water is $H_2O$ (has one oxygen and two hydrogens per each molecule) and isn't anything else?


How to restrict internet access for a particular user on the lan using iptables in Linux

Let's say there are two users on the LAN, A and B. How do I restrict user A from internet access using iptables rules and saving the rules so that after reboot, they are still effective. Suppose also that I want to grant that user access at some point; how do I enable it again? I am using Ubuntu Linux 10.04. It would be nice if anybody show me how to do it from the command line, as I often login to the machine using a local ssh login.


Lie groups: Show $L_y \circ x_t = x_t \circ L_y$ where $x_t$ is the flow of a left invariant differentiable vector field

My definition of a left invariant vector field is one for which the equation $dL_xX = X$ is satisfied, where $X$ is the differentiable vector field and $x \in G$ where G is a Lie group.   Consider the two sides of the equation:  $L_y \circ x_t (p) = L_y(x_t(p)) = yx_t(p)$  $x_t \circ L_y (p) = x_t(L_y(p)) = x_t(yp))$  Why are these equal?


What is the molecular explanation of a common tension in an ideal rope even when two unequal forces are applied at the two ends of the rope?

I'm confused with the concept of tension in strings/rope. I have read that tension is an electrostatic force and is created due to the attractive forces by the particles. I can easily make out that when two equal forces are acting at the two ends of an ideal rope the tension is equal to that applied force, but, what happens when two unequal forces say F1 and F2 are acting at the two ends of the wire, why does the tension produced in the wire lies between the values of F1 and F2? More specifically if we consider any arbitrary particle on the string won't there be unequal forces at the two ends of the particle(i.e. F1 and F2). According to me, the tension should be the result of the two unequal forces. Seeking an answer which involves an explanation of the phenomena in the atomic scale.


Maximum number of even entries in a $3\times 3$ matrix

$A$ is a $3\times 3$ matrix with integer  entries  such that  $\det(A)=1.$  So  what  is  the  maximum  possible  number  of  entries  of  $A$  that are  even $?$   So, I thought about  the  $3\times 3$  Identity  matrix  and  wrote  the  answer $6$$($ Since $0$  is  ***even***$)$  Was it by any chance correct $?$ Or  was  it  wrong $?$  How  to prove that $?$  Thanks.


I have a direct mapped cache of size S with the line size L. The cache is physically indexed and tagged. The physical address is 50 bits, numbered from 0 to 49 (with 0 being the least significant bit). The machine has a word size of 4 bits and the memory is byte-addressable. Which bits of the 50 bits are used to select a word from the line? Is it as many bits as it takes to point of a word in the line size L e.g. if line size is 8 byte then 2 bits are needed? Is it some logarithm again that must be used?


How to use arrow keys to navigate between cells in a crossword puzzle

I am making a crossword puzzle, using a canvas.  How do you get the keyboard arrows to interact with the screen so that when the user presses any of the arrow keys, the cursor will advance to the next available input block.  This is how I drew the blocks on the canvas, with css styles added, button 1 and button 2: The "names001" stands for each box in the puzzle, then each box is assigned a letter value:  var r = event.keyCode; if (r == 13 && m003 == "c") {     w003 = 1;     document.getElementById("names003").value = "c"; }   then a variable checks to see if each word is right and places a checkmark beside clue:   var check001 = w010 + w011 + w012 + w013 + w014;  if (check001 == 5) {      clue001.innerHTML = "✔"  }   Now, I want to know when the puzzle is drawn to the canvas, how do you get the keyboard arrows to interact with the canvas when the user presses one of the arrows(up, down, left, right and also the backspace to clear entry when guess is wrong; I want to move the cursor to advance to the next block.


I am beginner at Blender and have been having this issue in the viewport shading mode. For some reason it gives me these funny shading problems which as far as I have found don't seem to be caused by anything like an extra face sitting in the same place or anything it might be some setting problem.


"Congratulate for" vs. "congratulate on"

Which is correct?     I congratulated him for coming first in the race.      I congratulated him on coming first in the race.


Keyboard shortcut or script to move full screen applications to another screen

I have four physical displays and like using applications in full-screen mode. While working, I typically have around 10 apps running in full-screen. I frequently to rearrange the full-screen windows, moving them from one display to another by switching to mission control mode and then dragging and dropping the windows. Is there a way to do this using a keyboard shortcut or an Apple script? To clarify: I would like the app windows to remain in full screen mode at all times. Tools like Better Touch Tool, , only work with apps that are not in full screen.


Why don't brakes come with 'Safety Levers' any more?

It used to be very common to see bikes with dual pull brake levers (if that's even the right name) as shown below. However now it seems almost impossible to find brakes like this.  Even finding a picture to post was hard.  It seems like it would be quite useful to be able to brake from various hand positions.  There was an answer I read a while back (can't find it now) that stated that there was a reason they got rid of those, but no explanation as to why. So any technical reason, or is it just for looks?


I was re-reading the books and came across these passages:     Once, Aunt Petunia, tired of Harry coming back from the barber’s looking as though he hadn’t been at all, had taken a pair of kitchen scissors and cut his hair so short he was almost bald except for his fringe, which she left ‘to hide that horrible scar’.... Next morning, however, he had got up to find his hair exactly as it had been before Aunt Petunia had sheared it off.        Another time, Aunt Petunia had been trying to force him into a revolting old jumper of Dudley’s (brown with orange bobbles). The harder she tried to pull it over his head, the smaller it seemed to become, until finally it might have fitted a glove puppet, but certainly wouldn’t fit Harry.        On the other hand, he’d got into terrible trouble for being found on the roof of the school kitchens. Dudley’s gang had been chasing him as usual when, as much to Harry’s surprise as anyone else’s, there he was sitting on the chimney.        Harry sat up and gasped; the glass front of the boa constrictor’s tank had vanished.   So Harry's done Apparation, some vanishing spell, and transfiguration (with the old jumper) accidentally before he ever went to Hogwarts. Why doesn't accidental magic seem to happen around Hogwarts?


Can we say an isolated molecule has/is at some Temperature?

I am studying some quantum mechanics and thermodynamics. I have seen that in QM temperature doesn't appears in the formulas. But it appears in statistical mechanics formulas.  The question is: Temperature appears as a phaenomena of a big number of particles? How big must be that number?   EDIT  I have seen the link  but there is no agreement on the answers. So, this question might be Can a single molecule have a temperature? revisited


I got notifications saying "waiting for network" when I tried to download a video file.  How do I get rid of those notifications without restarting the device?  They seem to be unclearable. Why?  Is there a notification removal app that I can use?


How to check if element is visible after scrolling?

I'm loading elements via AJAX. Some of them are only visible if you scroll down the page. Is there any way I can know if an element is now in the visible part of the page?


How to merge my root partition with unallocated space

I have installed Debian as a pure installation in the whole disk. After that I installed another linux distribution alongside Debian. This installation split up my drive in two drives sdb1 and sdb2 with the swap on sdb2. Now I have removed the second linux and need to merge this free space to Debian. I tried with GParted LiveCD but even though the unallocated space is after the root partition it does not give me the chance to extend the root probably because the unallocated space is on the another drive, i.e. sdb2. Here is the picture of my paradox!  I know similar kind of questions were asked and I have read them all but still can't menage this problem of mine so please someone help!


Is there a specific order to complete Saints Row 2?

Is there a specific order to complete SR2?      I remember playing once and Gat got killed, but then later playing against a different gang he was still there for cut-scenes.    This made me thing that I may have done something out of order.


Need install Ubuntu Desktop on lenovo B460e model with Window 7 OS

I am beginner to Ubuntu Linux, I want to install Ubuntu desktop OS for learning purpose.  kindly advise me to install Ubuntu OS on my System.  Anything need to know about system property kindly revert me.  Regards, Mohamed Saleem,


Is there a way one can determine whether to use the definite article before an abstract noun? For example:         little room for imagination    such concepts as subjectivity and imagination   the power of the imagination.       Why is there no article in the first two examples? I'm aware that 'the' points to a specific instance, and it is clear to me why one would say     the imagination of the author or    a reticent imagination.    However, in all the three examples that confuse me imagination is used in a general sense, and yet it takes the definite article in the 3rd instance.


Gravatar profile image not showing sometimes

It seems that with some profiles the Gravatar image is broken. I am not sure if this is an issue with SE or Gravatar, or both, so posting here.  As an example,  shows an error on , which shows a HTTP 500 on Gravatar.  Profile image on SO:        Image on Gravatar:        Switching to the MSE profile of the user, the image is working (but has a different hash).  Is this a bug on the SE side? Can anything be done to make Gravatar fix this?    Update 2016-10-04:  It happened to me again two times today. The last user profile was . Calling the service two or three times fixes the issue.


Does $\sum^{\infty}_{n=1} n/(n-1)!$ converge to something?

I just ran into an expression, and I would like to know what it converges to. $$\sum^{\infty}_{n=1} \frac{n}{(n-1)!}$$  Do you know if it converges to something (like $e$) or, in alternative, how to find out what it converges to?


I am preparing a poster presentation and due to historical reasons I am using beamerposter class for this. At some point I realized that the hyphenation in beamer is "switched off" because authors of the package know that there should be no hyphenation in the presentation.  However, for the poster presentation, missing hyphenation looks ugly.  What is the correct way to use hyphenation with beamerposter? The solution from  works, but needs some extra work by fitting the formatting to other parts of the presentation.  MWE:  \documentclass[final,xcolor={cmyk}]{beamer} \usepackage[english]{babel} \usepackage{kantlipsum}  \usepackage[orientation=portrait,size=a0]{beamerposter} \usepackage{ragged2e}  % justify text  \begin{document} \begin{frame}{}  \begin{columns}[t,onlytextwidth] \begin{column}{.49\linewidth} \begin{block}{Deafault Beamer behavior} \kant[1-2] \end{block}  \begin{block}{Hyphenation works here}\justifying\leftskip=4ex\rightskip=4ex \kant[1-2] \end{block}  \end{column} \begin{column}{.49\linewidth} \end{column} \end{columns}  \end{frame} \end{document}   Note that to make them look similar I need to change leftskip and rightskip to correct value which depends on the theme.


Javascript / jQuery to obtain the id of the textarea that I am typing in

I have a simple form with three textareas each with a different id. I want to be able to press the button and return the id of the textarea where I am typing in. Instead when I press the button I receive the id of the button which is button1: <!DOCTYPE html>             <form>     <textarea id="textarea1"></textarea>     <textarea id="textarea2"></textarea>     <textarea id="textarea3"></textarea>   </form>

   <button type="button" id="button1" onclick="printTagName()">Press</button>    How can I fix this problem?


List of list modified at two places instead of one when putting list[i][j]=10

Consider the following code: list=[[0]*3]*2  list[0][0]=10  print(list) # [[10, 0, 0], [10, 0, 0]]  As you can see, instead of having [[10,0,0],[0,0,0]], list is modified both on [0][0] and [1][0]. Why such behavior ? How can I in general really force [0][0] to have the value I want, and only this one. I would like to avoid using numpy array to do this. A simple answer directly linked on python list


How do I redirect output to stderr in groovy?

I'm looking for a way to redirect output in a groovy script to stderr:  catch(Exception e) {     println "Want this to go to stderr" }


Access to the path is denied when using Directory.GetFiles(...)

I'm running the code below and getting exception below. Am I forced to put this function in try catch or is there other way to get all directories recursively? I could write my own recursive function to get files and directory. But I wonder if there is a better way.  // get all files in folder and sub-folders var d = Directory.GetFiles(@"C:\", "*", SearchOption.AllDirectories);  // get all sub-directories var dirs = Directory.GetDirectories(@"C:\", "*", SearchOption.AllDirectories);   "Access to the path 'C:\Documents and Settings\' is denied."


What is the logic/theorem/derivation behind finding the exponent of p in n! By [n/p] + [n/p^2] + [n/p^3] + ....?

The exponent of prime number of 3 in 100! is 48. It means 100! is divisible by $3^48$ $$E_3(100!) = \left\lfloor\frac{100}3\right\rfloor + \left\lfloor\frac{100}{3^2}\right\rfloor + \left\lfloor\frac{100}{3^3}\right\rfloor + \left\lfloor\frac{100}{3^4}\right\rfloor  = 33+11+3+1 = 48$$ What is the derivation/math behind the above logic?


Setting the correct encoding when piping stdout in Python

When piping the output of a Python program, the Python interpreter gets confused about encoding and sets it to None. This means a program like this:  # -*- coding: utf-8 -*- print u"åäö"   will work fine when run normally, but fail with:     UnicodeEncodeError: 'ascii' codec can't encode character u'\xa0' in position 0: ordinal not in range(128)   when used in a pipe sequence.  What is the best way to make this work when piping? Can I just tell it to use whatever encoding the shell/filesystem/whatever is using?   The suggestions I have seen thus far is to modify your site.py directly, or hardcoding the defaultencoding using this hack:  # -*- coding: utf-8 -*- import sys reload(sys) sys.setdefaultencoding('utf-8') print u"åäö"   Is there a better way to make piping work?


What's the status of the axiomization of physical theories?

I'm interested in physical theories taking the form of precise, unambiguous mathematical statements. What significant work has been done to axiomize physical theories? What is left to be done? The theories I'm referring to are:   Newtonian mechanics and its equivalents General relativity Classical electrodynamics (relativistic and otherwise) Whatever big theories of cosmology there are Quantum mechanics (I know von Neumann wrote about this subject) Statistical mechanics (though it might not be a single theory) Thermodynamics (as it might not all have been reducecd to statistical mechanics) The kinetic theory of gases (probably follows from another theory) Quantum mechanics Quantum field theory Quantum electrodynamics Quantum chromodynamics The standard model of particle physics Any big condensed matter theories


how to hide the entered password with ******* in batch programming?

I have a requirement like whenever we execute a test.bat file then it should ask enter password and entered password should be hidden with *****. Is there any simplest way in batch programming for the above requirement?  I have written the below script using PowerShell is it fine/recommended to use PowerShell for this or any other simplest way is available?  @ECHO OFF  setlocal set "psCommand=powershell -Command "$pword = read-host 'Enter password:' -AsSecureString ; ^    $BSTR=[System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($pword); ^       [System.Runtime.InteropServices.Marshal]::PtrToStringAuto($BSTR)"" for /F "usebackq delims=" %%G in (`%psCommand%`) do set password=%%G echo "%password%"   endlocal   Also suggest how to terminate the batch file as Ctrl+C is not working?


How to change the list of file types which Safari will open immediately after download?

I would like to change Safari Safe List of type files which open immediately after download. Any ideas how?


Let $X \subseteq \mathbb{R}^{n}$ be given by  $$ X = \left\{ (b_{1}, \ldots, b_{n}) \in \mathbb{R}^{n} \mid \sum\limits_{i=1}^{n} \frac{b_{i}}{i} = 0 \right\}$$  Then prove that $X$ is closed in $\mathbb{R}^{n}$.


Why Didn't People Think That Voldemort Died After His Attack on Baby Harry?

After the Avada Kedavra curse rebounded from Harry onto Voldemort, Voldemort disappeared. I'm curious as to why so many key players believed Voldemort was still "alive" somewhere, his powers decimated, but, under the right circumstances, able to return to full power. It seems the witches and wizards in chapter one of Philosopher's Stone, The Boy Who Lived, were happy to believe that Voldemort was gone forever. Why didn't everyone believe Voldemort had died, rather than just disappeared? Was it the lack of a body? Or were there other reasons?  Here's a couple of quotes from Philosopher's Stone if anyone wants to review them. Otherwise, just disregard.     ‘A fine thing it would be if, on the very day You- Know-Who seems to have disappeared at last, the Muggles found out about us all. I suppose he really has gone, Dumbledore?’   ‘It certainly seems so,’ said Dumbledore. ‘We have much to be thankful for.’   Philosopher's Stone - page 13 - Bloomsbury - chapter 1, The Boy Who Lived   ‘But what happened to Vol– sorry – I mean, You-Know-Who?’   ‘Good question, Harry. Disappeared. Vanished. Same night he tried ter kill you. Makes yeh even more famous. That’s the biggest myst’ry, see ... he was gettin’ more an’ more powerful – why’d he go?   ‘Some say he died. Codswallop, in my opinion. Dunno if he had enough human left in him to die. Some say he’s still out there, bidin’ his time, like, but I don’ believe it. People who was on his side came back ter ours. Some of ’em came outta kinda trances. Don’ reckon they could’ve done if he was comin’ back.   ‘Most of us reckon he’s still out there somewhere but lost his powers. Too weak to carry on. ’Cause somethin’ about you finished him, Harry. There was somethin’ goin’ on that night he   hadn’t counted on – I dunno what it was, no one does – but somethin’ about you stumped him, all right.’   Philosopher's Stone - pages 46-47 - Bloomsbury - chapter 4, The Keeper of the Keys


Ignore modified (but not committed) files in git?

Can I tell git to ignore files that are modified (deleted) but should not be committed?  The situation is that I have a subdirectory in the repo which contains stuff I'm not interested in at all, so I deleted it to prevent it showing up in auto-completions and the like (in the IDE).  But now, if I add that folder to .gitignore, simply nothing changes, all the stuff is shown as deleted by git status.  Is there a way to make git ignore it either way?  (Alternatively, as I'm using git-svn, could I commit the changes to the local git and ensure they are not passed on to the svn repo?)


I'm trying to align li items from the top so that they look like this:    However, with my current code, I'm unsure why my list is coming out like so...    .customer-experience .list-items {   padding-top: 110px;   box-sizing: border-box;   list-style: none; }  .customer-experience .list-items li {   width: 33%;   float: left; }  .customer-experience .list-items li h3 {   font-size: 90px;   color: #333333;   font-family: "Oswald";   font-weight: 400;   margin-bottom: 0;   padding-bottom: 50px;   border: 1px solid red; }  .customer-experience .list-items li p {   color: #333333;   font-weight: 400;   font-size: 1.875rem; }

64%

Customers want personalised offers

Up to

€20 million

Fine for GDPR non-compliance

52%

Customers say not enough is done to make them feel welcome

     I've tried to add a fixed height, but 1. I don't want to add fixed heights, 2. It doesn't work anyway. The second list item also has a
 above it, which is maybe contributing to the issue? Ideas?


$A$ and $B$ are infinite sets, is it true that the cardinality of its Cartesian product ($|A×B|$) is equal to max $(|A|,|B|)$?

If $A$ and $B$ are infinite sets, is it true that the cardinality of its Cartesian product ($|A \times B|$) is equal to max $(|A|,|B|)$? If it is true, why? (We assume the axiom of choice)


Am I able to go on mash up packs using pc

Am I able to join XBox worlds, like cool mash up packs?


Is $\mathbf{Q}(\sqrt{2},\sqrt{3}) = \mathbf{Q}(\sqrt{6})$?   If $\mathbf{Q}(\sqrt{2},\sqrt{3})=\{a+b\sqrt{2}+c\sqrt{3}+d\sqrt{6}\mid a,b,c,d\in\mathbf{Q}\}$ and $\mathbf{Q}(\sqrt{6})= \{a+b\sqrt{6} | a,b \in \mathbf{Q}\}$  Assume an element in $\mathbf{Q}(\sqrt{6})$ , then obviously it is also in $\mathbf{Q}(\sqrt{2},\sqrt{3})$.   Assume an element in $\mathbf{Q}(\sqrt{2},\sqrt{3})$ , because we can write: $\sqrt{6} = \sqrt{3} \cdot \sqrt{2} $ and $\sqrt{6} = \sqrt{2} \cdot \sqrt{3}$ the sum of $b\sqrt{3} + c\sqrt{2}$ is equal to a fraction of $\sqrt{6}$.   So $\mathbf{Q}(\sqrt{2},\sqrt{3}) = \mathbf{Q}(\sqrt{6})$.


What should we do when we need to clone an object deeply

According with what was sayed on another question:     The spread operator is like Object.assign and does not deeply clone an   object. The reason the JSON thing worked is because you created a   whole new object which would pass the strict equality check, however   all your components would update needlessly because nothing will pass   a strict equality check now.      Object.assign({}, ...prevState, ...newState) would create a new   top-level object, but it would not create a new object for any objects   nested in prevState or newState. However, you would have to carefully   update nested objects so as to avoid needless re-renders. This can get   tricky for deeply nested objects and arrays.   My question is.... what must we do when we need to return a new version of an object that have properties tha contains arrays? For example:  const foo = {   myArray: [1, 2, 3],   name: 'Hello world' };  const clonedObj = { ...foo }   This will create a new object with a copy of name and it's content, a copy of myArray key BUT not with a copy of [1, 2, 3].  JSON.parse + JSON.stringify does the trick but don't look like a clean way.  What alternative do I have?  Thank you


I can't access an external hard drive (it has Windows 8) through my USB cable

I know this problem can be solved by restarting with Windows 8 in an normal mode, but I don't have Windows 8 any more. I'm trying to rescue the files that I had on a laptop on which the motherboard burned out, and I can't install Windows 8 in this one: I have only Ubuntu on this machine.  I'm trying to mount it from terminal using  sudo mount -o ro /dev/sdc4 at /media/bug/   This gives me the error message  Error mounting /dev/sdb4 at /media/bug/52B0E048B0E0345F: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sdb4" "/media/bug/52B0E048B0E0345F"' 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/sdb4': 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.   How can I recover my files using Ubuntu? It says that I can mount the volume as ro, but I don't know how to do that, and I don't know it that would allow me to copy my files.


How can I install a linux distribution without display?

Let's say I have computer without graphics controller. One of these storage servers with preconfigured Windows Home Server (Lenovo IdeaCentre D400) for example.  Is it possible to install a Linux distribution (preferably Ubuntu/Debian) without a display? Would this be done by installing to a HD which I then put into a headless computer?  Thanks and cheers


How do I disable fog on specific camera/s

I'm building an FPS with fog and I want to include a dynamic minimap, showing the locations of player and enemies in real time. This is utilized by a second camera which is orthographic and looks at the scene from above.    In the minimap, I don't want to see the fog of course. I've hidden other things from the minimap by using layers and culling masks, however the fog does not belong into any specific layer.  So, how do I disable the fog on just one (or some) camera?


How to resize font size of a column in a table?


Is there a way to make the following return true?  string title = "ASTRINGTOTEST"; title.Contains("string");   There doesn't seem to be an overload that allows me to set the case sensitivity.. Currently I UPPERCASE them both, but that's just silly (by which I am referring to the  issues that come with up- and down casing).  UPDATE This question is ancient and since then I have realized I asked for a simple answer for a really vast and difficult topic if you care to investigate it fully. For most cases, in mono-lingual, English code bases  answer will suffice. I'm suspecting because most people coming here fall in this category this is the most popular answer.  answer however brings up the inherent problem that we can't compare text case insensitive until we know both texts are the same culture and we know  what that culture is. This is maybe a less popular answer, but I think it is more correct and that's why I marked it as such.


Can you change a recently deceased familiar’s form when recasting the Find Familiar spell?

One of my players is playing a wizard who knows the find familiar spell. Last session, they had to deal with some hags. While they were scouting a manor, one of the hags attacked his familiar and killed it. I have a problem with this part of the wording of the  spell:  When the familiar drops to 0 hit points, it disappears, leaving behind no physical form. It reappears after you cast this spell again.  Can its form be changed when the spell is cast again? Or does he have to cast the spell once to get the familiar back, and then cast it again to change its shape? I am quite unsure about the wording of the spell, because to me, it seems like when you recast this spell you get the same familiar as you had previously.


Let $a>$ 0 and $k \in \mathbb N$. Evaluate  $$\lim_{n\rightarrow \infty} a^{-nk}\prod_{j=1}^k(a+\frac{j}{n})^n.$$  How is this accomplished?


If $\vec{v}$ is an eigenvector of $A$, then also $B\vec{v}$, when $AB = BA$

I have the following problem:     Let $V$ be a finite dimensional vector space. Let $A$, $B$ be linear maps of $V$ into itself. Assume that $AB = BA$. Show that if $\vec{v}$ is an eigenvector of $A$, with eigenvalue $\lambda$, then $B\vec{v}$ is an eigenvector of $A$ with eigenvalue $\lambda$ also if $B\vec{v} \neq \vec{0}$.   Now, I have to show that if $\vec{v}$ is an eigenvector of $A$ with eigenvalue $\lambda$, then also $B\vec{v}$ with the same eigenvalue.   So I started by assuming $$A\vec{v} = \lambda \vec{v}$$ Then I multiplied both sides by $B$:   $$BA\vec{v} = B \lambda \vec{v}$$ Since $AB = BA$, then $$A(B\vec{v}) = \lambda (B \vec{v})$$ Which should prove what I needed to prove.   Is my proof correct?


Proof That $\mathbb{R} \setminus \mathbb{Q}$ Is Not an $F_{\sigma}$ Set

I am trying to prove that the set of irrational numbers $\mathbb{R} \setminus \mathbb{Q}$ is not an $F_{\sigma}$ set. Here's my attempt:  Assume that indeed $\mathbb{R} \setminus \mathbb{Q}$ is an $F_{\sigma}$ set. Then we may write it as a countable union of closed subsets $C_i$: $$ \mathbb{R} \setminus \mathbb{Q} = \bigcup_{i=1}^{\infty}  \ C_i $$ But $\text{int} ( \mathbb{R} \setminus \mathbb{Q}) = \emptyset$, so in fact each $C_i$ has empty interior as well. But then each $C_i$ is nowhere dense, hence $ \mathbb{R} \setminus \mathbb{Q} = \bigcup_{i=1}^{\infty}  \ C_i$ is thin. But we know $\mathbb{R} \setminus \mathbb{Q}$ is thick, a contradiction.  This seems a bit too simple. I looked this up online, and although I haven't found the solution anywhere, many times there is a hint: Use Baire's Theorem. Have I skipped an important step I should explain further or is Baire's Theorem used implicitly in my proof? Or is my proof wrong? Thanks.  EDIT: Thin and thick might not be the most standard terms so:  Thin = meager = 1st Baire category


Behavior of \global when used with xifthen package

I'm trying to calculate the sum of some numbers in my document. I want to allow non-integer values, so I'm using lengths, which works just fine.  In my document it's often necessary to specify the values for adding to the sum from inside an environment. I learned that the \global command does the trick.  However, I encountered the problem that the \global command seems to not work properly when the xifthen package is loaded, either directly or by another package.  Here's an example:  \documentclass{article} \usepackage{xifthen} \makeatletter \newcommand*{\getlength}[1]{\strip@pt#1} \makeatother  \begin{document} \newlength{\mylength} \setlength{\mylength}{0pt} \getlength{\mylength} {     \addtolength{\mylength}{0.5pt}     \getlength{\mylength} } \getlength{\mylength} {     \global\addtolength{\mylength}{0.5pt}     \getlength{\mylength} } \getlength{\mylength} \end{document}   The output is:  0 0.5 0 0.5 0   Removing the xifthen package produces the expected output:  0 0.5 0 0.5 0.5   Is there any workaround to produce the second output, without having to ensure that no package which uses xifthen is loaded?


Place two logo on top right and top left in beamer presentation

I have a beamer presentation and use the PaloAlto theme. As you can see in the code sample I have two logos over each other. I'd like to place one on the left hand and the other on the right side. Would please help?  \logo{\includegraphics[height=0.8cm]{images/city_magazine_custom_logo}\hspace{-60pt}   \includegraphics[height=0.8cm]{images/ses50}\hspace{-10pt}   }


I just discovered how to use flalign* to left justify my multi-line equation, but I would like it to start immediately after the a) lim... in my enumerate without going to the next line.  \begin{enumerate}   \item \begin{flalign*}           L&=\lim\limits_{n\to\infty}\frac{n}{n^2-1}&\\            &=\lim\limits_{n\to\infty}\frac{n}{n^2-1}\frac{(\frac{1}{n^2})}{(\frac{1}{n^2})}\\            &=\lim\limits_{n\to\infty}\frac{\frac{n}{n^2}}{\frac{n^2}{n^2}-\frac{1}{n^2}}\\             &=\lim\limits_{n\to\infty}\frac{\frac{1}{n}}{1-\frac{1}{n^2}}\\            &=\frac{0}{1-0}\\            &=0          \end{flalign*}    \item   It always goes to the next line. How do I move it up?


We all know that when a photon impacts on an electron it delivers all its energy to the electron and the electron's energy increases and it goes to a higher-energy state -- meaning farther from the nucleus.  And it revolves there.  Now my question is: why does the electron lose its energy and come back to some lower-energy state?  Suggestions for books on QM are welcome.


Why is factorial design advantageous to running single experiments?

I'm stumped on this question- A researcher runs an experiment in which levels of factor A are randomly assigned to study the effects of A. Then a second experiment is run in which levels of factor B are randomly assigned. Why is running a factorial design with both factors A and B advantageous over the approach of running two single experiments? Provide at least one single reason.


The way you would normally include a script is with "source"  eg:  main.sh:  #!/bin/bash  source incl.sh  echo "The main script"   incl.sh:  echo "The included script"   The output of executing "./main.sh" is:  The included script The main script   ... Now, if you attempt to execute that shell script from another location, it can't find the include unless it's in your path.  What's a good way to ensure that your script can find the include script, especially if for instance, the script needs to be portable?


Disabling warning prompt when opening a .doc file in Outlook

I am getting this prompt in Outlook every time I try to open a .doc file.      You should only open attachments from a trustworthy source prompt when opening a .doc file   There is a checkbox that says   Always ask before opening this type of file   which is checked and grayed out. The user does not have local admin privileges. I was wondering if there was a registry edit to resolve this.


Does it matter that in the first line it's written $T(\alpha p+ \beta g)$ and not $T(\alpha p(t)+ \beta g(t))$ but at the end it is written with $\alpha T(p(t)) + \beta T(g(t)))$ with the $t$'s.     Define $T : \mathbb{P}_3 \to \mathbb{R}^4$ by $$T(p) = \begin{bmatrix} p(-3) \\ p(-1) \\ p(1) \\ p(3) \end{bmatrix}$$ Show that $T$ is a linear transformation.


N: Skipping acquire of configured file... as repository... doesn't support architecture 'foreign-architecture'

I am a new user in Ubuntu and installed 16.04 LTS 64-bit. I am seeing an error when I try to update  $ sudo apt-get update  N: Skipping acquire of configured file 'partner/binary-foreign-architecture/Packages' as repository 'http://archive.canonical.com/ubuntu xenial InRelease' doesn't support architecture 'foreign-architecture'   17 times the same line repeats  I have checked and read other related questions, but they are talking about a Google Chrome issue, but I don't have it in my system, All I have is Skype installed (that even doesn't run, it just appears as an icon in dash for some time),   From another  I have tried   $ dpkg --print-foreign-architectures i386 foreign-architecture   as you see it doesn't show me amd64.


Prove that a C2(U) gate (for any single qubit unitary U) can be constructed using at most eight one-qubit gates, and six controlled- NOTs

Its a Problem from  Michael Nielsen quantum computation and quantum information


Prove that there exists at least one subset of the set $A=\{a_1,a_2,a_3,\dots,a_n\}$ such that the sum of its members is divisible by n.

$A$ is a set of $n$ arbitrary natural numbers.  We know that $|A|=n$, so $\forall a_i\in A; a_i=nq+j(i)\ \ \ \ (0\le j(i)\lt n)$.  If there exists an $a_k$ such that $j(k)=0$, then the subset $\{a_k\}$ is the answer.  If not, then $\forall a_i\in A; a_i=nq+j(i)\ \ \ \ (0\lt j(i)\lt n)$.  Then I can say there exist at least two members of $A$ such that $n \mod a_a=n\mod a_b$.  But I can't go further. Help needed.    Guys sorry. It's "divisible by $n$". :-shame


A modern approach to gauge theories; book reference

First of all, I realize this question has been asked multiple times on this site, however most threads are quite old. I am seeking references which aim to teach and review gauge theory with a modern approach. Some of the most notable texts recommended in previous threads are;    Gauge Fields, Knots and Gravity (J. Baez and J. Muniain, 1994) Geometry, topology and physics (M. Nakahara, 2003) Fields (W. Siegel, 1999)   I agree that each of these texts look like solid learning material (I have not yet committed to any of them yet, though), but they are quite old (20 years or so) and I constantly hear/read that the subject is always rapidly advancing. Are these books still the best out there to learn gauge theory, or are there newer resources which take a more modern pedagogical approach? (bonus points if it covers higher-spin and topological field theories).


Only Fixed and Random Options are Working in Illustrator CC 2015 Callipraphy Brushes

App updated but still the same. Only fixed and random options are working in Calligraphy Brushes. I have searched but can't find a solution.


Prove/disprove: $\forall n,a\in\mathbb{Z}: \enspace a^{\varphi(n) + 1} \equiv a \enspace (\text{mod }n)$

A person (Reddit user ) learning about the RSA cryptosystem has  which, while not directly related to RSA, is related to modular arithmetic. We conjecture:  $$\text{For all }n,a\in\mathbb{Z}, \text{we have } a^{\varphi(n) + 1} \equiv a \enspace (\text{mod }n).$$  For numbers $a$ where $a \equiv 0 \enspace (\text{mod }n)$, this is trivially true.  For numbers $a$ which are elements of $\mathbb{Z}_{n}^{*}$ (the multiplicative group of integers modulo $n$), this result can easily be seen as a corollary of Euler's theorem, i.e.  $$\text{If } a \in \mathbb{Z}_{n}^{*}, \text{ then by Euler's theorem, } a^{\varphi(n)} \equiv 1 \enspace (\text{mod }n), \text{ and so } a^{\varphi(n) + 1} \equiv a \enspace (\text{mod }n).$$  Let $X_n := \mathbb{Z}_{n} \setminus ( \mathbb{Z}_{n}^{*} \cup \{0\} )$. The validity of this conjecture for $a \in X_{n}$ is not so obvious — I have not found any counterexamples, nor do I have much of an idea of how to prove this. Perhaps we can derive the result based on the cardinality of the "group" (well, the set; not truly a group since it contains no identity element) generated by each $a \in X_n$ — that is, it would suffice to show that, for each $a \in X_n$, the cardinality of $\{ a^k \text{ mod } n \mid k \in \mathbb{Z} \}$ divides $\varphi(n)$ — but I have not been able to show this, nor have I found any existing literature about such sets.  Is this a known result in number theory? Might anyone prove or disprove this?  Example  Consider the case $n = 15$, then $\mathbb{Z}_{n}^{*} = \{ 1,2,4,7,8,11,13,14 \}$, so $X_n = \{ 3,5,6,9,10,12 \}$ and $\varphi(n) := |\mathbb{Z}_{n}^{*}| = 8$. Observe:  $$\text{For all }a \in X_n, \text{ we have } a^{\varphi(n)+1} \equiv a \enspace (\text{mod }n).$$


phrase use to I want to know is there any phrase use to in english if yes then how to use it


programs removed due to a System restore

After a system restore has occurred, is it possible to get:   a list of programs that have been permanently removed; a list of programs that will no longer function   due to the change?