Regular cast vs. static_cast vs. dynamic_cast

I've been writing C and C++ code for almost twenty years, but there's one aspect of these languages that I've never really understood. I've obviously used regular casts i.e.  MyClass *m = (MyClass *)ptr;   all over the place, but there seem to be two other types of casts, and I don't know the difference. What's the difference between the following lines of code?  MyClass *m = (MyClass *)ptr; MyClass *m = static_cast<MyClass *>(ptr); MyClass *m = dynamic_cast<MyClass *>(ptr);


Can I back up WhatsApp to iCloud completely?

I backed up my WhatsApp to iCloud  but its not shown in the storage distribution on iCloud (only says 9.53 MB messages while its taking 11 gb from my iPhone storage) is there a way I can completely back up WhatsApp to iCloud and have it take no space from my phone storage or less at lease ?


Complete beginner's question: inner tube too big?

My tire wall tells me that my tires are 26 x 1.95. I bought a 26 x 1.75-2.15 inner tube. When I change the inner tube, though, the tube is bigger than the wheel by two inches. How do I determine inner tube size? Or am I just doing this wrong?


When and what cause Voldemort to look the way he does, vs how we've seen him as a teen?

As the title says, when and what made Voldemort look the way he does (pale, snake-like etc) as opposed to how we've seen him in his earlier years as Tom Riddle? Is it just a side effect of his unnatural resurrection? Before he died attacking Harry as a baby did he look like a normal guy?


I have done a research project for a vocational masters. During then, there was a major disruption in the teaching department which affected the supervision process. However, I was already having another Masters degree and was in my last stage of a PhD degree program as well. So I planned, conducted, analysed and wrote my research thesis without any supervision. The only supervision I can think of is reading the completed thesis by my supervisor (which was assigned to me in later stage of the project, who  managed to give very minor comments which I feel was not significant at all as I did not have to change things except some paraphrasing and proofreading as I'm not a native English speaker.   Now I'm in the process of publishing a paper from that research and wondering if I can publish it as a single author paper? I normally do not mind to involve my supervisor or any team member who worked with me in a study as long as I believe there was some how a considerable contribution, but in this time, my work is asking me to publish a single author paper as part of the requirement for promotion so there is another reason to push me more critical for whom should be involved. So do you think it is okey based on the above situation to proceed in publishing the work by my own as a single author paper?   Thank you in advance


Instantiate TinyMCE via JS ( rather than PHP/wp_editor )

Once a page has loaded, how do I create a TinyMCE editor?  Putting a wp_editor call in an AJAX request then displaying it gives this:    Visual and text tabs are nonfunctional, no toolbar, no active TinyMCE instance, just the html markup. I need to instantiate the JS component of TinyMCE, but how?  I've also tried making a call in my AJAX response PHP to _WP_Editors::editor_js();, and I can see the response in the console using console.log and I see the JS script there, but it is not inserted into the DOM and it is never executed


Why does PHP require such an odd way to specify UTF-8?

Accented characters weren't displaying in PHP so I added header('Content-Type: text/html; charset=UTF-8'); to the header.  Still no joy.  But I've solved it: <!DOCTYPE html> <html> <head> <?php header('Content-Type: text/html; charset=UTF-8"'); ?> <meta http-equiv="Content-type" content="text/html" charset=utf-8" / > </head> <body>   Hélène </body> </html>  Notice the difference?  Why should a single double quote before the final single quote make all the difference? If I drop the php making an html file and insert a double quote before utf-8 in the meta tag the way it should be then it doesn't work! I'm using Chrome Version 88.0.4324.150 (Official Build) (64-bit) - haven't tested with other browsers.  Any ideas?


Combining batch actions with manual actions in Adobe Photoshop

I need some help. In the past few weeks I have found a large portion of archived ww2 documents. Now I'm trying  to make proper PDF's out of these files but there is one issue. The archiver who digitized the documents has left a black space around the documents which I obviously would like to remove. This issue however is that the documents differ in size, position and rotation. I have added an example file.  Now I'm wondering if it is possible to design an action which allows me to manually crop a file and then save and close it. in general the batch and action should open the image, allow me to crop and then continue to save and close the file for me. I want to have a minimum of mouse and keystroke actions as we are talking avout several 10.000 images which have to be processed.  Can any one help me?  Cheers


Where do I put item tags on items inside a chest or your inventory?

I am making a Minecraft Mini Game adventure map, and one of the levels has a /setblock command, I am using the command in a way to spawn an item in a chest (Wooden Button) I need the wooden button to have CanPlaceOn tag so it can be placed on a log. I have tried this command: setblock 294 5 -1251 minecraft:chest 0 replace {Items:[{Count:1,Slot:0,id:minecraft:wooden_button,CanPlaceOn:[log]}]}`


Separated partial reputation based on questions and on answers

I've seen a lot of profiles with a much higher reputation than mine, owned by people who never answered a single question.  (Which I think is OK, and fair. After all, they probably are much more useful to the SO community than I am.)  But I really think it would be nice having separated reputations on each profile page, measuring how much of the reputation is made a) by answering questions and b) by asking them.  PS: I'm not asking to change the way the overall reputation is computed. PPS: This question should be a duplicate - I just cannot believe anyone else has thought about that before. But I was not able to find anything. PPPS: This is my first meta question, so please "be gentle" :P


String Reference Variable having same Object value and Stored in Constant Pool Area, giving 'false' output when equated using '==' operator

In Program 1 I have declared two String and initialized them as "MADAM". When running I am checking the equality of their reference variable (by '==' operator') then I am getting a "true" response.  But in Program 2  I am declaring a String 'S' and initialize it as "MADAM". After that i am running a reverse loop and storing the characters of 'S' in reverse order in other String variable.  Now i have again tried to check the equality of reference variable (by '==' operator') and am getting the response as 'false'.  As both the String objects are of same value and are stored in constant Pool Area so both the variable should equate and the output in both the scenario should be 'true'. But WHY it is not same?  Program 1: class Reverse {     public static void main(String[] args) {              String s="MADAM";     String rev="MADAM";      System.out.println(s==rev);   } }   Output - true  Program 2: class Reverse {     public static void main(String[] args) {              String s="MADAM";     String rev="";        for(int x=s.length()-1;x>=0;x--)     {         rev+=s.charAt(x);     }      System.out.println(s==rev); }   }  Output- false


In a (not necessarily commutative) ring, a nilpotent maximal ideal is unique.

Let $R$ be a (not necessarily commutative) ring and suppose $R$ has a maximal left ideal $I$ consisting of nilpotent elements, that is for $x\in R$ there exists some $n\in\mathbb{Z}_{\geq 0}$ such that $x^{m}=1$. I want to show that in this case, $I$ is the unique maximal left ideal.  To attempt to prove this, assume $J$ is some other maximal left ideal of $R$. Since $x^{m}=0$, we have $x^{m}\in J$. This is where I get stuck.  In the commutative case we can note that $I$ is necessarily a prime ideal, so either $x\in J$ or $x^{m-1}\in J$. Iterating this process shows that $x\in J$, then $I=J$ by maximality.  In the non-commutative case I can't seem to proceed. This is probably really easy but I'd appreciate a hint.


Where can I find materials for an Advanced Statistics course?

I'm attending a course in Advanced Statistics and I want to find materials and exercises (like the MIT Open Courses) which cover the syllabus. We're using the book Stochastic Modeling and Mathematical Statistics.  The topics are:   Review of discrete and continuous random variables. Random vectors. Transformations of random variables and of random vectors. Simulation of random variables. Strong laws of large numbers and the central limit theorem. Parametric statistical models. Parameter estimation: maximum likelihood and Bayesian methods. Hypothesis testing. Regression models.


I have a .py file from my Portable Python 2.7.5.1. I've tried using cxFreeze, py2exe and pyinstaller and can't seem to get it working. The only module I am using in my code is easygui 0.95. Any advice?


Winter Bash notification bar left padding is missing

There is left padding missing for the text, but the right padding is perfect in the Winter Bash notification bar (I mark as red line in the picture):


I have defined a new command to change the footnote symbol to an asterisk to be used on a chapter's title:  % New command for chapter title footnote. This command changes the % footnote symbol from a number to an asterisk \newcommand{\chfootnote}[1]{ \let\oldthefootnote=\thefootnote \setcounter{footnote}{0} \renewcommand{\thefootnote}{\fnsymbol{footnote}} \footnote{#1} \let\thefootnote=\oldthefootnote }   But when I use it I end up having a space right before the asterisk (see image below). The space does not appear if I use a regular footnote. What am I doing wrong?  \chapter[test]{Title\chfootnote{This is a footnote.}}     EDIT: Thank you all for the quick response. Here is the new code that does not add whitespace before the symbol.  % New command for chapter title footnote. This command changes the % footnote symbol from a number to an asterisk \newcommand{\chfootnote}[1]{% \let\oldthefootnote=\thefootnote \setcounter{footnote}{0}% \renewcommand{\thefootnote}{\fnsymbol{footnote}}% \footnote{#1} \let\thefootnote=\oldthefootnote }


Does local Lipschitz continuity on a compact metric space imply global Lipschitz continuity?

I've got two problems on this issue:     If $X,Y$  are metric spaces, $X$ compact, suppose $f:X\to Y$ is locally Lipschitz continuous on $X$, then is it also globally Lipschitz continuous?   My guess is yes. I tried using the finite subcover property (as was used in the proof for uniform continuity  on a compact set implied by ordinary continuity): suppose for $x\in X$, there exists an open ball $B(x,r(x))$ with Lipschitz constant $L(x)$, we can adjoin all such open balls to obtain an open cover and hence a finite subcover $B(x_1,r(x_1)),\cdots, B(x_n,r(x_n))$ with Lipschitz constants $L(x_1),\cdots,L(x_n)$. But things were not the same as in uniform continuity proof, because I can no longer confine the two points in comparison to a small neighborhood. I can only find an uniform $L$ such that  $$d_Y(f(\tilde{x}),f(\hat{x}))\le L(d_X(\tilde x, x_i)+d_X(x_i,x_j)+d_X(x_j,\hat x))$$ So I think I'm on the wrong track. Or worse yet, my initial guess is false itself?  The second problem is      If $E$ is a compact subset of $\Bbb R^2$, $f(x,y)$ is locally Lipschitz continuous with regard to $y$ on $E$, that is, for each $(x,y)\in E$, there exists an open ball $B((x,y),r(x,y))$ with Lipschitz constant $L(x,y)>0$ such that $(x_0,y_1),(x_0,y_2)\in B((x,y),r(x,y))$ implies    $$|f(x_0,y_1)-f(x_0,y_2)|\le L(x,y)|y_1-y_2|$$   then is $f$ also globally Lipschitz continuous with regard to $y$ on $E$? In other words, can we choose an uniform $L$ on $E$?   I don't know whether this one is right, let alone any idea to prove/disprove it.  So I need your help here. Thanks in advance.


Proving $\sup(A) + \sup(B) = \sup(A + B)$ without using $\epsilon$

Suppose sets $A$ and $B$ are not empty and are bounded from above. Prove that $\sup(A) + \sup(B) = \sup(A + B)$ without using $\epsilon$. This is exercise 1.3.6 from Understanding Analysis by Abbot, 2nd edition.  Here is my start:  Let $s = \sup(A)$, $t = \sup(B)$, then for any $a \in A, b \in B$ we have $a \le s$ and $b \le t$ and, consequently, $s + t \ge a + b$.  And here I get stuck:  Let $u$ be an arbitrary upper bound of $A + B \implies a + b \le u$. Show that $t \le {u - a}$.  $b \le {u - a}$ is promising, but I don't see how to proceed rigorously from here on.  EDIT  The other question has answers that prove the same thing (some of them w/out epsilon), but they don't do it the way the book proposes to. I am interested in the book's way as well.


What is the difference between STM and USM in a lens? What's the major difference?  Is this only for a Canon user, or Nikon, or else DSLR also having same types lenses?  What should I choose for day-to-day photography and basics ?


I would propose to add a small reply button when you want to reply on a comment, just like in chat:        Sometimes it is hard to get the exact name of the person right, since he/she uses foreign symbols as first characters in his/her username. It seems a very simple, yet effective solution.  Clicking this button will put the @username in the 'Add Comment' box, just like you would normally type this yourself.


The initial object in the index category corresponds to the limit

In page 33 of Pierre Schapira's Algebra and Topology, it is briefly mentioned that given functor $\alpha:I\rightarrow C$, if $i_0$ is initial in $I$, then there is an isomorphism   $\lim_\longleftarrow\alpha \approx \alpha(i_0)$  To try to verify this, I try the following.   First denote $\{\lambda_i\}_i$ as the morphisms associated with limit $L$. For given $i\in I$, associate $\rho_{i}$ as the application of $\alpha$ to the unique morphism from $e_{0}$ to $i$. Then we have by the definition of the limit, a morphism $\mu:\alpha(i_0)\rightarrow L$ such that $\lambda(0)\circ\mu=id$.   How should I prove $\mu\circ\lambda(0)=id$? (if this is the right way to approach the problem)


How can I make reflecting floor like this in blender? And how do I make good looking glass like the one provided in the example too?  Edit: I wanna make a nice reflective floor like the one provided in the image. And I wanna know how to make glass like the glass cubes in the provided example.()


currently i am using toast to show validation coming from server side but as my component shows up in popup(overlay library) toast is not showing above the popup instead it shows below the popup. any one have idea regarding this?  Component Code :  <lightning:overlayLibrary aura:id="overlayLib"/>   JS controller code  let toastParams = {title: "Error",                    message: "Unknown error", // Default error message                    type: "error",                    mode: 'dismissible' }; toastParams.message  = errors[0].pageErrors[0].message; let toastEvent = $A.get("e.force:showToast"); toastEvent.setParams(toastParams); toastEvent.fire();


Laravel's flash data available after browser back button clicked

I'm using jQuery and Laravel's session flash data to show a notification after every CRUD action. For example:  /* * * Update code goes here */ return Redirect::route('profile')->with('flashMessage', 'Profile updated');   The flash data is by definition available only for the next request. However, if I go to another page (directly after the notification was shown) and hit the browser back button, the flash data is still there, causing the notification to show up again, but this time with no logical reason.  Is there a way to prevent this? I'm testing in Chrome.


Ubuntu 16.04 update problem about third party repositories

I use Ubuntu 16.04 and I get update problems after installing skype. When I try to install updates by using Software Updater, it stops and gives an      The package system is broken    error. And says:     Check if you are using third party repositories. If so disable them,   since they are a common source of problems. Furthermore run the   following command in a Terminal: apt-get install -f   I disable third party repositories and even remove mendeley from the list but the problem did not solved. I tried apt-get install -f command, it gives also problem and says:  E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?   How can I solve this problem?


Non-http links in SharePoint: not allowed?

I've been searching through various types of sites that I can create using SharePoint 2010, and it seems that the only one I can't use (a simple list view in a web part) is the only one that will accept non "http" links.   A Document Library won't even let me create non-http links, so I went with a Wiki, thinking that surely this would let me enter whatever I want. But it's not so! It let me create mms:// links (about 50 of them, before I saved), but once I save+closed the page, SharePoint decided that it would do me a favor and remove all the addresses from the hyperlinks! Now I have 50 empty links that only open a new tab when clicked. Of course, I tested this with an http:// link to Google and, sure enough, that one worked after save.   My question is: is there any way for me to avoid Microsoft's walled garden approach here and use mms:// for some of my links using native options? Or will I have to alter the HTML directly?  There was  on Sharepoint.SE nearly a year ago, but it got zero answers. Hopefully this one will garner more attention.


What is the difference between these two casting methods?

Inside a class, I have an enum and a private int:   public enum DOOR_STATE { IDLE = 0, OPENING, OPEN, CLOSING };  private int currentState;   Inside a method, if I do:  currentState = DOOR_STATE.OPENING as int;   I get an error message: "The as operator cannot be used with a non-nullable value type int"  But if instead I do:  currentState = (int) DOOR_STATE.OPENING;   The error goes away.  Could someone please explain the difference between the two casting methods ?


We know the following:  Two masses are attracted to one another, as represented by Newtonian gravity $F = \frac{GMm}{R^{2}}$  Light is massless and bends in the curvature of space-time which can be created by a mass, where the deflection is calculated with Einstein's general relativity and is twice that calculated by Newtonian gravity, .  $E = mc^{2}$, where m is the relativistic mass.   Is there something special about mass energy that produces a curvature of spacetime? If that rest mass energy were converted to light energy (say, by annihilation of an equally large amount of matter and anti-matter, a planet sized "anti-matter bomb"), would the spacetime curvature resulting from the originating mass essentially instantaneously disappear? The inverse process, say through a "pair-production bomb," could instantaneously create space-time curvature. Of course, "instantaneous" here is nearly achieved anyway since the light source is traveling at the speed of light toward the about-to-be-born mass. Of course, this also answers the question of whether light attracts itself (through "gravity").


Buffering in meters/km using WGS84 layers using QGIS

I am using QGIS 1.7.4-Wroclaw and working with an SHP layer in WGS84. I want to buffer out to a certain number of kilometers from this layer using the ftools buffer tool.  I understand that the buffer tool always uses the layer units, which for WGS84 are decimal degrees. We all know that degrees don't convert consistently to meters, so how should I go about making my buffers?   Is it necessary for me to convert the shapefiles to a different CRS that natively uses meters?   If so, how do I choose one?


Difference in meaning of "congratulation" and "congratulations"

What is the difference between congratulation and congratulations?


How to set Zathura as your pdf viewer with AUCTeX

I have been trying to set Zathura has my pdf viewer with AUCTeX in Doom Emacs. I added (setq TeX-view-program-list '(("zathura" "zathura --page=%(outpage) %o"))) to my ~/.doom.d/config.el but whenever I try to view my tex file, it throws up the error Unknown "Zathura" viewer, Check the 'TeX-view-program-selection' variable. Is there a way fix this?


i'm making a intro in blender 2.76b .when i click compositing i don't see the view , select , add ... if you don't understand, here's 2 screenshot (i took one from a video)  the one from the video (How i want it to look like):   my verision   but the thing is that when i start i new prodject it looks normal again and then i switch to my prodject it isn't there! please help me (Sorry if i used wrong tag)


How to prove that if each element of group is inverse to itself then group commutative?

How can you prove that if each element of group is inverse to itself then the group is commutative?


Unable to boot to Windows 7 successfully from the first try

I had Windows 10 installed along Ubuntu, and would choose from grub loader.  I later uninstalled Win 10 and installed Win 7 in its place, I updated grub in Ubuntu but the Windows 10 entry in grub did not go away.  I now have two entries, both entitled Windows 10, one in /dev/sda1 and the other in /dev/sda2.  Both load Windows 7, but not on the first try. When I initially load it, the screen is dark, while Windows has loaded in the background (I can hear the sounds).  I have to power-off the computer, then choose Windows again for the screen to work. Sometimes I have to repeat this more than once.  I don't know much in Linux so I can't tell if the problem is from Windows or grub.


Spacing between lhead and rhead content while wrapping

I am having troubles with wrapped text in the header.  At the moment it looks like this:   And this is how I would like it to look like:   This is my code:  \documentclass[12pt,a4paper]{article}  \usepackage{titling}   \usepackage{geometry}  \usepackage{fancyhdr}  \geometry{a4paper, left=30mm,right=20mm, top=25mm, bottom=20mm}  \setlength{\headheight}{12.7mm} \pagestyle{fancy} \fancyhf{} \lhead{\textbf{\thetitle}} \rhead{\textit{\thepage}}  \title{This is a really long title which takes lot of space in header, so it is wrapped over to the next line.}  \begin{document} \end{document}   Basically I need some spacing between lhead and rhead content, no matter if lhead content will be wrapped into multiline.


Name of Young Adult novel from 1960s/ 70s with Harry Houdini?

I'm looking for the title of a book I read as a kid in the 60s/70s. It's about a teenage boy who's fascinated with magic and Harry Houdini, and develops his magical powers with Houdini's help.  I just found the book ---Black and Blue Magic. It's about a 12 year old kid named after Harry Houdini, and he grows wings through use of a magic potion. I highly recommend this for young adults.


Maximum likelihood estimator and MVUE for a Exp$(1/\theta)$ distribution

Let $n \in \mathbb{N}, \, X_i: (0,\infty)^n \rightarrow (0,\infty)$ so that $ X_i(x_1,...,n_n) = x_i \, \forall i \in \{ 1,...,n \}.$ Let $ ((0,\infty)^n, B((0,\infty)^n), (P_\theta)_{\theta \in (0,\infty)}) $ be a statistical modell, so that $ (X_1,....,X_n) $ is under $P_\theta$ a iid family of $ \exp(\frac{1}{\theta}) $ distributed rv´s.  Note that in this case $\forall i \in\{ 1,...,n \}$ and $ \theta \in (0,\infty) $ it holds that $ Var(X_i) = \theta^2 $.  a) Compute $ \forall x\in (0,\infty)^n $ the MLE $ \hat{\theta}_{ML} \in (0,\infty)$ for $ \tau(\theta) = \theta. $  b)Is $ \hat{\theta}_{ML} $ a variance minimizing unbiased estimator for $ \tau(\theta) = \theta $?  to a):  the density of a $ exp(\theta^{-1}) $ distributed rv is: f(x) = $ \theta^{-1} * e^{-\theta^{-1}x} $.  I get the maximum likelihood function:   $L(x,\theta) = \prod_{i=1}^n f(x)$ $= \theta^{-n} \prod_{i=1}^n e^{\theta^{-1}x_i} $  Now i build the log likelihood function and get:  $ \log(L(x,\theta)) = -n\log(\theta) - \frac{1}{\theta} \sum_{i=1}^n x_i $  I set the derivate of the $\log$ likelihood function $=0$ to find the maximum.  $\Rightarrow -\frac{n}{\theta}+\frac{1}{\theta^2} \sum_{i=1}^{n} x_i =0 $  $ \Leftrightarrow \frac{n}{\theta} = \frac{1}{\theta^2} \sum_{i=1}^n x_i $  $ \Leftrightarrow \theta = \frac{\sum_{i=1}^n x_i}{n} $  so i get that my estimator is: $ \hat{\theta}_{ML} = \frac{\sum_{i=1}^n x_i}{n} $  I don´t know why we get the hint that $ \theta^2 = Var(X_i) $. Does someone see my mistake?   to b)  I know how to check that a estimator is unbiased. How do i check if a estimator is a variance minimizing unbiased estimator? Do i have to use Cramer - Rao - Inequality?


How to correctly vertical-center cells in a tabularx?

I want to add additional spacing to table rows/cells for a tabularx. However, after setting \arraystretch to something larger than 1 and setting \tabularxcolumn to m (see below), I notice that the content is somewhat vertically centered but shifted considerably down, i.e. below the vertical center of each cell.  How I correctly center this?    \documentclass[a4paper,11pt]{article}  \usepackage{tabularx} \pagenumbering{gobble}  \renewcommand\tabularxcolumn[1]{m{#1}} \renewcommand\arraystretch{5}  \begin{document}  \begin{tabularx}{\textwidth}{|X|X|} \hline hello & world \\ \hline hello & x\vspace{20ex}\newline world \\ \hline \end{tabularx}  \end{document}   I've found   that hack some seemingly random spacing to the top. However, this doesn't appear to address this particular issue. At least I don't see a general solution by adding a fixed space of e.g. {-1ex} as the spacing appears to depend on the content size. If my eyes play tricks on me and the offset is indeed constant, how do I determine the exact offset?    Edit: cellspace does NOT appear to work in my context. These are the troubles with a minimal working example, I guess.


I have a chat room and I was wondering why there are no notifications in the notification/inbox like the ones we get when we receive response to our questions?  Can the notifications be received only on desktop?


when say: she's gone, which one is correct: she is gone or she has gone

in this text: "I can't find my daughter. I was buying these clothes at the register,    And she was right behing me, and now she’s gone."  written "she's gone".  how I understand which one is mean? she is gone? or she has gone? thank you


I have users inserting comments for their courses, and I save them on SQL like this:  $return = $_POST; $x = $return["comment1"];  $result = "UPDATE  Students SET  `Comment1` =  '$x' WHERE  StudEmail = '$email'  ";   My question is the following: since they are italian, they use letters like: ò,à,ù,è. When SQL saves them, it doesn't recognise them. And obviously, when I print out those comments, it will print them out with a weird symbol.  Any advice?  Example: Comment: Mi è piaciuto SQL saves: Mi ï¿½ piaciuto


I didn't know he was/is such a good person.  Which is correct in the above sentence. Is/was and why ?  (Assume the person is still alive and is still a good person)


Procedure expects parameter which was not supplied

I'm getting the error when accessing a Stored Procedure in SQL Server  Server Error in '/' Application. Procedure or function 'ColumnSeek' expects parameter '@template', which was not supplied.    This is happening when I call a Stored Procedure with a parameter through .net's data connection to sql (System.data.SqlClient), even though I am supplying the parameter. Here is my code.  SqlConnection sqlConn = new SqlConnection(connPath); sqlConn.Open();  //METADATA RETRIEVAL string sqlCommString = "QCApp.dbo.ColumnSeek"; SqlCommand metaDataComm = new SqlCommand(sqlCommString, sqlConn); metaDataComm.CommandType = CommandType.StoredProcedure; SqlParameter sp = metaDataComm.Parameters.Add("@template",SqlDbType.VarChar,50); sp.Value = Template;  SqlDataReader metadr = metaDataComm.ExecuteReader();   And my Stored Procedure is:     USE [QCApp]    GO    SET ANSI_NULLS ON    GO    SET QUOTED_IDENTIFIER ON    GO     ALTER PROCEDURE [dbo].[ColumnSeek]         @template varchar(50)    AS    EXEC('SELECT Column_Name, Data_Type     FROM [QCApp].[INFORMATION_SCHEMA].[COLUMNS]     WHERE TABLE_NAME = ' + @template);   I'm trying to figure out what I'm doing wrong here.  Edit: As it turns out, Template was null because I was getting its value from a parameter passed through the URL and I screwed up the url param passing (I was using @ for and instead of &)


I need to find $$S = {2n\choose 1}^2 -2 {2n\choose 2}^2 + ... - 2n{2n\choose 2n}^2= \sum_{k=1}^{2n} k {2n\choose k}^2 (-1)^{k+1}$$, given $$\sum_{k=1}^{2n} k {2n\choose k} x^{k-1} = 2n(1+ x)^{2n -1}$$   Using $$-(1-x)^{2n} + 1 = \sum_{k=1}^{2n} {2n \choose k} (-1)^{k+1} x^k$$,  $$(1- (1-x)^{2n}) (2n (1+x)^{2n-1}) = \sum_{k=1}^{4n}x^k\sum_{r=0}^k {2n\choose r} (-1)^{r+1} (k - r) {2n \choose k-r}$$  LHS = $2n ( (1+x)^{2n - 1} -  (1-x)(1-x^2)^{2n-1}) = 2n((1+x)^{2n - 1} -  (1-x^2)^{2n-1} + x(1-x^2)^{2n -1})$  So coefficient of $x^{2n}$ on the LHS is $-2n{2n - 1\choose n} (-1)^n = -n{2n \choose n} (-1)^n$  Coefficient of $x^{2n}$ on the RHS,  $$2n \sum_{r=0}^{2n} {2n\choose r}^2 (-1)^{r+1} - S = - 2n{2n \choose n}(-1)^n - S$$  Equating the coefficient of both sides gives $$S = -n{2n \choose n} (-1)^n$$.  I would like to know different methods for doing this and similar problems as the method I used is cumbersome and prone to miscalculation.


While installing Ubuntu phone I entered:  sudo fastboot oem unlock   It doesn't read the device and printed:   < waiting for device >   on the terminal. Note my device is genx GX Pad 370 G with android version 4.1.1


how to determine the time taken to sort the elements in Quicksort using java program.I have a list of elements in unsorted manner.Quicksort sort the elements .problem is how to determine running time taken by quicksort to sort elements


Why does the natural ring homomorphism induce a surjective group homomorphism of units?

I'm trying an old problem here:   Suppose $n\mid m$, and I have a natural ring homomorphism $\varphi\colon \mathbb{Z}/m\mathbb{Z}\to\mathbb{Z}/n\mathbb{Z}$ defined by $\varphi(j)=j\mod{n}$. I can verify that this is a ring homomorphism, but why does it induce a surjective group homomorphism on the unit groups $(\mathbb{Z}/m\mathbb{Z})^\times\to(\mathbb{Z}/n\mathbb{Z})^\times$?  My question in particular is why is it surjective? I take $k\in(\mathbb{Z}/n\mathbb{Z})^\times$. Then there exist integers $s,t$ such that $sn+tk=1$. Since $n\mid m$, I can also write $m=na$. So multiplying through I get $sm+tka=a$. I'm lost here. How can I find a unit in $(\mathbb{Z}/m\mathbb{Z})^\times$ which maps to $k$ to show surjectivity?


If $Y_1,...,Y_n$ are a finite collection of compact subsets of $X$, then their union $Y_1\cup....\cup Y_n$ are also compact.  Proof:   Assume that $Y_1,...Y_n$ are a finite collection of compact subsets of $X$  WTS that $Y_1\cup....\cup Y_n$  are compact  In order for $Y_1 \cup...\cup Y_n$ to be compact, their union must be closed and bounded  Lets first prove that the union of $Y_1\cup...\cup  Y_n$ is closed  I will do this using a previous proposition which I learned  Prop: If $Y_1,...Y_n$ are are finite collection of of closed sets in X, then $Y_1\cup...\cup Y_n$ is also closed   (I have the proof of this proposition)   By our assumption $Y_1,...,Y_n$ are a finite collection of compact subsets of $X$. And since they are compact, then they must be closed  Now I have to prove that the union of $Y_1\cup...\cup Y_n$ is bounded   By our assumption $Y_1,...,Y_n$ are a finite collection of compact subsets of $X$. And since they are compact, then they must be bounded  Since $Y_1,...,Y_n$ are bounded subsets of X then by definition  $\exists B(x,r)$ in X which contains $Y_1,...,Y_n$  If $\exists B(x,r)$ in X which contains $Y_1,...,Y_n$ then this means that this ball $B(x,r)$ will also contain $Y_1\cup...\cup Y_n$ (Intuitively, this seems true to me, but I am not sure if it is and how to show this)  Can I please get some help in proving this?


f(a) = inverse of a is an isomorphism iff a group G is Abelian

$G$ is a group and $f:G \rightarrow G$ is a function defined as $f(a)=a^{-1}$ where $a^{-1}$ is the inverse of $a$ under the group operation. Prove that $f$ is an isomorphism if and only if $G$ is abelian.    I understand that I have to prove $f(ab)=(ab)^{-1}=b^{-1}a^{-1}$. How might I do that?  Reference: Fraleigh p. 49 Question 4.40 in A First Course in Abstract Algebra


java.lang.NullPointerException when sending parametre from JavaFx Controller to another

As it is mentionned in the title, i'm trying to send parametre from a controller to another but i got java.lang.NullPointerException this is the controller i want to get userId from.  public class EnseignantOverViewController implements Initializable {     @FXML     private Label niveau;     @FXML     private Label matiere;     @FXML     private Label groupe;     @FXML     private ComboBox<String> comboNiveau;     @FXML     private ComboBox<String> comboMatiere;     @FXML     private ComboBox<String> comboGroupe;     @FXML     private Button Valider;     @FXML     private Long userId;      EnsNivHome ensNiv = new EnsNivHome();      // List<Integer> myObservableList=ensNiv.niveauEns(login, password);     @Override     public void initialize(URL arg0, ResourceBundle arg1) {         // TODO Auto-generated method stub      }      public Long getUserId() {         return this.userId;     }      public void setUserId(Long userId) {         this.userId = userId ;     } }   and this is the controller where i want to get the UserId  Long testResp = resp.connecter(login.getText(), password.getText()); if (testEns != null && comboprofil.getValue().equals("Enseignant")) {         Stage stage1 = (Stage) seConnecter.getScene().getWindow();          FXMLLoader loader = new FXMLLoader(getClass().getResource("EnseignantView.fxml"));          Pane pane = (Pane) loader.load();         EnseignantOverViewController ensController = loader.<EnseignantOverViewController> getController();         System.out.println("la valeur de testEns est: " + testEns);         ensController.setUserId(testEns);          Scene scene = new Scene(pane);         // on peut faire new stage          stage1.setScene(scene);         stage1.show(); }   I got a NullPointerException for ensController.setUserId(testEns) but when I sys-out the value of testEns I got the correct value.


Is eating rice well after its use-by date a bad idea?

I got a "Paella kit" for my birthday recently. It consists of a pan, some rice, some spices, and some instructions.    Unfortunately, upon inspecting the rice packet I see that its "best before" date is June 2015 (ie. about 8 months ago).    Rice isn't particularly expensive, so should I just replace it? (Rather than possibly dying a horrible death?).  The rice is "Spanish Rice special for Paella".  If it is not OK to eat, what sort of rice should I substitute for "Paella rice"?


I'm a total beginner to LaTeX trying to write my thesis using it. Currently for bibliographical citations I'm using \usepackage[backend=bibtex,style=ieee,natbib=true]{biblatex}. style=ieee ensures that the citations appear inline as [3], [4], etc and in the order I introduce them (and Reference section is reordered accordingly). I don't want that to change! Now, here's what my references section looks like  whereas, I want to  get rid of the [Online] Available: and the URL; instead, hyperlink the title to the URL  Kinda like this:  except that I'd like to keep the IEEE style for the rest of the reference if possible. How can I do that?


Big hill behind tree won't show in camera/render view.


I have a question regarding LaTeX .. I have a table from an excel file which I print screened and posted as a figure in LaTeX. However, I want to make it a table. Problem is, the particular table has a lot of values in it so making it into a table manually is pretty tedious.  Is there a way to be able to reference an image as a table instead?


Prove that $\gcd(5x+2y,2x+y)=1$ if $\gcd(x,y)=1$

Let $\gcd(x,y)=1$. Prove that $5x+2y$ and $2y+x$ are always co-prime. I’ve tried a lot of things (really a lot), but nothing has worked for me. One of the best ideas that came to my mind (I think) is to use a proof by contradiction: Suppose $\exists d >1$ Such that $d\mid 5x+2y$ and $d\mid 2x+y$. After some modular arithmetic I’ve found that $d\mid x$ And $d\mid y$. But what does that mean?


How to move a line to the previous line if a certain character " : " is not found?

I have a lot of text files of transcripts. I have cleaned it to an extent. The last bit of cleaning is the following.  I have this in certain files *.txt  Gary: I said something. Larry: I said something else. Mr. John: I said this. And maybe this and I also said this. Laura: did i say anything.   I need it like this.  Gary: I said something. Larry: I said something else. Mr. John: I said this. And maybe this and I also said this. Laura: did i say anything.     I want to move any line not containing colon (:) to the previous line. In the end I want each line to have a character's dialogue which ends with a newline.  I looked at this  but I couldn't figure out what to do. I am open to any tools sed/awk/python/bash/perl.


NVIDIA driver 331 recent update breaks Ubuntu 13.10

I just recovered from Nvidia driver failure after an update was pushed a few hours ago from Xedger ppa. There is not much insight from what I can search from the web. Currently, my system is running on Nouveau but this means a no-go for steam games.....  my gpu is GTX 650 TI  I'm still fairly new to Linux and I'm not sure what is the next step. Any suggestions? Should I wait for some time before trying to install it again?


What keeps mass from turning into energy?

I understand the energy and mass can change back and forth according to Einstein. It is fluid; it can go from one to the other. So, what keeps mass from just turning into energy? Is there some force holding a subatomic particle together? What keeps mass in it's state? I hope this is not a silly question but I am clueless. Thanks


Horizontal alignment (problem with minipage)

I'm new here. I just have a problem with the minipage environment. The problem is that the tables aren't horizontally aligned. I want these table aligned one by one, but I don't know what's wrong. Here is the code.  \centering     \begin{table}[h]         \begin{minipage}[c]{.2\linewidth}                    \begin{tabular}{|cc|} \hline $n$ & $\theta(º)$ \\ \hline 1   & 13.558      \\ \rowcolor[gray]{0.7} 2   & 27.959      \\ 3   & 44.690      \\ \rowcolor[gray]{0.7} 4   & 69.668      \\ \hline             \end{tabular}             \subcaption{Predicción teórica.} \label{kbrteo}         \end{minipage}%          \begin{minipage}[c]{.8\linewidth}             \begin{tabular}{|cccccccc|} \hline                 $n$ & $\theta(º)$ & $\delta \theta(º)$& $\theta(rad)$   & $\delta \theta(rad)$ & $sin\theta$ &$\delta sin\theta$ & $\frac{n\lambda}{2}$(\AA) \rule{0in}{10pt}\\ \hline  \cellcolor[gray]{0.2}& 12.2       & 0.01              & 0.213           & 0.002                & 0.211       & 0.002             & \cellcolor[gray]{0.2} \\ 1                    & 13.6       & 0.01              & 0.237           & 0.002                & 0.235       & 0.002             & 0.771 \\ \rowcolor[gray]{0.7} 2                    & 27.9       & 0.01              & 0.487           & 0.002                & 0.468       & 0.002             & 1.542 \\ 3                    & 44.5       & 0.01              & 0.777           & 0.002                & 0.701       & 0.001             & 2.314 \\ \rowcolor[gray]{0.7} 4                    & 69.1       & 0.01              & 1.206           & 0.002                & 0.934       & 0.001             & 3.085 \\\hline               \end{tabular}             \subcaption{Posiciones observadas.} \label{kbrexp}         \end{minipage}%     \caption{Estudio de las posiciones de los máximos de difracción para el KBr.}\label{kbr}     \end{table}


Why struct size do not match with plain sum of item's sizes?

With C/C++ structs, normally, the final struct's size is the plain sum of the sizes of all its elements, but there are cases which this is not true.  I am looking at the technical answer (it has to be one) of why the following struct's size is not equal to the size of all its members:  #include <iostream>  struct {     int a;     long b;     char c; } typedef MyStruct;  int main() {     MyStruct sss;     std::cout << "Size of int: " << sizeof(int) << std::endl << "Size of long: " << sizeof(long) << std::endl << "Size of char: " << sizeof(char) << std::endl;     std::cout << "Size of MyStruct: " << sizeof(sss) << std::endl;     return 0; }   Thas has the following output:  Size of int: 4 Size of long: 8 Size of char: 1 Size of MyStruct: 24   So it can be seen than the size of MyStruct is not 4+8+1 (13) rather, it is actually 24, but why?


I believe the person (idiot) who remodeled the home I recently purchased let the grout and other construction material he used to rehab the bathroom go down the drain.  I believe it has dried in the pipe and there is only a very small opening for water to drain through.  The house is a slab, so I can't get to the pipe under the tub.  Is there anything I can use to dissolve the grout so that the water will drain faster.  He obviously didn't know what he was doing as the tile is already bulging behind the faucet.


Adding second SSD with existing ubuntu and make it bootable

I've recently destroyed my old laptop... but I've saved the ssd. Inside there was a SSD with Ubuntu 19.04 on it and the disk is encrypted.  I've bought a new laptop, and added my old SSD on top of the one already inside the new laptop.  On the new SSD I have Ubuntu 19.10, and from there I can access the data of my old SSD but I was wondering if there was a way to make the old SSD bootable ? Maybe creating a MBR or something like that ?  In the BIOS/UEFI I can see the old SSD in the SATA disks, but it's not in the bootable options, and I've activated the PXE Legacy.  Thanks in advance


Is the dihedral group $D_n$ nilpotent? solvable?  I'm trying to solve this problem but I've been trying to apply a couple of theorems but have been unsuccessful so far. Can anyone help me?


Can you play Clash of Clans using the same Apple ID?

Me and my brother want to play Clash of Clans with different game progress but somehow he always gets my progress when he plays it.  He got a new Apple ID and a new Game Center, but somehow the same problem is happening: we can't play the game separately - we tried and tried but it still doesn't work.  What can we do to play the game using different progress?


Why is $dm$ and $\Delta m$ used this way in physics textbooks?

I would assume that $\Delta m$ would mean a finite change in mass and $dm$ to be an infinitesimal change in mass. But many physics textbooks use it to denote a small but finite mass and an infinitesimal mass element respectively while writing a differential equation. Why? And how does this make sense?  Similarly, $dU$, which should mean the infinitesimal change in the potential energy function is treated as the "small" potential energy of mass $dm$. Same for $dF$ etc.  One e.g would be to look at the derivation of the gravitational potential energy of a point mass and a shell. The potential energy of the ring is changed from $U_i$ to $dU$ and the mass of the ring is taken as $dM$. Doesn't $d$ mean an infinitesimal change in some quantity?


please help fix black screen and OS failure

I've been having a fairly critical issue that I've yet to resolve. It may be that I need to take this to launchpad but if ANYONE has info at all, please help.  explains the problem. If you have good experience with this OS or other knowledge that pertains, please take a look at that link and reply. I need help here as this is above my head.  Thanks in advance for your time.  [listen, forget the badges for a sec and let this through. I need help here and the prior post has 0 replies and likely will stay that way.]


I consider the kernel density estimation, and I want to find the quantile the quantile at some level (0.95) of the KDE.       z<-rnorm(25) v<-density(z) plot(v$x,v$y,type="l")  qt<-quantile(z,0.997) abline(v=qt,col="red")     plot(v$x,cumsum(v$y),type="l") abline(h=0.997,col="blue",type="p")   The first plot is the plot of the KDE and the line of the quantile of the data. How to get the distribution of the KDE?   How to get the quantile with respect to the KDE? Is only for comparison.


How to use InputStream subclasses properly?

I'm learning java I/O for a couple days. I've seen a lot of examples, and some of them are unclear to me. So, I know InputStream is a superclass for its subclasses (FileInputStream, etc), but I don't know how to use its subclasses properly. Usually I use subclasses like: FileInputStream FIS = new FileInputStream("path");  But the unclear thing is many times people use subclasses like: InputStream IS = new FileInputStream("path");  Can anybody explain me what's the difference between using subclasses like this?


NullPointer Exception in updating a TexView in a fragment using data from Firestore

I am trying to update a user profile from Firestore in a Fragment, but each time I run the App I get this error:     java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setText(java.lang.CharSequence)' on a null object reference.   Please your help will be much appreciated, am still a newbie am sorry if my question might offend   public class ProfileFragment extends Fragment {      TextView personName, mAge, bloodGroup, mGender, mHeight, mWeight;     ImageView settingsButton;      String userID;      FirebaseAuth firebaseAuth;     FirebaseFirestore firebaseFirestore;      @Nullable     @Override     public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {         View view = inflater.inflate(R.layout.profile_fragment, container, false);          personName = view.findViewById(R.id.text_person_name);         bloodGroup = view.findViewById(R.id.blood_group);         mAge = view.findViewById(R.id.profile_age);         mGender = view.findViewById(R.id.gender);         mHeight = view.findViewById(R.id.profile_height);         mWeight = view.findViewById(R.id.profile_weight);         settingsButton = view.findViewById(R.id.profile_settings);          firebaseAuth = FirebaseAuth.getInstance();         firebaseFirestore = FirebaseFirestore.getInstance();          // Retrieve UserID         userID = firebaseAuth.getCurrentUser().getUid();          DocumentReference documentReference = firebaseFirestore.collection("patients").document(userID);         documentReference.addSnapshotListener(getActivity(), new EventListener<DocumentSnapshot>() {             @Override             public void onEvent(@javax.annotation.Nullable DocumentSnapshot documentSnapshot, @javax.annotation.Nullable FirebaseFirestoreException e) {                 personName.setText(documentSnapshot.getString("Name"));                 bloodGroup.setText(documentSnapshot.getString("BloodGroup"));                 mAge.setText(documentSnapshot.getString("Age"));                 mGender.setText(documentSnapshot.getString("Gender"));                 mHeight.setText(documentSnapshot.getString("Height"));                 mWeight.setText(documentSnapshot.getString("Weight"));              }         });            return view;      } }


How are geocoding scores calculated in ArcGIS?

After a table of addresses is geocoded, ArGIS provides information about each geocoded address, among those the "match score" of the candidate to which the address was matched, which ranges from 0 to 100. According to their documentation "The match score is based on how well the locations found in the reference data match with the address data being searched."  It seems intuitive that 100 means an address with the exact name was found in the Address locator and 0 means no such address was found. However, I could not find any information about how exactly this score is calculated, particularly if values are somewhere between the extremes. I this known?  I found the pointer to  in the answer to , but I could not find any information in that paper that would answer the question.


How to install ibus-avro in Ubuntu 16.04 LTS?

I tried to install ibus-avro, using the procedure that applied in Ubuntu 14.04 LTS. This procedure does not work in Ubuntu 16.04 LTS. Is there any other procedure to install avro in my new version of Ubuntu?


Can I get copies of Ubuntu 13.04 on CD's to give our Free Software Club members?

I want the new Ubuntu 13.04 to give to our club members for free. Can get them?  I have a club named 'Free Software Club'  with 100+ members. We discuss free software, Linux, Python and give training.


How can I fit my table of contents into a single page?

When I use \tableofcontents I get all my contents in a single page except for a line that goes on the other page, how can I make all in the same page?


I use the line of code below to loop through a table in my database:  $items_thread = $connection -> fetch_all($sql);   And if I print the array out:  print_r($items_thread);   I will get this:  Array (     [0] => Array         (             [RecipientID] => 3             [RecipientScreenname] => Tom L             [RecipientFirstname] => Thomas             [RecipientEmail] => info@xx.com         )      [1] => Array         (             [RecipientID] => 3             [RecipientScreenname] => Tom L             [RecipientFirstname] => Thomas             [RecipientEmail] => info@xx.com         )      [2] => Array         (             [RecipientID] => 1             [RecipientScreenname] => Lau T             [RecipientFirstname] => TK             [RecipientEmail] => lau@xx.co.uk         )  )   But I want to get rid of the duplicate items in the array, so I use array_unique  print_r(array_unique($items_thread));   I get the weird result below which is not quite I am looking for:   Array (     [0] => Array         (             [RecipientID] => 3             [RecipientScreenname] => Tom L             [RecipientFirstname] => Thomas             [RecipientEmail] => info@xx.com         )  )   Ideally, I think it should return this:  Array (     [0] => Array         (             [RecipientID] => 3             [RecipientScreenname] => Tom L             [RecipientFirstname] => Thomas             [RecipientEmail] => info@xx.com         )      [1] => Array         (             [RecipientID] => 1             [RecipientScreenname] => Lau T             [RecipientFirstname] => TK             [RecipientEmail] => lau@xx.co.uk         )  )   What shall I do to get it right? Have I used the wrong PHP syntax/default function?


Why is the default output of ss so strange?

When I run ss -tnlp to display all programs listening for tcp connections (something I do rather often) I get something like this:    Despite the terminal being wide enough, ss chooses to split some lines and display the processes on the next line. I can make my terminal spread two huge monitors but it doesn't matter how wide the terminal is, ss likes to use line breaks and huuuge whitspace in-between columns. Compare this with the deprecated netstat output:    Everything fits on one line, very nice and readable tabular output. But because I'm a good person cough I use ss, not netstat because that's what we ought to do, right?  I can make ss behave sanely by piping its output to cat:    Still, a lot of wasted space but at least there are no unnecessary line-breaks.  My question: Why was ss written to behave this way? Why would anyone ever want their output spread across a huge space and then line-wrapped?


For positive integers Numbers  $a, b, c $ prove that  $$\frac{1+a^{2}}{1+b+c^{2}} +\frac{1+b^{2}}{1+c+a^{2}} +\frac{1+c^{2}}{1+a+b^{2}} \geq  2$$ This inequality above take long time to prove it and still couldn't complete it.  How I can prove this inequality?  Any hint will help. Thanks


Consider the irreducible polynomial $g = X^4 + X + 1$ over $F_2$ and let $E$ be the extension of $F_2 =$ {0, 1} with a root $α$ of $g.$  Could $X^3 + X + 1$ have a root in $E?$  When working through this sheet Ive come across this question in which im not sure how to answer so any help will be appreciated


Please tell me that can it be the sign of diffraction? I mean can diffracted rays make this pattern?


Bash: Check up, Run a process if not running  Hi ,  My requirement is that , if Memcache server is down for any reason  in production , i want to restart it immediately   Typically i will start Memcache server in this way with user as nobody with replication as shown below   memcached -u nobody -l 192.168.1.1 -m 2076 -x 192.168.1.2 -v    So for this i added a entry in crontab this way   (crontab -e)  */5 * * * * /home/memcached/memcached_autostart.sh   memcached_autostart.sh  #!/bin/bash ps -eaf | grep 11211 | grep memcached # if not found - equals to 1, start it if [ $? -eq 1 ] then memcached -u nobody -l 192.168.1.1 -m 2076 -x 192.168.1.2 -v else echo "eq 0 - memcache running - do nothing" fi   My question is inside memcached_autostart.sh , for autorestarting the memcached server , is there any problem with the above script ??  Or   If there is any better approach for achieving this (rather than using cron job )  Please share your experience .


My current desktop reso is 1366x768    In cs 1.6 I have selected display option as Normal and Resolution as 1024x768.     In this settings I don't get those vertical black side bars which make the playing screen square.     Atm it is rectangular but I wanted square.    How do I get the vertical black bars while playing cs 1.6?


careers.stackoverflow.com profile picture other than the gravatar one

Can we put profile picture other than the gravatar one at careers.stackoverflow.com?  I am able to remove my gravatar picture but I am not sure if I am able to upload a new one.


Error: The application has failed to start because the side by side configuration is incorrect

When I tries to run Glary Utilities 5.46, the following error message appears. 'The application has failed to start because the side by side configuration is incorrect please see the application event log or use the command line sxstrace.exe tool for more detail'  I had posted a question in Microsoft Community and did what the support engineer said, including repairing corrupted files with RestoreHealth and re-installation in compatible mode, but the side by side configuration error still appears. What else can I do?  The following have already been installed.


What's the recommend way of changing the font size in a particular table? Is there a better way than enclosing all values with, for example, the \tiny function.


Bettery life issue with Ubuntu 14.04 LTS amd 64 bit

i have dell 5537 i5 4th Gen laptop.  after installation of ubuntu 14.04 LTS amd 64 bit version on my laptop. my laptop battery life is decreasing  very quickly .and life bet-try is showing 1 hours max. while using Windows 7 / 8 , its working fine and battery life is 5-4 hours max. so, i want to use latest ubuntu but the battery life issue is very serious. please send me step by step for solving this issue with latest Ubuntu. or you can send me the US phone number or your personal US number, so i will call  you and you will help me on the spot if possible.


Why is my Apache not working after upgrading to Ubuntu 14.04?

[aman@aman-Inspiron-1440:~$ apache2 [Mon Apr 21 17:36:38.019213 2014] [core:warn] [pid 4134] AH00111: Config variable ${APACHE_LOCK_DIR} is not defined [Mon Apr 21 17:36:38.019345 2014] [core:warn] [pid 4134] AH00111: Config variable ${APACHE_PID_FILE} is not defined [Mon Apr 21 17:36:38.019370 2014] [core:warn] [pid 4134] AH00111: Config variable ${APACHE_RUN_USER} is not defined [Mon Apr 21 17:36:38.019385 2014] [core:warn] [pid 4134] AH00111: Config variable ${APACHE_RUN_GROUP} is not defined [Mon Apr 21 17:36:38.019414 2014] [core:warn] [pid 4134] AH00111: Config variable ${APACHE_LOG_DIR} is not defined [Mon Apr 21 17:36:38.028756 2014] [core:warn] [pid 4134] AH00111: Config variable ${APACHE_LOG_DIR} is not defined [Mon Apr 21 17:36:38.029032 2014] [core:warn] [pid 4134] AH00111: Config variable ${APACHE_LOG_DIR} is not defined [Mon Apr 21 17:36:38.029056 2014] [core:warn] [pid 4134] AH00111: Config variable ${APACHE_LOG_DIR} is not defined AH00526: Syntax error on line 74 of /etc/apache2/apache2.conf: Invalid Mutex directory in argument file:${APACHE_LOCK_DIR}    is the content of /etc/apache2/apache2.conf file.


Is it okay for a potential post doc to send an email to professor on the weekend?

I am talking with a professor to apply to a postdoc program. I sent a cold email earlier this week and we have exchanged a few emails. In his last email he sent me some papers to read. The thing is, I might end up sending my answer on Saturday, after I read the papers. Is this a problem? Should I just send it and wait until Monday for his answer? Maybe send it but include an apology for writing during the weekend? Or should I just wait until Monday to send it? I usually text everyone during the weekend including my advisor, but I'm not sure if it might be considered rude, and as I do not know the person yet I want to be as careful as possible with etiquette. Thank you.


Still need help. The textures are missing, I already tried to report and find missing files, but it's not working for me. I put in nodes to try to help it, but it didn't help any further. The final renderings are still missing textures for some reason...      Here's a link to this file if you have any solutions:


I tried my best to solve this problem from what I learned in residues, but the solution seems very far from what I was doing!! Is there any way other than using Laurent series expansion?  Here is the problem: $$f(z)=(ze^{2-z}+(2-z)e^z)e^{(z-1)^{2}+(z-1)^{-2}}  $$ at z = 1  Thank you


I am beginner in power supply repair. Can anyone completely explain to me how this power supply make PWM without a PWM IC in the primary side?


What's a the word for people who make fun of themselves?

I don't mean people with low self esteem.  But there are people who feel happy at being able to make other people laugh at their own expense. I remember someone telling me there is a word for them, I can't find it.  Let me explain:  I sometimes, while sitting with a group of people, might just tell them a personal embarrassing story, which might be completely fabricated, to make other people laugh. And when they laugh, I feel happiness.  I'm also self deprecating, but not in a way that I hate myself, rather,  just my work (I'm a screenwriter) and knowing I can do better. I do not self deprecate myself in public (I don't praise myself either).   Edit: Now that its mentioned, I think the word I'm talking about was used to describe a person's sense of humor. Or it could be a word used to describe a psychological trait/disorder.  Edit: I just looked up humor styles on Wikipedia. And after reading it, I guess the word that closely matches what I'm looking for is 'Affiliated Humor' but in a 'Self Defeating' style.


A way to identify when page is in Edit mode for JavaScript purposes?

As per client request, we created webzones which creates 'collapsible regions' of the content. So if you add multiple webparts to a 'collapsible region' zone, the webparts collapse and clicking on the header will expand them (using a expanded css class), collapsing any other open part. So at any time, only 1 webpart is expanded at a time.  Now we can across an issue in IE that, when in edit mode, clicking on the header wont expand or reveal the content. Well, it does, but only if you click it in a very unintuitive way (you kinda get lucky to get it to expand).  The solution that has been proposed was to, on Edit, expand all the regions for easy editing.  But I am unsure on how to catch or be aware that the page has gone into Edit mode in order for me to use some JavaScript to then expand all collapsed parts.  Is there a way to handle this or achieve this?   thanks!


What is this in the title sequence of Game of Thrones?

Being that the Title sequence for Game of Thrones tells us a lot about each house, each city for that particular series or represents a place in the world of Game of Thrones. I keep on wondering what is the thing that looks like a lit up shield in the below picture;    Here it is again later on in the Title sequence;                                  And I don't think it is the sun as there is a place where they show what seems to be the sun in the picture below:    So what is it supposed to be, or what is it supposed to represent?


fopen file with "special" characters in filename

With this code I'm able to process any file, except for those that contain "special" characters such as accented letters (à, è, ì, ò, ù ...) and the letters of oriental alphabets  setlocale(LC_ALL, ".65001"); FILE* F=fopen("Example.ogg", "rb");   As I wrote above, the problem occurs when instead of "Example.ogg" I insert a file, for example, called "Exàmple.ogg" or "究 極 の 聖 戦 バ ト .ogg". With such examples, it is as if he cannot open the file. I searched the web for a long time for a solution, but found nothing.  Can you help me?  Thanks in advance


Why won't Remmina connect to Windows 7 Remote Desktop?

I'm using Ubuntu and I'm trying to connect to another machine in a different network using remote desktop.   In Windows7 I have made the following in order to activate remote desktop:   I've gone to computer -> properties -> remote settings I've selected the option: "Allow connections from computers running any version of Remote Desktop I've opened "Windows Firewall with Advanced Security" In inbound rules I've enabled the rules for remote desktop (public and domain)   I have also installed Remmina in the Ubuntu machine.  For configuring it I did the following steps:   Selected the RDP protocol In the server input I have written the Windows machine public IP. In username / password I have typed my login credentials (the same as my Windows admin account)   But when I try to connect I get this error message:  "Unable to connect to RDP server 89.130.251.160"  If I ping my Windows7 machine, I have a correct response.  Any suggestions?


Inverse of "Decimate" (not really a duplicate)

Historically, the word "decimate" means to "reduce/ destroy by one tenth"... i.e., a decimated army of 100 soldiers would have lost 10 soldiers. Is there a word that means the inverse, IOW "reduce/ destroy to one tenth", where a XXXXX army of 100 would only have 10 soldiers left? Ummm... dunno why this was marked as a duplicate to a question I didn't ask, but... still looking for an answer...


Alright, I think we all agree that what happens with the following code is undefined, depending on what is passed,  void deleteForMe(int* pointer) {      delete[] pointer; }   The pointer could be all sorts of different things, and so performing an unconditional delete[] on it is undefined. However, let's assume that we are indeed passing an array pointer,  int main() {      int* arr = new int[5];      deleteForMe(arr);      return 0; }   My question is, in this case where the pointer is an array, who is it that knows this? I mean, from the language/compiler's point of view, it has no idea whether or not arr is an array pointer versus a pointer to a single int. Heck, it doesn't even know whether arr was dynamically created. Yet, if I do the following instead,  int main() {      int* num = new int(1);      deleteForMe(num);      return 0; }   The OS is smart enough to only delete one int and not go on some type of 'killing spree' by deleting the rest of the memory beyond that point (contrast that with strlen and a non-\0-terminated string -- it will keep going until it hits 0).  So whose job is it to remember these things? Does the OS keep some type of record in the background? (I mean, I realise that I started this post by saying that what happens is undefined, but the fact is, the 'killing spree' scenario doesn't happen, so therefore in the practical world someone is remembering.)


A question related to a convergence of an integral

Let $f$ be $f\in C([0,\infty ])$, such that $\lim_{x \to \infty} f(x) = L $.  Calculate  $$ \int _{0}^\infty \frac{f(x)-f(2x)}{x}dx $$  Help?


Only the first entry of .bib file can be cited

I use the custom document class  \documentclass{MastersDoctoralThesis}  but hope, my question is more general. In my head there is  \usepackage[backend=bibtex,style=authoryear,natbib=true]{biblatex} \addbibresource{example.bib}  My example.bib:  @article{Reference1, Abstract = {We have developed an enhanced Littrow configuration extended cavity diode laser (ECDL) that can be tuned without changing the direction of the output beam. The output of a conventional Littrow ECDL is reflected from a plane mirror fixed parallel to the tuning diffraction grating. Using a free-space Michelson wavemeter to measure the laser wavelength, we can tune the laser over a range greater than 10 nm without any alteration of alignment.}, Author = {C. J. Hawthorn and K. P. Weber and R. E. Scholten}, Journal = {Review of Scientific Instruments}, Month = {12}, Number = {12}, Numpages = {3}, Pages = {4477--4479}, Title = {Littrow Configuration Tunable External Cavity Diode Laser with Fixed Direction Output Beam}, Volume = {72}, Url = {http://link.aip.org/link/?RSI/72/4477/1}, Year = {2001}}  @article{Reference2, Abstract = {We present a review of the use of diode lasers in atomic physics with an extensive list of references. We discuss the relevant characteristics of diode lasers and explain how to purchase and use them. We also review the various techniques that have been used to control and narrow the spectral outputs of diode lasers. Finally we present a number of examples illustrating the use of diode lasers in atomic physics experiments. Review of Scientific Instruments is copyrighted by The American Institute of Physics.}, Author = {Carl E. Wieman and Leo Hollberg}, Journal = {Review of Scientific Instruments}, Keywords = {Diode Laser}, Month = {1}, Number = {1}, Numpages = {20}, Pages = {1--20}, Title = {Using Diode Lasers for Atomic Physics}, Volume = {62}, Url = {http://link.aip.org/link/?RSI/62/1/1}, Year = {1991}}   When I use \cite{} in my main, I can only sucessfully use \cite{Reference1}, not \cite{Reference2}. Second only prints "Reference2" in bold. It's not about the Reference2-entry specifically, as it's the other way around, when I put Reference2 before Reference1 in the .bib.  Tell me if you need more information. I firstly wanted to make sure this isn't a common or obvious problem.


Proof verification for a $\gcd$ number theory proof


Phone can't detect hotspot made by laptop (no, not the other way around)

Trying to ssh to my laptop on my android phone with a network created by my laptop, but my android phone can't even see the wireless network I made. Will be carrying laptop around in a backpack. I don't need Internet access, tried refreshing phone, waiting, refreshing. Kali linux, android phone. I tried manually changing the channel. Is it maybe a frequency or channel issue?


I linked to  in a 5e question, attempting to bring support for the idea that, if you cast an open-ended spell, like Magic Mouth, it could remain after you die. Someone pointed out that, as a Pathfinder question, it wasn't relevant. Is there evidence for this idea in 5e?


Strange problem: black screen when selecting live ubuntu or install ubuntu

I've putted ubuntu to a flash drive and came to grub menu selected try ubuntu live the screen goes black with some words"acpi pcc probe failed" then the screen goes totally black,  I've tested the monitor on another PC and it worked fine, i restarted the PC and came to grub menu again and selected install ubuntu first was the same as selected live ubuntu but the second the setup started fine!!!  i installed the system and after i finished restarted the PC and again like the first time the screen goes black after i selected the system to boot ):  i tried to select advanced options for ubuntu then start ubuntu in recovery mode there i selected resume normal boot and it worked and booted to ubuntu fine!!? but i still wondering the reason to this problem?? my graphic card is radeon hd 5450 and the hard is gpt i tried before installing opensuse but it's the same issue!


Get all event listeners that are on an object in javascript

I basically want to save state of some object to restore it later, these objects are not attached to the DOM and are not html elements, just objects in Javascript. I am not interested in a debugger/visualization tool.  But I need the actual code of the custom event listeners that are also attached to the object.   These event listeners were attached via jQuery and the functions were anonymous and provided by the user.  Is there anyway to accomplish this?


How to switch input languages with different key combination?

I don't like to switch languages with ⌘ + space. Is there any way I can use more common keyboard combinations:    Control + Shift or Control + Opion or Caps Lock   I'd preferred the simplest solution possible. Can I just change some system settings instead of installing a software to solve this problem?


I have run proc freq to test association between two binary variables using the Fisher's exact test. However, the outputs seem contradict to each other as Two-sided Pr <= P 0.0355 whereas the OR and the 95% Confidence Limits 0.1097 [0.0022, 1.1380] includes 1.  This means that p-value shows that they are significantly associated while the 95% CI does not indicate that.  My question is that based on the output from SAS, what should I use: p-value or CI?


Must a multiclassed caster use 2 different spellcasting focuses?

A sorcerer who multiclassed into a cleric originally used a crystal arcane focus, but as a cleric, they must cast using a holy symbol as their spellcasting focus. In order to cast the cleric spells, must the character swap focuses from the crystal to the symbol?  Bonus question: would a component pouch replace the need for both focuses or just the arcane one?


Custom button or link with visualforce page in managed package in lightning org

It is one of the things, which make me crazy in salesforce. You create a custom button, which opens a page. It works fine in your org, but it fails in managed package org, in addition it should be adjusted for lightning environment...  And you cant test it until deploy it to managed package org and there you cant fix the issue >:-]  Any way, could you please provide a simple solution to create button, which will be on standard lightning layout and which opens a visualforce page in managed package org. I thought to do something like this:  window.open('{!URLFOR($Page.SomePage,'',[id=someValue])}   But it won't work, as $Page is not work in custom buttons\links or i dont know how to use it.  Then i thought to get somehow namespace with using soap call from javascript:  {!REQUIRESCRIPT("/soap/ajax/36.0/connection.js")} {!REQUIRESCRIPT("/soap/ajax/36.0/apex.js")}  var nameSpace = sforce.apex.execute("orgNamespace.Util", "getNamespace", {});   but again, we have to know namespace in order to reach the class...[facepalm]  Will be grateful for any solutions!


Do I need to obtain a license to use real car brands in a game?

We are small team which working on car racing game but we don't know about licensing process for branded cars like Nissan, Lamborghini, Chevrolet and etc.   Do we need to buy any licence for using real car brand names, models, logos,... or we can use them for free?  Second option we think about using not real brand with real models is it possible? If someone have experience with that, fell free to share it.  Any information about that is welcome.


Revised Question:  After a bit of a think I realised that this question can also be asked the other way round and much more simply: In what situation(s) have you required a model release?  Original Question:   Questions about model releases come up fairly often so I'd like to make a community Wiki about it. When answering please make sure to specify that you are not a lawyer and the legal locale (i.e. Country, and State if necessary).  Which of the following scenarios legally requires a model release and what terms does the release need to contain?   Public A: Aphotographer takes a photo in public place such as a park or street. The photo includes identifiable people, and the photographer wants to use the photo in their own portfolio or website Public B: Same scenario as A but end use is a non commercial publication or website Public C: Same scenario as A but end use is a third party commercial publication, website, or stock library Public D (trick question): A photographer takes a photo in a shopping mall, theatre, stadium, museum, railway station, event or other privately-owned publicly-accessible location. Model E: A photographer has a photoshoot with a model and gives the model prints or a CD of images and wants to use the photo in their own portfolio or website Model F: Same scenario as E but end use is a third party commercial website Model G: Same scenario as E but end use is an 'erotic' site Model H: A photographer does a photoshoot with a model and pays for their time with money at an agreed rate and wants unlimited use of the photo commercially Model I: A photographer takes some photos of a friend at the friends request and wants to use the photos in the photographers portfolio/website Model J: A photographer takes photos of their own children and wants to use the photos in their portfolio/website Model K: As scenario J but for commercial use Event L: A photographer is paid to take photos of everyone at a wedding or other event on private land and wants to use the photos on their portfolio/website Event M: As scenario L but end use is a commercial publication or website Event N: A photographer takes photos of a fireworks display in a public park and wants to use the photos commercially   I think I've covered most of the situations photographers will find themselves in but I'll add in any suggestions. Note again that this is intended for community wiki and that locale is important in answers.


I am trying to install Ubuntu 16.04 LTS on an external Toshiba 3.0 2TB hard drive, but after the install my computer will not boot to the hard drive. The computer doesn't even recognize the hard drive at all.  I have reformatted the drive using Windows and Ubuntu. I have reinstalled Ubuntu several times using the the automatic partitioning and by manually setting up the partitions myself. Nothing seems to work.   I also have changed my boot order to boot from USB before HDD in the UEFI options.  Does anyone have any ideas as to why my computer is not recognising the drive?   Thanks for your  time!


Infinite-Scroll Plugin and Jetpack Infinite Scroll Plugin - Adding to "Thoughts" Theme

How do I enable infinite scroll (either with the infinite-scroll plugin OR the built in infinite scroll jetpack) on the "Thoughts" Wordpress theme?  I'm a total noob at editing this stuff so if you are kind enough to help please keep it very simple as if I do not know anything.


find last entered number after finding file

My question is kinda long Im trying to make a check in and out system simple, a menu with options 1 checkin and 2 checkout at the end of the day when I go home. My file contains:  Dato: 22-02-2018     Mødt ind: 700     Gået hjem: 1600     Overtid:     Dato: 23-02-2018     Mødt ind: 730     Gået hjem: 1600 Overtid:   I gotta find difference for 730 and 1600 in this file.. and if the number is higher than 800 it gotta print the number if there is a difference  hope you understand my question


I want to download Ubuntu 13.04 but I can not to do it

I love Ubuntu and I use it since 1985. I decided to download Ubuntu 13.04 but I'm a rookie. If you can send me a CD with that version I would be happiest.


What was the physical effect on Captain Picard of Borg assimilation?

After his Borg assimilation, Captain Picard appeared to be 100% restored to his original human self. But was that the case? (This question is purely about his physical restoration, I'm not interested here in e.g. any psychological damage).  Specifically, I'd like to know:   Did the Borg (eeeek) remove any of Picard's body? Was Picard left with any Borg implants?   I remember him (after being restored to human) being recognized by a Borg as one of them. And I seem to remember him still being able to hear their voices, but can't be sure of that.


Database.upsert - how to find which records have inserted/updated based on ExternalId

I am upserting list of records based on externalId as follows:  List<Database.upsertResult> results = Database.upsert(lstRecords, CustomObject__c.External_Id__c,true);   The results returns as follows:  (Database.UpsertResult[getErrors=();                         getId=a1k0j000000P6CmAAK;                         isCreated=true;                         isSuccess=true;],   Database.UpsertResult[getErrors=();                         getId=a1k0j000000P6CNAA0;                         isCreated=false;                         isSuccess=true;])   The first record is inserted and 2nd record is updated.  Since I am upserting based on externalId, I need to know for which ExternalId the records have been successfully inserted or updated.   doesn't expose any methods. It returns SalesforceId and NOT externalId  I need a results structure like this:  (Database.UpsertResult[getErrors=();                         getExternalId = '1234';                         getId=a1k0j000000P6CmAAK;                         isCreated=true;                         isSuccess=true;],   Database.UpsertResult[getErrors=();                         getExternalId = '1235';                         getId=a1k0j000000P6CNAA0;                         isCreated=false;                         isSuccess=true;])   What would be the best way to achieve this.


what is the purpose of condenser lens in a slide projector?

What if we don't use any condenser lens? can't we use a single convex lens as a condenser? what difference will it make? kindly explain it in detail.


How to restrict a user list to only certain types of active users?

In our SharePoint sites, we have a number of places where a user (SBS) can be inserted. For example, which user is responsible for a particular task. However, when selecting this user, there is a list of every single possible user to associate, including groups and even inactive users.  How can I restrict these user fields to only display and accept currently active user accounts?


Looking for Windows utility to find a pixel of specific color on screen

I need to find pixels of specific RGB color on my computer screen quickly. Something like pressing a hot key and the mouse cursor is moved to there or the area is circled.  I would prefer a Windows utility that works on the screen directly but if it works on a saved screenshot, I can live with that.


How do I separate a column with a line within a matrix?

I'm trying, without success, to separate a column or a row inside a matrix. What should I do in order to get the matrix in the picture?


In GLM regression I have always been told to set the reference level of categorical/ordinal/dummy variables to the level with the most exposure (level with most data), because this somehow makes the model more stable. Is there any statistical reason behind this, or just historical practice without statistical reason?  I can understand that one wants a "baselevel" (reference level) in the model that are most likely to be correct, but if you are not sure about the other levels, then they surely should not be included in the regression in the first place?


Majority of the time I am able to use @ to respond back to a user on SO, however in some instances it does not work? Any ideas why this might be?


How to smooth shade an object while retaining hard edges?

I frequently come to the problem of having a mesh with parts I would like to render smooth and "hard" edges connecting them.   How can I set the mesh to show the sharp edges but render everything else smooth?  In the example I would like the sides of the individual cylinders render smooth but the intersection between bottom and top to be sharp/flat


In physics, the  ansatz (meaning: an educated solution guess) is very ubiquitously used, when solving differential equations, in different domains of physics. E.g. to solve the dispersion relation of magnons or phonons in solids, also very commonly in QM e.g. in semiclassical approximations, and so on. The examples above all correspond to systems of 2nd order linear differential equation.   My question:    Is the use of the planewave ansatz purely motivated by mathematical reasons? (i.e. form/type of differential equation). Knowing that planewaves don't really exist in reality, as they would require infinite propagation, how is it that it still remains a theoretically suited ansatz most often (for describing physical phenomena)? (e.g. phonons to propagate to infinity surely) I guess this last question could be formulated differently: In which cases one can be sure that a planewave ansatz (type solution) would absolutely fail?


Any changes on layout, or creating new layout crashes my app. Android Studio

I have an android application which has more than 20 layouts. In recent days if I make any changes in layout (generally id changing, creating new component or layout) crashes my app or changes some layouts by itself. I have a menu and when I click menu icon it shows my custom actionbar layout instead of custom menu layout. Most of time app crashes.   I have tired clean and rebuild project but it doesnt work. I made some search but there is nothing about it. Please help me.


$a_{n+1} = \sqrt{2 + a_n}$ Specific Theorem Needed

I know this question has been asked many times, but I need a specific part of it. When we get to the limit part, I had it written like this: $\lim_{n \to +\infty} a_{n+1} = \sqrt{2+\lim_{n \to +\infty} a_n}$ What is the reason I am allowed to put the limit under the square root? Why am I just allowed to put it there? I know it's true, but I am not sure why. I need to justify that in order to receive credit. My instructor said it is a "special word." I have no idea what the word is.


I need help to bring following output in SQL Query

Please help with SQL Query to solve following issue.  I have a table input values like this - Column header is X and Y      x | y -------------------     1 | a1     1 | a2     2 | a3     2 | a4     2 | a2   I need output like this  x | y ---------- 1 |a1,a2 2 |a3,a4,a2   Please advice!


On Terraria Console Version I killed The Twins And destroyer.   But! the Steampunker NPC Wont move in, I do have Jungle, Normal, Hallow in my house, how ?   What am I doing wrong?  What went wrong?   Is it only for PC version?


Analytics search keywords are unreliable

The analytics for the beta site I moderate (Lego Answers) provides unreliable search keywords.  The first ten or so results are unique, but every search keyword after has 41 views, and there are hundreds of results with supposedly '41' views. Some of the referring sites also have 41 views.  Something doesn't seem right. I can understand each search keyword having one or two visits each.  See Also:


From the James Stewart Essential Calculus Early Transcendentals Second Edition textbook I have the given problem:  $$a_n=\frac{(-3)^n}{n!}$$  I did the following absolute convergence procedure, because I treated the problem as the following: Theorem 6 If $ \lim_\limits{n \to \infty}\rvert a_n \lvert = 0$, $\ \therefore \ $ $\lim_\limits{n \to \infty} a_n = 0$ $$\lim_\limits{n \to \infty} \frac{(-1)^n (3)^n}{n!}$$ I then then proceeded to do the following, in accordance to the theorem, and the way which I manipulated the sequence. \begin{align} \lim_\limits{n \to \infty} \vert \frac{(-1)^n (3)^n}{n!} \vert \\ \lim_\limits{n \to \infty} \frac{ (3)^n}{n!} \end{align} Here is where I get a bit lost because of the intuition behind the problem, I graphed this as function, and determined the limit equals 0, but I am trying to determine it analytically. I went to Symbolab, and it says that numerator is undefined, and that its denominator is infinity, thus it being 0. But this is how I view the problem. My Work $$\lim_\limits{n \to \infty} \frac{ (3)^n}{n!}$$ $$\frac{3^\infty}{\infty!}$$ My thoughts were that the $3^\infty = \infty$, thus being $$\frac{\infty}{\infty}$$. Is there something I am missing, because L^Hopital's rule is not applicable here. How do I analytically get at the problem?


how to do automatic database backups for mysql databases on Ubuntu

Please help to find a tool/plugin to manage database backups automatically.


Trajectory of a photon around a Schwarzschild black hole?

Consider a photon coming from the infinity in a unbounded orbit to a Schwarzschild black hole (Schwarzschild radius $r_{s}$) (see  for illustration). Its impact parameter is $b$ and its distance of closest approach is $r_{0}$ with $$b^2=\frac{r_{0}^{3}}{r_{0}-r_{s}}$$.  Then its trajectory in polar coordinates is defined by :  $$\frac{d\varphi}{dr} = \frac{1}{r^2\sqrt{\frac{1}{b^2}-\left(1-\frac{r_s}{r}\right)\frac{1}{r^2}}}$$  Consequently : $$\varphi\left(r\right) = \int_{r_{0}}^{r} \frac{dp}{p^2\sqrt{\frac{1}{b^2}-\left(1-\frac{r_s}{p}\right)\frac{1}{p^2}}}$$  and one can compute the total deviation using :  $\Delta\varphi = 2\times\left(\lim_{r\to+\infty}\varphi\left(r\right)-\frac{\pi}{2}\right)$  But my question is : how can I plot/draw the trajectory using the integral expression of $\varphi\left(r\right)$ ?    Because if I compute : $$f\left(r\right) = 2\times\left(\int_{r_{0}}^{r} \frac{dp}{p^2\sqrt{\frac{1}{b^2}-\left(1-\frac{r_s}{p}\right)\frac{1}{p^2}}}-\frac{\pi}{2}\right)$$ I obtain $f\left(r_{0}\right) = -\pi$, and then $f$ increases up to zero, crosses zero, and tends to its positive value at infinity $\Delta\varphi$. It does not make sense for me and I do not understand how to compute the trajectory from that.    If I compute : $$g\left(r\right) = \int_{r_{0}}^{r} \frac{dp}{p^2\sqrt{\frac{1}{b^2}-\left(1-\frac{r_s}{p}\right)\frac{1}{p^2}}}$$ it starts from $0$, and increase up to $\frac{\pi}{2}+\frac{\Delta\varphi}{2}$.    I would like to compute the trajectory in the $\left(x, y\right)$ plane, so how to use the values of $f\left(r\right)$ or $g\left(r\right)$ to compute the function $y\left(x\right)$ ?


What is causing the edges of my models to become semi-transparent?

All of a sudden, in a particular scene I am working on, the edges of all the models have become partially transparent.  It is like what happens when you have a very small start clipping pane and are looking at a small model up close.  Except the clipping panes have not been changed, most of the objects in the scene are not very small, and I am not zoomed way in.  Here is a screenshot:   The crude barn thing pictured in the screenshot is about 30'x25'x26' and the zoom is pretty standard.  This behavior is also not dependent on the zoom, and again, I have not changed the clipping panes.  And I do have limit selection to visible checked, it does look similar to what it would if that was disabled, but that is not the problem.  What is this caused by and technically what is responsible for it?


Where to direct request for advice on CMS?

I am looking for advice from the experienced community about the right direction for a CMS (content management system) based project I have upcoming, but I'm unsure of the right site to post this on. It's definitely not Stack Overflow, as requests for advice get eaten alive there. Thoughts?


I want to read hyperbolic geometry. Can any one suggest some good books on the topic.


I have an old piece of hardware I want to run Ubuntu, can I reformat using the 13.04 download on my Dell 700m?

I recently recovered my Dell Inspiron 700m from my collection of old hardware. I have a ton of old files and programs on it, none of which I need. I want to install ubuntu and make it a running machine again. Can I replace the windows operating system and reformat with the new ubuntu 13.04 download?


C++ nested classes, access fathers variables

The title already says a lot,  but basically what i want to do is the following(Example):  I have a class called A, and another class inside a called B, like so:  class A {    int a;     class B    {       void test()       {          a = 20;       }    }; };   As you can see my goal is for class B to have access to class A, as it is a nested class. Not this wont work, because B doesn't have access to A, but how can it get access?  Thank You


Recently, after booting the window appears "System Problem Detected" - and I choose "Report problem". So how can I find out what actually is the problem? Otherwise everything works as expected. Xubuntu 18.04 on HP15 laptop.


Advice on where to put money once I've hit the income limits on Roth IRA?

For the past few years I have been contributing to my company-sponsored 401k just enough to get all of their match, and contributing up-to-the-limit in a Roth IRA.  I've now reached the income limits for the Roth IRA (which seems like a good problem to have), which means that starting now I must find some place else to put the contributions that would have been going into the Roth IRA each year.  Is there any generally accepted advice on where the next best place is to invest money for retirement when Roth IRA is no longer an option? Seems to me like my choices are:   Invest back into company-sponsored 401k Traditional IRA, which offers no deduction benefits Invest on my own in an individual brokerage account.   I understand that no answer for advice can be truly objective or "the right answer", but I'm mostly curious if there is any conventional wisdom on what to do next.


Drupal automagically changing password hash

This issue happened on my  localhost machine while in development but I thought nothing of it since I had multiple drupal projects and was jumping to one another constantly - I figure it was cookies or what not and was constantly resetting my passwords. However I recently went into production and this issue is still occuring.  I have a new drupal site for which I created 2 new users for testing purposes. I realized that after 24 hours or so, the login credentials for these users would not work and I would get :     Sorry, unrecognized username or password. Have you forgotten your password?   I use these accounts to log in via browsers other than my main one and test the user interface of my production site. After each use I make sure I logout.  I made sure to configure the  $cookie_domain in my settings.php and chmod the file properly but the issue still occurs.  Recently I started tracking the hashes in the user table and low and behold they are magically changing without any human intervention ! What can be causing that ?  Oddly enough, this issue does not happen with the admin account (#1) for which I have yet to logout, and another account which was created but never used. In both cases user_check_password() returns true.  Clearing cache does nothing.  I am running the latest core with latest version of all contrib. modules. I use SSL everywhere I have APC and memcache running. I use a mix of MongoDB and MySQL


I know that there are several posts regarding sorts of python lists, but I tried a large bunch of things and didn't accomplish to get what I want.   My code:       list = []     things = re.findall('   <img src="(.*?)" alt="(.*?)" .*?', content, re.DOTALL) for url, image, name in things:     list.append({'url': url, 'image': image, 'name': name})   Now I want to sort this list by name. I found several posts which stated to use list.sort(key=) but I don't know what I should use for the key. Everything I tried resulted in a KeyError.  I'm sorry if I'm duplicating an already solved post, but I can't find the proper solution.   Thanks in advance.


In ArcGIS there is a Erase Point tool how can this be done in R

I have a SpatialPolygoneDataFrame and a SpatialPointsDataFrame I would like to erase the points inside of the polygon, Keeping only the points outside and all of the data. I am new to GIS in R moving from ArcGIS and arcpy.  This is what the Erase Points tool does in ArcGIS 10.4 can this be done in R


How to convert shapefile to KML file using ArcPy?

Python script that checks to see if a specific layer file exists in the current workspace and, if it does, converts the layer file to a KML file. Does it work with a shapefile?  Code so far:  for file in arcpy.ListFiles("cities.shp"):     desc = arcpy.Describe(file)     #print "Name: " + desc.BaseName     name = desc.baseName      if name == "cities.shp":          arcpy.LayerToKML_conversion("cities.shp", "cities.kmz")          print "Converted"     else:         print ("There are no layers in ",env.workspace,".")


Birds don't get electrocuted on live wire

Why is birds which stay on electrical wire which current is being pass through doesn't get shock?


when I try to compile this using g++ -std=c++17 main.cpp foo.cpp -o main, I get an undefined reference error  main.cpp:  #include "foo.h"  int main() {   Foo a;   a.bar<int>();   return 0; }   foo.cpp:  #include "foo.h"  template<typename Type> auto Foo::bar() -> Type* {    return nullptr; }   foo.h:  #ifndef FOO_H #define FOO_H  class Foo {   public:     template<typename Type>     auto bar() -> Type*; };  #endif   Googling didn't take me anywhere useful... Always saying I have to define the template in the header as I did. Any ideas?


I want to convert this from SQL to Linq but I don't know the exact syntax:  SELECT TOP 1      R.GalleryId a, COUNT(*) b, G.Address ad FROM      [PiArt].[dbo].[Rents] R, [PiArt].[dbo].[Galleries] G  WHERE     R.GalleryId = G.GalleryId GROUP BY     R.GalleryId, G.Address ORDER BY      COUNT(*) DESC


Cosine and Sine Angle Addition Intuition

I am lacking in understanding in the cosine and sine angle addition formulas. I have seen several questions similar to this but I have not seen an answer that explains how this conclusion can be derived. Geometric proofs offer little intuition and the rotation matrix is derived from the cosine and sin angle addition formulas. I haven't been able to derive this from calculus either and am already struggling on figuring out the sine and cosine derivatives in a way that makes sense instead of blindly accepting it. I would appreciate it if someone could answer why the cosine and sine angle addition formulas are as they are in an intuitive manner.  Thanks, Jackson


Every now and then when I am working on a model this happens    Why has it become a different color and then when I import it into UE4 they are see through can i fix this or is this some sort of bug?


I have a problem with statement.executeQuery. Every time I call this I get a Null Pointer Exception and I don't really know what the problem is.  Here is the line on my GitHub Rep   And here is the Stacktrace     [21:16:53 INFO]: Xearox issued server command: /ecweb register Xearox 12345   org.bukkit.command.CommandException: Unhandled exception executing command 'ecweb' in plugin xConomy v0.0.1           at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[spigot-1.8.8.jar:git-Spigot-5f38d38-18fbb24]           at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[spigot-1.8.8.jar:git-Spigot-5f38d38-18fbb24]           at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641) ~[spigot-1.8.8.jar:git-Spigot-5f38d38-18fbb24]           at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1162) [spigot-1.8.8.jar:git-Spigot-5f38d38-18fbb24]           at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997) [spigot-1.8.8.jar:git-Spigot-5f38d38-18fbb24]           at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45) [spigot-1.8.8.jar:git-Spigot-5f38d38-18fbb24]           at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1) [spigot-1.8.8.jar:git-Spigot-5f38d38-18fbb24]           at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [spigot-1.8.8.jar:git-Spigot-5f38d38-18fbb24]           at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.7.0_79]           at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.7.0_79]           at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) [spigot-1.8.8.jar:git-Spigot-5f38d38-18fbb24]           at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715) [spigot-1.8.8.jar:git-Spigot-5f38d38-18fbb24]           at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [spigot-1.8.8.jar:git-Spigot-5f38d38-18fbb24]           at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [spigot-1.8.8.jar:git-Spigot-5f38d38-18fbb24]           at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [spigot-1.8.8.jar:git-Spigot-5f38d38-18fbb24]           at java.lang.Thread.run(Unknown Source) [?:1.7.0_79]   Caused by: java.lang.NullPointerException           at org.sqlite.Stmt.executeUpdate(Stmt.java:152) ~[spigot-1.8.8.jar:git-Spigot-5f38d38-18fbb24]           at de.xearox.xconomy.utility.Database.createNewPlayer(Database.java:95) ~[?:?]           at de.xearox.xconomy.XConomy.onCommand(XConomy.java:241) ~[?:?]           at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[spigot-1.8.8.jar:git-Spigot-5f38d38-18fbb24]           ... 15 more   The creating of the database table working fine.  Maybe you can help me out here I don't really know what I do wrong here :/  Thank You


I got an iPhone from a friend and he’s far away at the moment but the phone has a software issue. I wanted to wipe the phone and restore it to a “new” state, but I was told it’ll require an Apple ID.  Can I enter my current Apple ID, or do I need to contact my friend to provide his password?


Supposing you have an object:  $arr = array(    array('name' => 'toto', 'firstname' => 'abc'),    array('name' => 'toto2', 'firstname' => 'aaa') );   I want to order it by name AND firstname. You cannot use keyword "use" for old version of php like 5.2. If a general function is not possible, then build a function for this specific case.  Thanks.


Python create all possible combinations from a integer

I have integer for example "123", using this i want to create all possible combinations listed below. 123 12,3 1,23 and so on irrespective of the digits i have entered. Is there any way possible using python for the same? I am not able to get any idea.