First, let's consider the definitions:  Let $\lambda$ be an ordinal. A model $M$ is $\lambda-$saturated if for all A⊂M, |A|<$\lambda$, every 1-type p in A (over $T(M)=\{φ \in L(A)-sent:M⊨φ\}$) is realized in M, i.e. there exists a∈M such that M⊨φ(a),$\forall \phi \in p$. A model $M$ is saturated if it is $|M|-$saturated.  If $\lambda$ is an ordinal, let $\lambda^+$ be the successor of $\lambda$. Im trying to solve the following question: Suppose that $M$ is a model of cardinality $\lambda$, a $\textbf{regular}$ cardinal, such that $M$ is the union of an elementary chain, $(M_{\beta})_{\beta<\lambda}$, i.e $M = \bigcup_{\beta<\lambda} M_{\beta}$, and $M_{\beta}$ is $\beta^+-$saturated for all $\beta$. Prove that $M$ is saturated. My attempt: Let $A⊂M$ with $|A|<\lambda$ and $p$ a $1-$type in $A$ over $T(M)$. For every $a \in A$, choose $i_a < \lambda$ in a way that $a \in M_{i_a}$. Now, if $I=\{i_a:a \in A\}$, then $|I|<|A|<\lambda$ and since $\lambda$ is regular, there exists $j<\lambda$ such that $i_a\leq j$ for all $a \in A$. Therefore, $A \subset M_j$. The only thing that remains to show is that $M_j$ is $\beta-$saturated for some $\beta>|A|$, knowing that it is $j^+-$saturated. I think that it can be done if $|I|=|A|$, since in this case $i_a < j^+$ for all $a \in A$, hence $|A|<j^+$. Is there a way to choose $i_a$ in order to $|I|=|A|$? Or there are another approach?

I'm studying Model Theory with the book of Chang-Keisler, and I'm trying to solve the following problem stated in Chapter 5:     The union of an elementary chain $(M_i)_{i < \alpha}$ of $\alpha$-saturated models is also $\alpha$-saturated, if $\alpha$ is regular.   I'm considering the following definition:     $M$ is a $\alpha$-saturated model if for all $A \subset M$, $|A| < \alpha$, every $1$-type $p$ in $A$ over $T(M) = \left \{ \varphi: M \models \varphi \right \}$ is realized in $M$, i.e. there exists $a \in M$ such that $M \models \varphi(a), \, \forall \varphi \in p.$   My attempt:  Let $(M_i)_{i < \alpha}$ be an elementary chain of $\alpha$-saturated models and let $M = \bigcup_{i < \alpha} M_i$. Given $A \subset M$ with $|A| < \alpha$ and $p$ a $1$-type in $A$ over $T(M)$, if I prove that there exists $i < \alpha$ such that $p$ is a type over $T(M_i)$, we could conclude that there exists $a$ in $M_i$, with $M_i \models \varphi(a)$ for all $\varphi \in p$. Hence $a \in M$ and $M \models \varphi(a)$, since $M_i$ is an elementary substructure of $M$.  So, how can I proof the existence of such $i < \alpha$?


X is a random variables not negative satisfy $E[X^a]<\infty$ with $a>0$.Prove $$E[X^a]=a\int\limits_{0}^{\infty} x^{a-1}(1-F(x))dx$$.

Let $X$ be a non-negative random variable and $F_{X}$ the corresponding CDF. Show,   $$E(X) = \int_0^\infty (1-F_X (t)) \, dt$$   when $X$ has : a) a discrete distribution, b) a continuous distribution.   I assumed that for the case of a continuous distribution, since $F_X (t) = \mathbb{P}(X\leq t)$, then $1-F_X (t) = 1- \mathbb{P}(X\leq t) = \mathbb{P}(X>  t)$. Although how useful integrating that is, I really have no idea.


If we know the moment generating functions (MGFs) of the random variables $X$ and $Y$ to be $M_X(s)$ and $M_Y(s)$, respectively. The MGF of the sum $X+Y$ will $M_X(s)\cdot M_Y(s)$. So what is the MGF of the ratio distribution $\frac XY$?

If we know the moment generating functions (MGFs) of the random variables $X$ and $Y$ to be $M_{X}(s)$ and $M_{Y}(s)$, respectively. The MGF of the sum $X+Y$ will $M_{X}(s) \cdot M_{Y}(s)$.  So what is the MGF of the ratio distribution $\displaystyle\frac{X}{Y}$?


Why does C++ not have a trim function for strings? Why are we expected to write our own? Is there a reason that this hasn't been added in 2020?

Is it me or are there no standard trim functions in the c or c++ library? is there any single function that acts as a trim? If not can anyone tell me Why trim is not part of the standard library? (i know trim is in boost)  My trim code is  std::string trim(const std::string &str) {     size_t s = str.find_first_not_of(" \n\r\t");     size_t e = str.find_last_not_of (" \n\r\t");      if(( string::npos == s) || ( string::npos == e))         return "";     else         return str.substr(s, e-s+1); }   test: cout << trim("  \n\r\r\n \r\n text here\nwith return   \n\r\r\n \r\n "); -edit- i mostly wanted to know why it wasnt in the standard library, BobbyShaftoe answer is great.


I'm modelling a helmet and one of the pieces needs sharp edges. The problem is that the edge loop continues onto a part of the mesh that needs to stay smooth/curved. I'm unsure of how to edit the mesh to fix this whilst maintaining good topology, so any help on how to fix this is greatly appreciated.

I'm stuck trying to figure out how to model this part of the mandolorian hemlet without sculpting.  any help, tips, references is greatly appreciated!


I needed to create a list of lists in Python, so I typed the following: my_list = [[1] * 4] * 3  The list looked like this: [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]]    Then I changed one of the innermost values: my_list[0][0] = 5  Now my list looks like this: [[5, 1, 1, 1], [5, 1, 1, 1], [5, 1, 1, 1]]    which is not what I wanted or expected. Can someone please explain what's going on, and how to get around it?


I currently try to document a project where a lot of image processing goes on. The problem is, that often tiny details are important to show, but also the reference in the bigger picture is required.  What I'd like to archive is something like this:    I have an overview picture in Figure 1a and show a zoomed-in part of the picture in Figure 1b. So far I am able to do this nicely using bounding box. However it would be nice to add an indicator like the dotted red lines to clarify. This is especially important, when there are multiple areas that need a detail-view in one image.  One other thing I need to do is to add rulers over multiple images, like in Figure 2, in the same sense as you would in a graphics-program.  An answer in  pointed me to the  which is an nice alternative way to solve case 1.  Update  pointed me to the spy-library. With that I found  which has solutions and a lot of nice examples.

Updated Below  I hope the title gets at what I'm trying to do. I have a large image for a thesis on an image processing topic, and I want show the large image, with zoomed in boxes (typically with the same aspect ratio). I also want colored frames overlaid on the large image to show what portions I'm magnifying. Here's an example:    I am currently accomplishing this by taking the large image and copying the desired zoomed areas into seperate images, and creating the overlaid frames, all in MATLAB. I then use the technique discussed in this  of mine to align all the images nicely.   My new question is, can a similar end product be created entirely within LaTeX so that the only external file I need is the original large image, and some LaTeX component (I'm thinking Tikz, but open to suggestions) creates the overlaid frames and cropped/ zoomed copies of it, then either arranges them as shown in my example, or uses the technique  to align them nicely.   Also, the example I showed is just a sample layout; ideally any solution would be flexible enough to allow rearrangement to some other reasonable arrangement, such as large image on top (full linewidth) with two or three zoom boxes in a horizontal line under it.   Thanks.  The image I'm working with is here:    Update  Please see Jake's response below for current best/ complete version of code. The only outstanding item is that, while subcaptions work and can be referenced with \subref{}, the spy library processes the labels multiple times, resulting in a warning about multiply defined labels.   As such, I have elected to not use subcaptions/ labels for now since the color-coding makes pretty clear the relationship between the zoomed images and the large one. The subcaptions can be removed by replacing the line   \newcommand\phantomimage{\subcaptionbox{\label{\pgfkeysvalueof{/tikz/subfigurename}}}{\phantom{\rule{\imagewidth}{\imageheight}}}}   with  \newcommand\phantomimage{\phantom{\rule{\imagewidth}{\imageheight}}}   I've started a separate question  about the multiply-defined labels with spy problem. I'll update this post again if any solution comes out of the new question.  Final Update   The subcaption issue has been resolved. Please see Jake's response below for final code and usage.


I had ubuntu 14.04 on my lap but it did not support my trackpad. I am very new to OS and compatibility issues. Please help me out

I am a bit financially strapped and received a Gateway GT5056 tower. The tower has an AMD dual core 64-bit processor in it. Will Ubuntu 12.04 run on this machine? I will not have any other application other than LibreOffice installed.


I have two commands I'd like to combine into one, but I'm not sure how to go about combining them. Is this possible?   Here are the commands. They work individually, I just can't seem to get them to work together:  /give @p jukebox 1 0 {CanPlaceOn:["minecraft:melon_block"]}     /give @p jukebox 1 0 {display:{Name:"Box"}}   Can you help me to add one of the commands to the other one?

I'm trying to create an item that can break certain blocks, but also has a colored name in 1.13.2   Here's the command I'm using.  /give iAugust minecraft:shears{display:{Name:"[{\"text\":\"Arcane Shears\",\"color\":\"aqua\",\"italic\":false,\"bold\":false}]CanDestroy:[minecraft:iron_bars]"}}   But it only has a colored name, and it can't break specific blocks.


I'm writing a paper and I want to insert a figure that should occupy a whole page. Moreover, the figure has small details, so I want to reduce the margins in that page. On the other pages I'd like to use amsart margin settings.  I reproduce my attempt below. The problem with that implementation is that the page is not "floating", so there is a big empty area in the preceding page.   \documentclass[10pt,letter]{amsart} \usepackage[marginratio=1:1,height=584pt,width=360pt,tmargin=117pt]{geometry} \usepackage{lipsum} \usepackage{graphicx} \usepackage[font=small]{caption} \begin{document} \title{A note} \author{me} \maketitle \section{Introduction} \lipsum See Figure~\ref{fig.main}. \newgeometry{right=5mm, left=5mm}  \begin{figure} \centering \includegraphics[width=\textwidth]{main_figure.pdf} \caption{A huge figure.}\label{fig.main} \end{figure} \restoregeometry \lipsum \end{document}

I have a figure that is wider than the \textwidth of my document. (I don't want to change the \textwidth.) As a result, the leftmost part of the figure is flush with the left margin, while the rightmost part spills into the right margin too much. I'd like to center the figure, so that it will exceed the \textwidth equally on both sides.


I don't paid for using Stack Exchange communities, so how they make money to support it all?

I once , but that was . Now, , and they have , but where's the business model? The  its own Q&A about its site (since it wasn't included in the ), and just about the only dig in there that halfway has merit is the business model dig:  We switched to a premium model to keep out of the Venture Capital business (been there, done that, got the t-shirt). Companies like StackExchange couldn't do it without the VC cookie jar. Where's the model? Huh, Spolsky? (I’m sorry. Did that slip out?)  It hurt, but I can't help but wonder if they're on to something.  How would Stack Overflow Internet Services pay back the VCs? Ad revenue alone?  There is only one 'paid' product, Stack Overflow careers, but it doesn't seem like that could sustain a business as large as Stack Overflow (Joel once mentioned on his blog that his jobs board brought in an extra million a year in revenue). So what does Stack Overflow do when the VC cash runs out? Is this a get-big-and-take-the-company-public maneuver? Is that the only viable business model for Stack Exchange? Edit: With the size of Stack Overflow's team, it isn't a stretch to say that payroll is at least $2 million  a year, probably as much as 4 when you think about benefits (average 120K for a developer in New York City; x2 for benefits/taxes/all-that-other-good-stuff). Office space can't be cheap, so how long does $6 million last before you need another VC infusion?


Let $a_1, a_2, a_3,...,a_n$ be $n$ positive integers and if $a=a_1+a_2+a_3+...+a_n$. Prove that $a_1!a_2!a_3!...a_n! | a!$  Factorial of a sum of $n$ numbers is divisible by product of factorial of these numbers.

I have a partition of a positive integer $(p)$. How can I prove that the factorial of $p$ can always be divided by the product of the factorials of the parts?  As a quick example $\frac{9!}{(2!3!4!)} = 1260$ (no remainder), where $9=2+3+4$.  I can nearly see it by looking at factors, but I can't see a way to guarantee it.


\documentclass[12pt,a4paper]{article} \usepackage{amsmath}  \begin{document} \listoffigures  \[     \{[\phi(t+h),p(t+h)]_2\} \]   \begin{figure}[htb] \centering     something here     \caption[math $x+y$ ]{math $\{[\phi(t+h),p(t+h)]_2\}$ }     % \caption[math $\{[\phi(t+h),p(t+h)]_2\}$ ]{math $\{[\phi(t+h),p(t+h)]_2\}$} \end{figure}   \end{document}   I want to use a short caption for \listoffigures. However, the simple math expressions  ($x+y$) can work. But a more complicated math expression like  \caption[math $\{[\phi(t+h),p(t+h)]_2\}$ ]{math $\{[\phi(t+h),p(t+h)]_2\}$}     does not work.  Am I misunderstanding something in typing math using latex?

LaTeX seems to be having problems handling nested optional arguments. I've included a minimal code example that generates the error:  \documentclass[12pt,oneside]{book} \begin{document}  \newcommand{\termbad}[2][]{#2#1} \newcommand{\termgood}[2][]{#2#1}  \newcommand{\up}[1]{#1} \newcommand{\dd}[1][]{#1}  \termgood{\up{Tart}}{Pop} \termbad[\up{Tart}]{Pop}      \termgood{\dd[Tart]}{Pop} \termbad[{\dd[Tart]}]{Pop} %\termbad[\dd[Tart]]{Pop}   \end{document}   If you run this code, it works. If you remove the % in the second to last line, it fails with:  Runaway argument?  Tart{Pop} \par \par \end {document}  !File ended while scanning use of \dd.   After further tinkering, I have discovered the problem: LaTeX is reading the ] for the inner optional argument as the end of the outer optional argument and then passing a malformed argument in. So it is passing in \dd[Tart as the optional argument to \termbad instead of \dd[Tart].  This still feels like a bug to me. Nesting braces in arguments works, brackets should as well. The following are workarounds:   Enclose the inner optional argument in braces (as in the line before %). Redefine your inner function to require its argument instead of using optional arguments. Redefine your outer function to require its argument instead of using optional arguments.   Any one of the three works around the issue.  (Reposted here; question was originally posted to stackexchange and then closed instead of being migrated.)


Take a look on this image:  My question is how to crop multiple selections at once into images (each square of comic strip). I want to select each frame of the comic and export them as individual images and do multiple exports at once. Do you have any suggestion how can i do this?Sorry, but i don't have any clue how to do this. Thanks in advance

Is there a way, maybe a script, that would help me cut an image into say 50 images?  I have a massive panorama I would like to print on normal stock photo paper and I am using Photoshop.    The output of this operation needs to be images, not PDFs, not printer. There is still work to be done with each of these cut-outs later.  How can I slice a large image into many smaller images with an automated, or relatively fast method?


Suppose that we have two random vectors $X_{1\times n}$ and $Y_{1\times n}$, where $X\sim N(\mu_x,\sigma_{x}^{2})$ and $Y\sim N(\mu_y,\sigma_{y}^{2})$, with N standing for the standard notation of the normal distribution $\mu_x,\mu_y$ are constants and $\sigma_{x}^{2}, \sigma_{y}^{2}>0$. Can we show that the inner product of the vectors $<X,Y>=XY^{'}$ also follows a normal distribution (where the exponential ${'}$ denotes the transpose of the random vector $Y$)? Does the same hold if $X$ and $Y$ is random variables?

Say I have $X \sim \mathcal N(a, b)$ and $Y\sim \mathcal N(c, d)$.  Is $XY$ also normally distributed?  Is the answer any different if we know that $X$ and $Y$ are independent?


I am getting a Javascript error from the code below, however, I am only getting it for some records while others process as expected.  There does not seem to be any rhyme or reason why.  Does anyone have any ideas?  This is a custom button that sits on a custom object and is mean to submit the record to a standard SFDC approval process.  A problem with the OnClick JavaScript for this button or link was encountered: Invalid or unexpected token  Javascript:  {!RequireScript("/soap/ajax/38.0/connection.js")}  if('{!SBQQ__Quote__c.Offer_Scope__c }' == '' || '{! SBQQ__Quote__c.Justification_for_Discounting__c}' == '' ||  '{! SBQQ__Quote__c.Client_Background__c }' == '' ||  '{! SBQQ__Quote__c.Additional_Fee_Requests__c }' == '' ||  '{! SBQQ__Quote__c.Non_Standard_Terms__c }' == '' )  {  var message = 'Please complete the Approval Request Information section before submitting this Quote for approval. The following fields are missing: ';   message += '\n';   if('{!SBQQ__Quote__c.Offer_Scope__c }' == ''){  message += '\nMissing Offer Scope';  }  if('{!SBQQ__Quote__c.Additional_Fee_Requests__c }' == ''){  message += '\nAdditional Fee Requests';  }  if('{!SBQQ__Quote__c.Justification_for_Discounting__c }' == ''){  message += '\nMissing Justification for Discounting';  }  if('{!SBQQ__Quote__c.Client_Background__c }' == ''){  message += '\nMissing Client Background';  }  if('{!SBQQ__Quote__c.Non_Standard_Terms__c }' == ''){  message += '\nMissing Non-Standard Terms Indicator';  }  alert(message);  }  else {  window.top.location.href = "{!URLFOR($Action.SBQQ__Quote__c.Submit, SBQQ__Quote__c.Id )}";  }

I created a custom button for custom object to place in the related list. The custom object has two look-ups, one for case and one for account. This button, when clicked, should open in a new window to save a record of the custom object, with the default values for each look-up to populate automatically depending on the record where the button was clicked. It works for every record so far, except one case. It then throws the error: A problem with the Onclick Javascript for this button or link was encountered: Unexpected identifier.  I couldn't find any differences between records where it works and doesn't.  Code:  window.open('a2U/e?CF00N600000037HI4={!Account.Name}&CF00N600000037HI4_lkid={!Account.Id}&retURL=%2F{!Account.Id}&CF00N600000037HI5={!Case.CaseNumber}&CF00N600000037HI5_lkid={!Case.Id}&retURL=%2F{!Case.Id}','','scrollbars=no,menubar=no,height=600,width=800,resizable=yes,toolbar=yes,location=yes,status=yes');


Let's imagine a asteroid that travels with 0.99999999999999999c.  (I know it's impossible).  Anyway... Relativistic mass of such object would be almost equal to earth's stationary mass.   Now let's imagine that such object passes closely to me (assuming I'm immortal etc.). According to $F_g=GMm/r^2$ (Where M is relativistic mass of this asteroid and m is my mass) such an object would attract me.  So would I gravitate after it? Would I gain it's speed constantly falling on it? Or maybe it would just pulled me for a moment, but then I would return to my ol' good non-relativistic speed in "everyday reference system"?  Or maybe something else would happen? What happens with gravity of relativistic, NON ACCELERATINNG objects? (Let's assume that there's something that makes this asteroid speed constant).

At a very basic level I know that gravity isn't generated by mass but rather the  and when I wave my hands a lot it seems like that implies that energy in $E^2 = (pc)^2 + (mc^2)^2$ is the source of gravity.  If the total energy of a particle contributes to the generation of a gravitational field, that seems to imply some strange things.  For example, you could accelerate a particle like an electron to such a high velocity that it has enough momentum / kinetic energy to collapse into a black hole.  An observer traveling with the electron would see an electron and stationary observers would see an arbitrarily massive black hole flying by.  These observations seem to be contradictory.  The same would be true of an extremely high energy photon.  Another consequence is that a stationary particle could appear to have so much mass that it could attract / deflect the trajectory of a rapidly moving observer.  It seems odd that at low velocities you wouldn't even notice a stationary electron as you pass it by but at high velocities the gravitational field you observe could be significant enough to alter your path.  Am I correct that non-mass-energy generates a gravitational field?  If it does, how are these strange observations like a particle looking like a black hole in one reference frame but not another reconciled?


i want to use a c libary for my program in C#. This libary contains a headerfile with functions in c, to control a camera.  Some of these functions in c, use a pointer called *fg which points at a typedef called Fg_Struct and finally this typedef is declared as Typedef struct Fg_Struct_s Fg_Struct  So now, i want to use these functions from the header file in my c# program. I created a new class and imported these functions from the dll-libary over the pinvoker-addon. The pinvoker-addon created a new declaration of these functions  (from unmanaged to managed). Most of these new declared functions has a variable called Fg_Struct [] Fg  Visual Studio shows me an error for "Fg_Struct is undefined" in C# programm.    For example, i can use the Fg_getLastErrorDiscripstion function to call the Error discription  in C:  fgrab_struct.h  typedef struct Fg_Struct_s Fg_Struct;   fgrab-prototyp.h  include "struct.h" const char *const Fg_getLastErrorDescription(Fg_Struct *Fg);   main.cpp  Fg_Struct *fg = NULL; fg = Fg_Init(DLLNAME, boardNr) fprintf(stderr, "error in Fg_Init: %s\n", Fg_getLastErrorDescription(NULL));   now i want to use it in c#:  CAM_SISO.cs  [DllImport("fglib5.dll", SetLastError = true, CallingConvention = CallingConvention.Cdecl)] public extern static IntPtr Fg_getLastErrorDescription(Fg_Struct [] Fg);`   I'm really new in C# programming and researched in every topics with pinvoker  but I couldn't find a right answer for me, how to declare or define Fg_Struct [] Fg to use the Fg_getLastErrorDiscription function in C#.

I have an unmanaged C++ DLL which merely exports a single class (not COM...it's just a simple C++ class) as its interface. I want to use this class in C# but am told that it cannot merely be imported into C#.  What is the right way to use this class in my C# application?


Is it possible to install a package for just the current user (placing files in locations that the user can write to, such as their home directory)?

When installing applications via the software center or by a DEB file they will usually be installed system wide for all users.  Is there a way to install an application for a single user only?


Show that if $V$ is a vector space over an infinite field $\mathbb{F}$, then $V$ cannot be written as set-theoretic union of a finite number of proper subspaces.

If $U_1$, $U_2,\ldots,U_n$ are proper subspaces of a vector space $V$ over a field $F$, and $|F|\gt n-1$, why is $V$ not equal to the union of the subspaces $U_1$, $U_2,\ldots,U_n$?


I know there is something wrong in the way I think about physics generally, but I don't know what it is.  Suppose there is a cube with a hook on one face and a rope attached to that hook (see diagram). Now let's say there is some force $F$ pulling the cube from the face opposite the hook & rope. The hook will force the rope to accelerate in the direction of $F$. The rope in reaction would exert the force $-F$ on the cube through the hook. Now there are two forces acting on the cube: $F$ and $-F$, which would cancel, and the cube should be at rest. But what happens really is that the block is accelerating in the direction of $F$.   Now, where am I going wrong in this problem? Or in thinking about forces, in general?

Given Newton's third law, why is there motion at all? Should not all forces even themselves out, so nothing moves at all? When I push a table using my finger, the table applies the same force onto my finger like my finger does on the table just with an opposing direction, nothing happens except that I feel the opposing force. But why can I push a box on a table by applying force ($F=ma$) on one side, obviously outbalancing the force the box has on my finger and at the same time outbalancing the friction the box has on the table? I obviously have the greater mass and acceleration as for example the matchbox on the table and thusly I can move it, but shouldn't the third law prevent that from even happening? Shouldn't the matchbox just accommodate to said force and applying the same force to me in opposing direction?


I'm trying to desarialize a simple json array and bind it a model like this:  JSON  [{     "id": "311697",     "km": "36.00",     "start": "2015-12-07",     "end": "2015-12-07", }, {     "id": "311697",     "km": "36.00",     "start": "2015-12-07",     "end": "2015-12-07", }]   Model  public class SalModel     {         public string id{ get; set; }         public float km{ get; set; }         public string start{ get; set; }         public string end{ get; set; }     }   And, to get the array I'm using:  var json = new WebClient().DownloadString(url);   At this time, the array is perfectly.  But, any time that I'm trying to use json.net library: with methods like:  var result = JsonConvert.DeserializeObject<List<SalModel>>(json);   I can't debug this method, and I get an error like:     Not is possible load the file or assembly 'Newtonsoft.Json'   Version=8.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' and   any of the dependencies. The assembly's manifest definition does not   match the reference to the assembly.

I am trying to run some unit tests in a C# Windows Forms application (Visual Studio 2005), and I get the following error:  System.IO.FileLoadException: Could not load file or assembly 'Utility, Version=1.2.0.200, Culture=neutral, PublicKeyToken=764d581291d764f7' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)** at x.Foo.FooGO() at x.Foo.Foo2(String groupName_) in Foo.cs:line 123 at x.Foo.UnitTests.FooTests.TestFoo() in FooTests.cs:line 98** System.IO.FileLoadException: Could not load file or assembly 'Utility, Version=1.2.0.203, Culture=neutral, PublicKeyToken=764d581291d764f7' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)  I look in my references, and I only have a reference to Utility version 1.2.0.203 (the other one is old). Any suggestions on how I figure out what is trying to reference this old version of this DLL file? Besides, I don't think I even have this old assembly on my hard drive. Is there any tool to search for this old versioned assembly?


I'm trying to send 750 emails through cron job. After it sends nearly 40 emails, like after a few minutes it throws this error,       Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 2006 MySQL server has gone away' in /public_html/ehs/includes/database/database.inc:2171 Stack trace: #0 /public_html/ehs/includes/database/database.inc(2171): PDOStatement->execute(Array) #1 /public_html/ehs/includes/database/database.inc(683): DatabaseStatementBase->execute(Array, Array) #2 /public_html/ehs/includes/database/database.inc(2350): DatabaseConnection->query('select name, d...', Array, Array) #3 /public_html/ehs/sites/all/modules/elysia_cron/elysia_cron.module(424): db_query('select name, d...', Array) #4 /public_html/ehs/sites/all/modules/elysia_cron/elysia_cron.module(632): elysia_cron_get('rules_cron', false, 'running', 0, false) #5 /public_html/ehs/sites/all/modules/elysia_cron/elysia_cron.admin.inc(753): elysia_cron_is_job_running('rules_cron') #6 [internal function]: elysia_cron_execute_page_cleanup() #7 {main} in /public_html/ehs/includes/database/database.inc on line 2171   I have tried upgrading max_allowed_packet to 500M under [mysqld] in my.ini and also php_memory_limit to 1024M, but still it didn't improve anything. Is there any other possible thing I could do to resolve it?  FYI, I'm sending a view in emails to all the users using Insert view. The views are generated per user basis, and that involves aggregation operations and computed fields.

I have a site at hostgator, using their "Business account". It's cheap, and comes with a private SSL cert. HOWEVER, their MySQL settings are such that any db connection goes stale fairly quickly, and then the hostgator staff try to convince you to use a VPS or dedicated server at multiple times the expense.  I'm creating and deploying WebAPIs, which can have a 'conversation' which exceeds 60 seconds. When this occurs, the db connection handle is stale, causing any db operations after my timeout to fail.  I'm in the process of implementing the following solution, but am curious if anyone else has solved this issue (where they can not modify their my.ini or my.cnf to give MySQL more resources) in a similar or completely different manner.  last part of a hook_update:  $ret = db_query( "UPDATE {my_table} set field1 = '%s', field2 = %d ... WHERE vid - %d", $node->field1, $node->field2, ... $node->vid ); if (!$ret) {        // get private storage directory for this node:        $cexStorage    = _cex_front_getCexStore();        $nodeFilesPath = DRUPALROOT.'/'.$cexStorage.'/'.$node->storeDir;        $fname         = $nodeFilesPath.'/recover.node';         $readyToWrite  = serialize( $node );        file_put_contents( $fname, $readyToWrite );        if (file_exists( $fname )) {          _dbgReport( 'seems to have worked!' );        }     }   Then this is called in my hook_form, right after I determine that node->nid is valid:  function _cex_front_recover_node( &$node ) {   if (!isset($node->storeDir)) {      _dbgReport( '**************************** _cex_front_recover_node: no storeDir!!!' );      return;   }    // get private storage directory for this node:   $cexStorage    = _cex_front_getCexStore();   $nodeFilesPath = DRUPALROOT.'/'.$cexStorage.'/'.$node->storeDir;   $fname         = $nodeFilesPath.'/recover.node';   if (file_exists( $fname )) {     $recovered = file_get_contents( $fname );     if ($recovered) {       // no longer needed:       unlink( $fname );       $recoveredNode = unserialize( $recovered );       // restore the key values I need to proceed with this node:       $node->stage = $recoveredNode->stage;       $node->rnid  = $recoveredNode->rnid;       $node->iris  = $recoveredNode->iris;       cex_front_update( $node );     }     else {       _dbgReport( '********* failed to read "'.$fname.'"' );     }   } }   I'll be pairing the logic down to only store the key fields I need, but this works! Sure beats upgrading my server at 3x the expense. Anyone else doing something like this?


I've had my Macbook for a while, and since I now have gotten a new desk and monitors, I've hooked them up for a dual external display setup. I've linked the products I use below.           When I wake my Mac from sleep, often times the first monitor turns on, and begins flickering, dimming the display and then going black, and repeating the cycle. Again with the MacBook display. The third monitor often just doesn't turn on, which I imagine is causing the infinite loop.  I've contacted Apple support numerous times and setup Genius Bar Appointments. I've reset the NVRAM and all of the things you can reset on boot. Anyone know whats going on or why this is happening? Preferably how to fix it.  Anything is appreciated.

MacBook Pro (15-inch, 2016) with 2 USB-C to HDMI adapters. The setup works great if I start up in that configuration.   If I connect the adapters while the machine is running or simply sleeping, one of the monitors will never get a signal and stay in low power mode. The OS sees the monitor, it shows in the display arrangement settings and I can move the mouse into it, but until I restart, I can't see anything on it.  Once I have restarted I can let the machine sleep or whatever, and the display still works unless I disconnect the adapter. As soon as I do that a restart is required to use it again.   Using MacOS Sierra (10.12.4)  Using this adapter:


I was wondering what font Windows uses in dialog boxes, such as this one:

What font is used for the interface in Windows Phone 8 and Windows 8? Is this font free to use?


Howto Create an RSS 2.0 Feed with JAVA.Using Strust2  development.

I'm using Java, and need to generate a simple, standards-compliant RSS feed. How can I go about this?


Let me put first two examples.   Example 1:  function Gallery() {     this.a = "I am 'A'";      this.trace = function() {         console.log(this.a);     } }   Example 2:  function Gallery() {     this.a = "I am 'A'"; }  Gallery.prototype.trace = function () {     console.log(this.a); }   Obviously, both things do the same. My question is: is there any drawback to using the method definition in the constructor function over the prototype one? What exactly is the difference anyway?  Is the prototype more memory friendly? I assume that if I define the method inside the constructor function, every single Gallery instance will have its 'own instance' of the method so will consume more memory while the prototype defines only one function that's shared across all the Gallery instances. Is this correct?  Thanks a lot!

What's the difference between  var A = function () {     this.x = function () {         //do something     }; };   and  var A = function () { }; A.prototype.x = function () {     //do something };


Here is my clang version: Ubuntu clang version 3.2-1~exp9ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) And what I don't know is the meaning of "exp9ubuntu1"? Please Help, Thanks.

Each package name is in the form: package-XubuntuY*_amd64(i386)  So my questions are:   What does the X stand for? What does the Y stand for?   for example binutils_2.22-6ubuntu1.3_amd64  What is the meaning of the numbers 6 and 1.3


In general, I tend to prefer the command line to mousing around in Windows, but one aspect of the command line that I do not like is directory traversal. I seem to spend a lot of time cd-ing around for one reason or another.  Are there any strategies for making it easier to jump around from place to place in the directory structure?

I would like to frequently switch between directories that are in totally unrelated paths, for example /Project/Warnest/docs/ and ~/Dropbox/Projects/ds/test/.  But I don't want to type cd /[full-path]/ all the time. Are there any shortcut commands to switch to previously worked directories?  One solution I could think of is to add environment variables to my bash .profile for the frequently used directories and cd to them using those variables.  But is there any other solution to this?


I have a problem regarding TeXstudio (on a Windows machine, using MiKTeX) and the output_directory parameter of biber. I changed this parameter together with the pdflatex parameter aux-directory, so that the entries in the configuration menu looked like this:   pdflatex.exe -synctex=1 -interaction=nonstopmode -aux-directory=temp %.tex biber.exe  --output_directory=temp %   This worked great so far. All the aux and biber processing files were stored in the subfolder "temp". Today though, I noticed that some TeXstudio specific functionalities are missing:  If I include a new entry in my bib-file, the program does not recognize the change. That means, no new entries are suggested through the auto-complete feature. Additionally, the compiling process after pressing the F1 key does not include biber compilation.  If I set the preferences back to normal, everything works fine again. Does anyone know how it is able to use these features, but with the possibility of a tidy folder structure?

I used  to export my auxiliary files into a different directory. Basically i just add -aux-directory=build in Options -> Configure -> Commands and added the build folder into Options -> Configure -> Build -> Build Options -> Additional Search Paths -> Log. This succesfully generates all the auxilliary files in the build folder and it's also possible to generate the pdf. Unfortunately biber has a problem with this setup:  Prozess gestartet: biber.exe "MyFile" INFO - This is Biber 1.7 INFO - Logfile is 'MyFile.blg' ERROR - Cannot find control file 'MyFile.bcf'! - did you pass the "backend=biber" option to BibLaTeX? INFO - ERRORS: 1  I guess i have to specify the correct path for biber somewhere in Texstudio. Does anyone know where i have to update the path?  someone had similar problems. Also i'm not sure if the solution of   applies to my situation.


Recently my laptop has been unable to boot, I have been having hard drive problems over three past few weeks but I would like to know if I need a new hard drive or not.  When booting I get,  Error: unknown filesystem Entering rescue mode... Grubrescue>   I have tried to fix it by following online guides, knew of Wichita told me to do this,  # on the grub shell do: set root=(hd0,6) set prefix=(hd0,6)/boot/grub insmod normal normal # boot into the system, then in the shell do sudo update-grub sudo grub-install /dev/sda   This failed after insmod normal and it stated error: unknown filesystem  I need some advice about if it's a hard drive fault or if it's fixable and if so how?

I did a dumb thing... I forgot that Ubuntu 10.04 (Lucid Lynx) switched to  2 which puts a ton of *.mod files (kernel modules) in /boot/grub. I thought they were soundtrack files put there erroneously, and I moved them. Needless to say, the next reboot was traumatic. I was presented with something I had no memory of ever seeing... a 'grub rescue>' prompt.  With the help of  however, I was able to recover...   I discovered that GRUB rescue does not have 'cd', 'cp' or any other filesystem commands except its own variation of 'ls'. So first I had to find the partition with the /boot directory containing vmlinuz file and other boot image files... (approximation from memory of failed attempts, as well as blank lines for clarity, added 2014-07-10 by docsalvage)    grub rescue>  ls   (hd0,4) (hd0,3) (hd0,2) (hd0,1)    grub rescue>  ls (hd0,4)/boot ... some kind of 'not found' message  grub rescue>  ls (hd0,3)/boot ... some kind of 'not found' message  grub rescue>  ls (hd0,2)/boot ... grub ... initrd.img-2.6.32-33-generic ... vmlinuz-2.6.32-33-generic   I found a /boot directory containing the vmlinuz file vmlinuz-2.6.32-33-generic on partition (hd0,2). Then I manually booted from the 'grub rescue>' prompt. The following commands will...   Set the root to use the /boot directory on partition (hd0,2). Load kernel module linux. Set that module to use the kernel image vmlinuz-2.6.32-33-generic. Set initrd(initialize RAM disk) to use the image initrd.img-2.6.32-33-generic. Boot Linux.  grub rescue>  set root=(hd0,2)/boot   grub rescue>  insmod linux   grub rescue>  linux (hd0,2)/boot/vmlinuz-2.6.32-33-generic root=/dev/sda2 grub rescue>  initrd (hd0,2)/boot/initrd.img-2.6.32-33-generic   grub rescue>  boot    This boots and crashes to the BusyBox prompt which DOES have some rudimentary filesystem commands. Then I moved the *.mod files back to the /boot/grub directory...  busybox>  cd /boot   busybox>  mv mod/* grub busybox>  reboot  The reboot was successful, but that was a lot of work.   Is there an easier way?


Nobody is going to even look at you when your sister is there.  How come the first part of sentence is in future and the last part in present? Is it a conditional ? I tried to change it in conditional form. Kindly check.  If your sister is there, nobody is going to even look at you.

Right now we are assembling a device. I am asking another person if he is can deliver it [after/when] we finish. What question construction is the most correct?  Can you deliver it after it is assembled?  Can you deliver it after it will be assembled?  Can you deliver it when it will be assembled?  Can you deliver it when it is assembled?


I purchased a Dell Inspiron 7746 notebook, and have installed Ubuntu 14.10 on alongside Windows.   All has worked well so far, but I am having a frustrating getting the trackpad to work correctly. The trackpad worked great when running from the Live CD, but once I actually installed the OS, I found that it's operation to be undesirable.  Here are the issues I am having:   Tap to click does not work. Clicks are only registered when pressing the clickpad Two-finger tap to right-click does not work. In fact, right-clicking is not possible at all. Pressing the clickpad in the right-click area does not register as a right-click. Two finger scrolling does work, however, after scrolling, any single finger trackpad action is also registered as a scroll. The only way to fix this is to two-finger scroll again. Trackpad does not disable while typing.   Here are some of the workarounds I have tried after doing some googling:   Ran synclient tapbutton 1=1  Added Option "TapButton1" "1" to 50-synaptics.conf Did a fresh install of 14.10 (several times, actually)   Perhaps the most frustrating thing about this is that the trackpad works beautifully on the live CD, just not when the OS is installed. Using a wireless USB mouse now, but would love to get this issue resolved. Thanks!

When I updated from 14.04 to 14.10 I noticed my track-pad cursor and left and right mouse clickers were not working. I have tried looking this issue up and can not find any solutions anywhere. If anyone could help me that would be amazing, I am using a wired mouse to my USB port for a temporary fix. I have a Dell Inspiron 15R.


My Samsung Series 9 laptop holds around 2-3 times longer on battery when on Windows 10, compared to Ubuntu. At least part of it is due to extensive power saving options available on Windows (is there another part? would be nice to know)  Is there a utility or a set of utilities that would be equivalent to all these options?

Is there any sort of installation that can be added to provide power options for when I am running on battery? I wouldn't want to always be on power savings, so I would hope I could switch between Eco and performance like I do with windows 7. Anything like this out there?


Now I'm learning Android development, and while following my book, I just wondered why using capital letters for SQLite column names?  db.execSQL("CREATE TABLE DRINK (_id INTEGER PRIMARY KEY AUTOINCREMENT, "                     + "NAME TEXT, "                     + "DESCRIPTION TEXT, "                     + "IMAGE_RESOURCE_ID INTEGER);")   Usually, I'm using small letters and _ only for Web developing.  Is there any reason for that? like code standard?

The default seems to be upper case, but is there really any reason to use upper case for keywords? I started using upper case because I was just trying to match what SQL Server gives me whenever I tried to create something, like a new stored procedure. But then, I felt terrible for my baby (5th) finger, that always needs to hold down the Shift button, so I stopped using upper case. Any reason why I should go back to upper case?  Edit: Thanks for the answers guys. I wasn't programming yet back in the days when  was king, so I wasn't aware of this. I'll stick with lower case from now on.


My soundcard stopped suddenly working on my Xubuntu LTS 14.04.  Is it better to install the most recent stable Xubuntu version on a Notebook? Is LTS only suggested for servers?

What are the differences between an Ubuntu Long Term Support release (LTS) and a normal release?


This is one of the most entertaining movies that has/have appeared this year.   Can't figure out with certainty whether the subject is singular or plural. Seems like has is the obvious answer but presence of that is making me falter.

One of the boys who always give/gives the correct answer is Samuel.   As per rule, one of is followed by plural noun/pronoun and singular helping verb, so we should be using gives in the sentence. But the answer is give.


I made a shapefile from a DEM raster of Ethiopia, and I want to find the total area of the shapefile. I have changed the CRS of all files to Africa_Albers_Equal_Area_Conic (ESPG: 102022), and the units are meters. I have tried using the field calculator, but the answers are very small. I have also used the identify features tool, and the answers are the same as the field calculator's.   I also used "count" in the field calculator to get the number of pixels, but these sometimes seem very small too. The pixel size is 0.000277778,-0.000277778, but I don't know what the units are, so I am not sure how to use that to find the area.          I tried using the measure area tool where you draw a polygon, but this gave a very small answer too.   I read there might be a way to do it with GRASS, but I have a problem with my GRASS plugin which I don't understand.

I learned on ArcGIS, and I'm familiarizing myself with the use of QGIS.  So far I love it, but the process of re-projecting and transforming datums seems less intuitive than in Arc.    I recently geocoded 63 locations, pulled in the csv and transformed into a points shapefile. I then set the projection for that points layer as the same for my block groups multi-polygon (EPSG 102121- NAD_1983_Michigan_GeoRef_Feet_US).    The 2 layers are still misaligned, even if I save each layer with the specified projection and try to reopen in a blank project.  Can anyone help?


I have learn about the final keyword means the refernce can't be changed. And if the keyword can't be reassigned, why can this work?  for(int i =0;i<10;i++){ final TextView tv = new TextView(); }   The tv reference will be assigned for new objects for 10 times.  And its referenced object can still change it's state. If we have an integer  final int a = 3; a++;        // error   it works  final Object obj = new SomeThing(); obj.setAttribute()    And I'm wondering that the keyword final is to describe the  reference or the object it refers to.

is this allowed in java:  for(int i=0;i<5;i++){   final int myFinalVariable = i; }   The keyword of my question is final. Is it allowed to do a final variable that changes with every run of the loop? I was wondering this because final says that you can't change the value of the variable (calling only myFinalVariable = i), but i'm redefining the whole variable with final int.   Are they two completely different variables just with the same name - with the variable from the previous run of the loop already heading down the road to the garbage collector?


Duplicate  The question was also answered here:   I found this formula on Wikipedia under ,  $\cos (\pi z) = \underset{n \in \mathbb{Z}_{\text{odd}}}{\prod} (1-\frac{2 z}{n})e^{2z/n}$  However, I am not able to prove it from   $\sin (\pi z) = \pi z \underset{n \neq 0}{\prod} (1-\frac{z}{n})e^{z/n}$  The derivation of $\sin (\pi z)$ on page 175 of "Functions of One Complex Variable I" by Conway may be helpful.  Would someone please help me prove it? Thanks!  Edit: I would like to derive $\cos (\pi z)$ from $\sin (\pi z)$. Sorry for the confusion

Using the infinite product of $\sin(\pi z)$, one can find the Hadamard product for $e^z-1$:  $$e^z-1  =2ie^{z/2}\sin(-iz/2)= 2i e^{z/2} (-iz/2) \prod_n \left(1+\frac{z^2}{4\pi n^2}\right)\\= e^{z/2} z \prod_n \left(1+\frac{z^2}{4\pi n^2}\right).$$  I don't see a way to find the product for $\cos\pi z$. A naive attempt is letting $\{a_n\}\subset{\Bbb C}$ be all the zeros of $\cos(\pi z)$ and showing the possible convergence of  $$ \prod_{n=1}^\infty\left(1-\frac{z}{a_n}\right) $$  Is there an alternative way to find the Hadamard product in the title for $\cos\pi z$?


Let $X$ be a compact space and $f_n: X \rightarrow \mathbb{R}, n \in \mathbb{N}$ are continuous and $f_{n+1}(x) \le f_n(x),\lim\limits_{n\rightarrow \infty} f_n=0, \forall x \in X $.  Prove that the sequence $\left\lbrace f_n\right\rbrace$ is uniformly convergent on $X$.  I'm trying to prove that with $G_n=\left\lbrace x \in X: f_n(x) < \epsilon\right\rbrace \Rightarrow \exists n_0: \forall n \ge n_0: G_n=X$ but I didn't succeed. Any solution is appreciated. Thank you.

I'd like to prove the following:  If $f_j$ are continuous functions on a compact set $K$, and $f_{1}(x) \leq f_{2}(x) \leq \dots$ for all $x \in K$, and the $f_j$ converge pointwise to a continuous function $f$ on $K$ then in fact the $f_j$ converge uniformly to $f$ on $K$.  Attempt:  Let $g_{j}(x) = f(x) - f_{j}(x)$ for all $j$. Then, since $f_j \rightarrow f$ pointwise, we see $g_j \rightarrow 0$ pointwise.  Now, let $\varepsilon > 0$ . And examine { $x \in K : g_{j}(x) < \varepsilon$ }.  I've been told that the next step should be to  show that { $x \in K : g_{j}(x) < \varepsilon$ } is equal to the intersection of $K$ with some open set $U_j$. But I'm not certain why this is true?   Advice? Insight?


Lately, I've been casting a lot of delete votes on old questions, but I find myself pretty much alone in doing so. So, I would like to know if I should stop bothering.  Do those delete votes expire at all, like close and reopen votes?

What circumstances can cause a question or answer to be deleted, and what does that actually mean?    How can a post be deleted? When can't I delete my own post? Can I still see my post even after it's deleted? Can I see a list of my deleted posts? How can I undelete one of my posts? What does deletion mean for a post? How do votes to delete work? What are the criteria for deletion? What else should I know about deleted posts? If I flag my question with a request to delete it, what will happen?       For more information, see the articles about  and  in the .


So, I have UV unwrapped my model and made a texture for it and then started texturing the model, at first it appears textured when I render the image, but for some random reason after when I paint something it doesn't show anymore when I render it. Does anyone know why this is the case?   So this is something random,     And this is it rendered, as you can see the thing I drew isn't on the model. The thing is it worked before I saved the texture in a texture folder. This really confuses me since it used to work on this exact model, anyone knows why?

I was working on a tower and painted my own texture for it. I saved halfway though and took a break. When I returned to my little project, I could paint on the image and it shows up in the material view but not the render. I did everything in my power but still couldn't understand why?  I have used:   Nodes, including mapping and insert UV coordinates. Unwrap UVs Used lights Deleted and replace nodes Deleted and replace Mat Removed image and replace it Reload image Painted on mesh   Even though use blender, I am not a programmer. So I find it really helpful if someone could give me an answer.


I am trying to evaluate this limit without using the closed form expression for the sum of natural numbers raised to $k$th power.  $$\lim_{n \to \infty} \dfrac{ 1^n +2^n+\cdots +n^n}{n^n}$$   So far I have tried l'Hôpital which complicates it rather than simplifying and Cesaro Stolz doesn't seem to work either.

I remember that a couple of years ago a friend showed me and some other people the following expression:  $$\lim_{n\to \infty}\frac{1^n+2^n+\cdots+(n-1)^n}{n^n}.$$  As shown below, I can prove that this limit exists by the monotone convergence theorem. I also remember that my friend gave a very dubious "proof" that the value of the limit is $\frac{1}{e-1}$. I cannot remember the details of the proof, but I am fairly certain that it made the common error of treating $n$ as a variable in some places at some times and as a constant in other places at other times. Nevertheless, numerical analysis suggests that the value my friend gave was correct, even if his methods were flawed. My question is then:  What is the value of this limit and how do we prove it rigorously?  (Also, for bonus points, What might my friend's original proof have been and what exactly was his error, if any?)  I give my convergence proof below in two parts. In both parts, I define the sequence $a_n$ by $a_n=\frac{1^n+2^n+\cdots+(n-1)^n}{n^n}$ for all integers $n\ge 2$. First, I prove that $a_n$ is bounded above by $1$. Second, I prove that $a_n$ is increasing.   (1) The sequence $a_n$ satisfies $a_n<1$ for all $n\ge 2$.  Note that $a_n<1$ is equivalent to $1^n+2^n+\cdots+(n-1)^n<n^n$. I prove this second statement by induction. Observe that $1^2=1<4=2^2$. Now suppose that $1^n+2^n+\cdots+(n-1)^n<n^n$ for some integer $n\ge 2$. Then  $$1^{n+1}+2^{n+1}+\cdots+(n-1)^{n+1}+n^{n+1}\le(n-1)(1^n+2^n+\cdots+(n-1)^n)+n^{n+1}<(n-1)n^n+n^{n+1}<(n+1)n^n+n^{n+1}\le n^{n+1}+(n+1)n^n+\binom{n+1}{2}n^{n-1}+\cdots+1=(n+1)^{n+1}.$$  (2) The sequence $a_n$ is increasing for all $n\ge 2$.  We must first prove the following preliminary proposition. (I'm not sure if "lemma" is appropriate for this.)  (2a) For all integers $n\ge 2$ and $2\le k\le n$, $\left(\frac{k-1}{k}\right)^n\le\left(\frac{k}{k+1}\right)^{n+1}$.  We observe that $k^2-1\le kn$, so upon division by $k(k^2-1)$, we get $\frac{1}{k}\le\frac{n}{k^2-1}$. By , we may find:  $$\frac{k+1}{k}\le 1+\frac{n}{k^2-1}\le\left(1+\frac{1}{k^2-1}\right)^n=\left(\frac{k^2}{k^2-1}\right)^n.$$  A little multiplication and we arrive at $\left(\frac{k-1}{k}\right)^n\le\left(\frac{k}{k+1}\right)^{n+1}$.  We may now first apply this to see that $\left(\frac{n-1}{n}\right)^n\le\left(\frac{n}{n+1}\right)^{n+1}$. Then we suppose that for some integer $2\le k\le n$, we have $\left(\frac{k}{n}\right)^n\le\left(\frac{k+1}{n+1}\right)^{n+1}$. Then:  $$\left(\frac{k-1}{n}\right)^n=\left(\frac{k}{n}\right)^n\left(\frac{k-1}{k}\right)^n\le\left(\frac{k+1}{n+1}\right)^{n+1}\left(\frac{k}{k+1}\right)^{n+1}=\left(\frac{k}{n+1}\right)^{n+1}.$$  By backwards (finite) induction from $n$, we have that $\left(\frac{k}{n}\right)^n\le\left(\frac{k+1}{n+1}\right)^{n+1}$ for all integers $1\le k\le n$, so:  $$a_n=\left(\frac{1}{n}\right)^n+\left(\frac{2}{n}\right)^n+\cdots+\left(\frac{n-1}{n}\right)^n\le\left(\frac{2}{n+1}\right)^{n+1}+\left(\frac{3}{n+1}\right)^{n+1}+\cdots+\left(\frac{n}{n+1}\right)^{n+1}<\left(\frac{1}{n+1}\right)^{n+1}+\left(\frac{2}{n+1}\right)^{n+1}+\left(\frac{3}{n+1}\right)^{n+1}+\cdots+\left(\frac{n}{n+1}\right)^{n+1}=a_{n+1}.$$  (In fact, this proves that $a_n$ is strictly increasing.) By the monotone convergence theorem, $a_n$ converges.  I should note that I am not especially well-practiced in proving these sorts of inequalities, so I may have given a significantly more complicated proof than necessary. If this is the case, feel free to explain in a comment or in your answer. I'd love to get a better grip on these inequalities in addition to finding out what the limit is.  Thanks!


I am using two packages - exercise and listings. I am trying to create an environment "codeAnswer" for answers specifically containing source code, so that i don't have to do -  \begin{Answer} \begin{lstlisting} <code answer> \end{lstlisting} \end{Answer}   But it doesn't work. Any help appreciated, as always :) Buggy code below:  \documentclass[11pt]{article} \usepackage[answerdelayed]{exercise} \usepackage{listings}  %need to fix \newenvironment{codeAnswer} {     \begin{Answer}     \begin{lstlisting} } {     \end{lstlisting}     \end{Answer} }  \begin{document}  \begin{Exercise}  What is 2 + 3?   \end{Exercise} \begin{Answer} 5    \end{Answer}  \begin{Exercise} Write a piece of code that divides 5 by 2 and stores in an integer $x$.  \end{Exercise}   %Following commented part works fine %\begin{Answer} %\begin{lstlisting} %int x = 5/2;    %\end{lstlisting}    %\end{Answer}  %FOLLOWING DOESN'T WORK \begin{codeAnswer}  int x = 5/2;     \end{codeAnswer}  \shipoutAnswer \end{document}

I have a problem with the lstlisting package. I want to define an \newenvironment with one obligatory parameter, which will be the caption name for the lstlisting. I will also have other lstlisting environments, that is why I am trying to define them separately.  I am also having some difficulties with \lstinline command (I set up a \newcommand to gain easier coding), which typesets keywords in normal text. Why can't it be in captions and similar?  I suppose something could be wrong with the preamble, that's why all the packages used are listed.  \documentclass{book} \usepackage[a4paper, top=3cm, bottom=3cm, heightrounded, outer=3cm, inner=3cm, marginparwidth=1.5cm, marginparsep=0.5cm]{geometry}  \usepackage{tocloft} \usepackage{amsmath}  \usepackage{eurosym} \usepackage{url} \usepackage{array} \usepackage{tabularx} \usepackage{multirow}  \usepackage{multicol}  \usepackage{graphics} \usepackage[dvips]{graphicx}  \usepackage{epstopdf}  \usepackage[dvipsnames]{xcolor}  \usepackage{verbatim} \usepackage{fancyvrb}  \usepackage{fancyhdr} \usepackage{paralist}  \usepackage{listings}  \usepackage{pifont}  \usepackage{indentfirst}   \lstset{language=[Visual]Basic, % keywordstyle=\color{blue},commentstyle=\color{ForestGreen},stringstyle=\color{Maroon},% basicstyle=\ttfamily\normalsize, frame=lines, % showspaces=false, showstringspaces=false,% tabsize=4, aboveskip=10pt, belowskip=10pt, % lineskip=2pt, numbers=left, numberstyle=\tiny, stepnumber=1, numbersep=5pt,% numberblanklines=false, % breaklines, breakatwhitespace, prebreak=\_, breakindent=0pt % }  \lstset{morekeywords={Or, Loop, Until, To, As, Single, Module, Double, ByVal}}  \lstset{emph={Console}, emphstyle=\color{Aquamarine}}  \newenvironment{case}[1]{\renewcommand\lstlistingname{Case}% \begin{lstlisting}[caption={#1}]}% {\end{lstlisting}}  \newcommand{\code}[1]{\lstinline[basicstyle=\rmfamily\normalsize, prebreak=, keywordstyle=\ttfamily]{#1}}   \begin{document}  Example with inline, that works: \code{Console, Sub in Module}.  \begin{case}{Hello world} %doesn't work Module Module1     Sub Main()         Console.WriteLine("Hello World!")         Console.ReadKey() End Sub End Module \end{case}  \end{document}   Thank you in advance!


I have written the below code in Java to check for no entry by a user in JTextArea. Only JTextArea.getText().equals("") works while others do not. It would be of great help in case you can explain why other other checks don't work.  Thanks  import java.util.*; import java.awt.*; import java.awt.event.*; import javax.swing.*;  class TestJTextArea{   private JFrame frame;   private JPanel panel;   private JLabel textLabel;   private JTextArea textArea;   private JButton submitButton;    public TestJTextArea(){     frame = new JFrame("Test JTextArea");     panel = new JPanel();     textLabel = new JLabel("Enter your Text below");     textArea = new JTextArea(20,20);     submitButton = new JButton("Submit");      setupGUI();   }    private void setupGUI(){     textArea.setLineWrap(true);     textArea.setWrapStyleWord(true);     JScrollPane scrollPane = new JScrollPane(textArea);     scrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);     scrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);      textArea.setFont(new Font("sansserif", Font.BOLD, 24));      panel.setLayout(new BoxLayout(panel,BoxLayout.Y_AXIS));     panel.add(textLabel);     panel.add(scrollPane);     panel.add(submitButton);     submitButton.addActionListener(new SubmitButtonListener());      frame.setSize(200,200);     frame.getContentPane().add(BorderLayout.CENTER,panel);     frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);     frame.setVisible(true);   }    private class SubmitButtonListener implements ActionListener{     public void actionPerformed(ActionEvent e){   Check for equals("") works. So the below code throws True:  if(textArea.getText().equals("")){         JOptionPane.showMessageDialog(null,"No Text test True for equals()","Check equality through equals()",JOptionPane.WARNING_MESSAGE);       }       else         JOptionPane.showMessageDialog(null,"No Text test False for equals()","Check equality through equals()",JOptionPane.WARNING_MESSAGE);   The below code throws False:    if(textArea.getText() == ""){     JOptionPane.showMessageDialog(null,"No Text test True for ==","Check equality through ==",JOptionPane.WARNING_MESSAGE);   }         else     JOptionPane.showMessageDialog(null,"No Text test False for ==","Check equality through ==",JOptionPane.WARNING_MESSAGE);   The below code throws False:   if(textArea.getText() == null){     JOptionPane.showMessageDialog(null,"No Text test True for null","Check equality through null",JOptionPane.WARNING_MESSAGE);   }         else     JOptionPane.showMessageDialog(null,"No Text test False for null","Check equality through null",JOptionPane.WARNING_MESSAGE);   All the below Codes throw False:    if(textArea.getText().toString() == ""){     JOptionPane.showMessageDialog(null,"No Text test True for toString()","Check equality through toString()",JOptionPane.WARNING_MESSAGE);   }         else     JOptionPane.showMessageDialog(null,"No Text test False for toString()","Check equality through toString()",JOptionPane.WARNING_MESSAGE);    if(textArea.getText().toString() == null){     JOptionPane.showMessageDialog(null,"No Text test True for toString() = null","Check equality through toString() = null",JOptionPane.WARNING_MESSAGE);   }         else     JOptionPane.showMessageDialog(null,"No Text test False for toString() = null","Check equality through toString() = null",JOptionPane.WARNING_MESSAGE);

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


After doing a  restore, relevant files are not showing up in Dash search. How do I fix this?  Here's a screenshot:   Here I'd expect to see Module_4.pdf in my Desktop folder. But I see the recent files I opened.  UPDATE: I can search songs by going to the music tab.

I just upgraded my Ubuntu 11.10 (x86) to Ubuntu 12.04 (x86). The upgrade completed without any errors.  Since then, I am unable to access any of the applications in the Dash. The Dash seems to be empty. When I search for some application like gedit, it says "Sorry, there is nothing that matches your search".  Is there any way to fix it?


My interest is just to test a small website hosted on my own computer that a friend of mine will access remotely from another state, I don't know how it works so I don't need dns I can just use the ip as an address, the server is an apache and  my question is how to make the site accessible in addition to localhost?

Hi I want to make my own SNS (Social Networking Site), so I installed LAMP on my Ubuntu 14.04. But its not accessible from the internet! I can run the server only on my computer by typing "https:\localhost" on my browser.  I don't want any domains; I just want that whosoever from any part of the world wants to use my SNS he/she just have to type the ip-address and my SNS opens i.e. I want my server accessible from the internet.  My router is Binatone DT 850W. Can you please tell me what should I do?


I cant remember my password and i am locked out on my lenovo tablet. What should i do without fa tory resseting? I need help i cant find also a forgot button and i have no idea what to do

My son has an impression tablet 10 and has forgot the lock pattern. How can we reset it without knowing the code?


I need to color a specific word in my document  compiled with XeLaTeX engine,  following this answer .  \documentclass{article} \usepackage{color,xesearch}  \SearchList*{redwords}{\textcolor{red}{#1}}{hello}  \begin{document} This is hello and this is hellow. \end{document}   I have Error     ! Undefined control sequence.  \xdef \xs@String   {\xs@String h}\xs@LearnLetter l.7 Thi s is hello and this is hellow.   The control sequence at the end of the top line of your error message   was never \def'ed. If you have misspelled it (e.g., '\hobx'), type 'I'   and the correct spelling (e.g., `I\hbox'). Otherwise just continue,   and I'll forget about whatever was undefined.

I'm using some code I found here on stackexchange to count words in a LaTeX document. I'm using TeXLive on a Mac and using XeLateX to produce the pdf document. It produces a pdf, but with an error message, and longer documents fail to produce the correct pdf.  Here's a minimal document:  \documentclass{article}  \usepackage{xesearch} \newcounter{words} \newenvironment{wordcount}{% \setcounter{words}{0} \SearchList!{wordcount}{\stepcounter{words}}     {a?,b?,c?,d?,e?,f?,g?,h?,i?,j?,k?,l?,m?,     n?,o?,p?,q?,r?,s?,t?,u?,v?,w?,x?,y?,z?} \UndoBoundary{'’-} \MakeBoundary{„“‚‘–} \SearchOrder{p;}}{% \StopSearching}  \begin{document} \begin{wordcount}  Here are some words.  Here are some more words.  \end{wordcount} \end{document}   Here's the error message:  ! Undefined control sequence. <XeTeXinterchartoks> \xdef \xs@String {\xs@String e} l.20 Her e are some words. The control sequence at the end of the top line of your error message was never \def'ed. If you have misspelled it (e.g., `\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined.   I have XeTeX version 3.14159265-2.6-0.99996 (TeX Live 2016), and the most recent xesearch version available in the TeXLive utility (0.1). This worked fine when I was using Tex Live 2014 version, but so many things have been updated now I don't know where to start figuring out what the problem is.


When viewing any room now on MSE chat on mobile device (or desktop with mobile theme), I see the following message:        Or in text:     This room is read-only   While this is technically true (it is read only for me since I'm chat banned), this implies the room is in gallery mode, so nobody (other than RO and approved users) can talk there.  The full site theme already has a friendly and useful message instead:        Can this message be applied in mobile theme as well?

Earlier today, I was suspended from chat due to an inappropriate message (I totally deserved it, but that's not the point). I looked at my phone, and this is all that it told me:    ...which confused me because chat was still moving as normal. I didn't realize that I had been suspended until I checked on my computer to see what the heck was going on.  To me, "This room is read-only" sounds like some sort of database lockup or something related specifically to the room, not the user. It doesn't give any feedback to indicate that the room will be "read-only" for 30 minutes, and doesn't mention that all other rooms are also "read-only". Even a message saying just "You have been suspended from chat" would be more helpful.


I am trying to make a 3rd person game in the blender game engine but I do not know how to make a third person camera. So what I want is: Make the camera follow the player (cube) and rotate the camera around the player (cube) just like other 3rd person games like Uncharted and Grand Theft Auto.  Is something like this doable with Logic bricks? (if not then python code would be alright)  I am also quite new to the blender game engine, so please try to explain it as good as possible.  Blender Version: 2.76

How would I go about creating a 3D MMORPG Mouse Look? I have created a 3D Space Rpg that is almost finished with success so far. However, I didn't have a clue, how I would attempt to make a Mouse Look method where if a user right clickes and then holds the right mouse button and moves it around the camera moves around with the mouse. The camera can not move away from your character/ship, it should act as if the character/ship is it's origin and that it rotates all around the origin.  I don't mind coding this with python either. Advice is welcome!


A couple of weeks ago, I graduated with an MS in Experimental Psychology (Emphasis in Human Factors and Ergonomics). I've been interested in web design ever since high school, which morphed into an interest in UX design while I studied Human Factors. I'm hoping to get any advice that I can while I prepare and submit job applications.    What can I do to set myself apart from other applicants given that I have limited real world experience?  How hard will it be for me to find work with a Master's and no professional experience? What UX related resources can I use to further educate myself while I search for work?   I'm completely in the dark about the UX industry, so any advice would be appreciated.

I am a UI designer and developer and have been designing websites for aound 10 years. I want to get into user experience design. I know how to do a design, but I am lagging the terminologies and the technical things in the user experience field.   So how do I go about getting the skills and mindset necessary for being a User Experience Designer?


I am assuming this is one of those "just not how it works" issues, but I fail to see why. Why do I need to qualify B's call to As Start with A::. If I change B::Start() to B::DoSomethingElse() I could call a parameter less Start() without A::. So what is happening? #include <iostream> #include <string>  class A {   public:     void Start(){              } };  class B : public A {     public:         void Start(int x){             Start();     // cannot call this               A::Start();  // can call this           } };

I have a function with the same name, but with different signature in a base and derived classes. When I am trying to use the base class's function in another class that inherits from the derived, I receive an error. See the following code:  class A {     public:     void foo(string s){}; };  class B : public A {     public:     int foo(int i){}; };  class C : public B {     public:     void bar()     {         string s;         foo(s);     } };   I receive the following error from the gcc compiler:  In member function `void C::bar()': no matching function for call to `C::foo(std::string&)' candidates are: int B::foo(int)   If I remove int foo(int i){}; from class B, or if I rename it from foo1, everything works fine.   What's the problem with this?


All introductory books on calculus talk a lot about how to get derivatives of functions, this is fine with me. What however that's still confusing to me is the real use of derivatives. for example the y(x) = x^2 has 2x has its derivative. How is 2x useful in relation to the original function.

I am only starting learning calculus and it's difficult for me to understand the main concept behind calculus ideas particularly differentiation I have searched many resources but most of them are very similar explaining things with words like "speed", "rate of change", "tangent" and "function change in respect to input change"... I know the rules of computation but  the purpose is not very clear for me  I would be very grateful if somebody could help me grasp this concept and explain why one would want to compute the "rate of change" of a function and what exactly problem do derivatives solve.  Pretend that I am very stupid (unfortunately I am :) ) and don't use any abstract concepts (even if they are  intuitive to a human being )  as "speed" if possible Thanks


This is a FAQ proposal. Its aim is to advise and better protect users across the Stack Exchange network but especially to users who can be as . It is hoped that this guide will help users make informed choices about their safety online and what to do if they happen to witness abusive behaviour on any Stack Exchange site.      How safe are my personal details/email address on Stack Exchange? What information in my profile is visible to visitors?  If I'm  scared for my safety because of what someone says on a Stack Exchange site or in chat, what can I do? Who do I contact? What should I do if I see someone posting abusive comments on Stack Exchange?

I am new to Stack Overflow. I keep seeing so many beautiful posts/answers. It's really a great place for everyone getting to know about software programming. Lots of people post so much knowledge in terms of solutions and algorithms that may be proprietary/open source information.  The least amount of personal information I can provide is my email id, if I connect with Google, Facebook, etc. However, the email id itself reveals my association and the work I do.  This makes me believe that Personally Identifiable Information on Stack Exchange should be absolutely safe and not available to anyone, even the admins.   My concerns are:   Who can see my PII on SO? Is it safe from attacks?   Note:  It may be a paranoid / unimaginable aspect associated with how Stack Overflow works, but I think those who want to break things find ways to do it in unimaginable ways. Most people have work place information available publically on linkedin / facebook / google. Not all will use open id, hence the question.


I computed the determinant to $D= a^{3} - 27a-54$. When I solve $D=0$, I get $a=6$ and $a=-3$ Now when I plug in these values and bring the matrix to rref, I end up with the identity matrix, both for $a=6$ and $a=-3$. That's confusing because that would mean the matrix $A$ has $rank=3$ for all values of $a$, and that can't be. So what is going on here?  EDIT: I have already looked at similar questions so please don't mark this as duplicate. From those questions I have understood how to solve this, so that is not the problem. I took the route involving determinants but it gave me results that weren't expected. I have checked the algebra quite a few times and it always seems to come down to this, so I'm posting in the hope that someone can tell me what's wrong.

We have the matrix  $$A = \begin{bmatrix}1 & a & 1\\-4 & 2 & a \\ a & -1 & -2 \\ 4 & 6 & 1\end{bmatrix}$$  and we want to find the rank of this matrix as a function of parameter $a$.


The text of examples is too close to the example number with example numbers having three or more digits. The problem relates to the use of the Brill font, as it disappears with other fonts.     Here's a MWE:  \documentclass{memoir} \usepackage{mathastext} \usepackage[no-math]{fontspec} \setmainfont{Brill}  \usepackage{linguex}  \begin{document}   \ex. [$_S$ [$_{NP}$ Bartoli] [$_{VP}$ zoent Pavarotti]]  \setcounter{ExNo}{49}  \ex. [$_S$ [$_{NP}$ Bartoli] [$_{VP}$ zoent Pavarotti]]  \ex. [$_S$ [$_{NP}$ Bartoli] [$_{VP}$ zoent Pavarotti]]  \setcounter{ExNo}{99}  \ex. [$_S$ [$_{NP}$ Bartoli] [$_{VP}$ zoent Pavarotti]]  \end{document}

When using linguex example numbering packing, if I use \defaultfontfeatures{Numbers=OldStyle} with xetex or luatex, then with certain example numbers exceeding 99, there is no spacing between the example number and the text:    Minimal example (with ellipsis of actual repeated examples necessary to push numbering over 99):  \documentclass{article}[12pt]  \usepackage{fontspec} \defaultfontfeatures{Numbers=OldStyle}  \setmainfont{Junicode} \usepackage{linguex}  \begin{document}     \ex. Hello, world! Quit. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.  \ex. Hello, world! Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.  \ex. Hello, world! Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.  \ex. Hello, world! Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.  \ex. Hello, world! Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.  ....  \ex. Hello, world! Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.  \end{document}   Aside from not using oldstyle numbers, is there a way around this?  I tried playing with different values for linguex's \Exlabelwidth, but none of the values seemed to make any difference.


The author of this  posted the source on github, but as the commits state, the background image was thrown in later and not referenced in the style files.  I added a global background template to the main style file, but using ./ as the relative path doesn't work. Is there a relative path for CURRENT_THEME that I can use to specify it? Neither the Beamer manual nor any existing questions/answers I found go into path issues about this.

I am working on a beamer template for my institute in which I am using \pgfdeclareimage for images. I have quite a lot images and logos for different projects/experiments/groups and I organised the files as   mainfolder/  -example.tex  -beamerthememy.sty  -art/myexample.pdf   Now the problem is how to declare the images. Using   \pgfdeclareimage[width=.5\paperwidth]{test}{art/myexample.pdf}    works for the .tex file in the same folder as the .sty file and the art directory.   But when I put the .sty file and the art directory inside my $TEXMFHOME directory (and the .tex file somewhere else) I have to use   \pgfdeclareimage[width=.5\paperwidth]{test}{myexample.pdf}   I there a way to declare the image which works in both cases?    \documentclass{beamer}  % works if .tex file is in the same directory as the .sty file and `testdir` \pgfdeclareimage[width=.5\paperwidth]{test}{art/myexample.pdf}    % works if .sty file and `textdir` are in my lokal `texmf` folder %\pgfdeclareimage[width=.5\paperwidth]{test}{myexample.pdf}       \begin{document}      \begin{frame}          \pgfuseimage{test}     \end{frame}   \end{document}   To make the example minimal I moved \pgfdeclareimage from the .sty file to the .tex file. If you have the feeling, this is too minimal, I will add a .sty file


I'm trying to delete some files in a directory using some commands. Using loop for i in $(ls -tr $path); ... i need to know length of $(ls -tr $path)  How to get the number of files in directory $path without using one more loop?  The very problem is to delete the files in the folder. The resultant folder have to contain no more than 10 most recent files.

I'm trying to keep a directory full of log files manageable. Nightly, I want to delete all but the 10 most recent. How can I do this in a single command?


I am not a native speaker and I get confused with the use of the words 'people' and 'they'. Do the following sentences mean the same?        When people heard the news, the bravest volunteers came forward with   help.      When they heard the news, the bravest volunteers came forward with   help.   Can we use 'they' in front of the noun phrase as in the second sentence?

I am always confused by these tricky-in my opinion-ones as below.  For example,   People love their life or lives. Girls always love their boyfriend or boyfriends. People think of their college or colleges as an enjoyable place or enjoyable places.   My point is that every time I come across such things, I am not sure about whether an objective or a complement has to be plural, every time the subject is plural. Actually, in the ex1 sentence, I think both of them are what I have seen before. However, the rest 2 sentences are not so sure if I let them be singular. In the ex2, every girl has one boyfriend-IN MOST CASES. Also, in the ex3, everyone attends one college.  In that sense, since the subjects are plural, should the objectives or the compliment be pluralized? Or, is it okay if I leave them single as the ex1 sentence? The problem is, though, if I leave them singular they sound like they have ONE boyfriend to share or they go to the same college. It sounds weird to me. Is it just me or is this incorrect?


I was looking to get a circular polarizing filter and an UV filter for my Canon 550D, 18-135mm lens. When I checked online I found these filters came in different sizes, like 62mm, 67mm, 72mm, 77mm. How do I know which is right?  Also, will there be any degradation of photo quality if I put both these filters on the lens?


I just cannot seem to get these to pop up on the stock Android browser or the latest Chrome for Android, in both desktop and mobile mode. Can a click event be added for these (and other tooltips/title text/alt text that are useful on the site)?

On the desktop site, when looking at posts that are recent enough, sometimes the site just says "1 hour ago."     However, if I hover over it, it shows a nice little timestamp:    I would love to be able to see post timestamps on the mobile site. While posts that are old enough show the hour and minute they are from, it is, as far as I know, impossible to get these for recent posts.


I know that one can time travel to the past through wormholes. But what if I use special relativity for that. I mean, If one has to go to the future, he has to increse his velocity, but what about going to the past. I propose that if we increase the velocity of the surroundings of a system while keeping its velocity constant, should'nt we be able to travel to the past?

I read somewhere that according to relativity, it is possible - involving black holes and other stuff - to jump into the past. Is it possible for anything to go back in time either continuously or by jumping?


"The problem is who can we get to replace her" vs. "The problem is who we can get to replace her" Which one is correct and why?

We always change subject and verb positions in whenever we want to ask a question such as "What is your name?". But when it comes to statements like the following, which form is correct?        I don't understand what are you talking about.   I don't understand what you are talking about.      Another example        Do you know what time is it?   Do you know what time it is?      Another example        Do you care how do I feel about this?   Do you care how I feel about this?


Why is the octet rule true? How can electrons even stay around nuclei with lesser number of protons?

What is the quantum mechanical explanation of the ? In other words, what makes the octet rule be true from a quantum mechanical view? How we explain  what makes some atoms don't follow the octet rule using QM?


When a drop falls into a tub of water, we see a small drop of water rising above the surface of water. This situation does not conserve energy (because initial drop has more kinetic energy and surface energy with  respect to the second raised drop). As there is no net force there, but it does not conserve momentum (because initial momentum is downward with greater magnitude but final momentum is upward with lesser magnitude).   Where is the fault in my assumption in the above situation? How does this happen failing these fundamental laws!!!  This happens not only with water drop, but anything other than gases.

When a drop of water falls into a reservoir of water from a high enough altitude, water droplets will splash ():    My question: Does the water in those droplets come from the original drop or from the reservoir?


Is it possible for me to restore a SQL Server 2019 database up to a particular datetime? The database backup is full backup. The database is full recovery mode, and only one transaction log backup after the full backup. Thanks.

I have a database with recovery mode set to FULL. It's a dev database and I have two full backups dated 19th and 27th i.e. latest.  One of the developer did some changes on 26th and I want to rollback those changes and want to restore database at a state of 25th.   restore database MyDb from disk = 'I:\MSSQL\DATA\MyDb_20160127.bak' with recovery, stopat = '2016-01-25 10:38:15.280', move 'MyDb' to  'I:\MSSQL\DATA\MyDb.mdf', move 'MyDb_log' to 'I:\MSSQL\DATA\MyDb.ldf'      The STOPAT clause specifies a point too early to allow this backup set   to be restored. Choose a different stop point or use RESTORE DATABASE   WITH RECOVERY to recover at the current point.   I am using SQL Server 2005


I have a webserver running Ubuntu 14.04. we are running a number of websites on it. one of the websites requires to be run on https. I have configured the SSL certificate and https is working properly except when someone types http, its failing to redirect.  when I edited the www.**.com.conf in sites-enabled to add a redirect configuration, its affecting all the websites running on http, taking them to the website with https. Someone help with how I can configure to redirect http traffic to https for just one website without affecting the other websites.

how do I set up the auto redirect with apache2. I have got SSL working and want to redirect all to the SSL side. I added Redirect /  but takes me to the wrong site directory whereas https takes me to the right spot. Is that the right thing to add for the redirect? (its in VirtualHost *:80)  Current VirtualHost file:  ServerName fraffel.tech   <VirtualHost *:80>     ServerAdmin webmaster@localhost     DocumentRoot /var/www/fraffeltech     Redirect / https://fraffel.tech/     ErrorLog ${APACHE_LOG_DIR}/error.log     CustomLog ${APACHE_LOG_DIR}/access.log combined  </VirtualHost>  <VirtualHost *:443>      DocumentRoot /var/www/fraffeltech      SSLEngine on      SSLCertificateFile /etc/ssl/fraffel_tech.crt      SSLCertificateKeyFile /etc/ssl/private/fraffel.tech.key      SSLCertificateChainFile /etc/ssl/fraffel_tech.ca-bundle  </VirtualHost>


I want to make an attendance sheet in Excel. If a child is present, the teacher will write P in a cell, or A for absent. I have to add l (which indicates  a latecomer) in addition to attendance. So an entry with both P and l must also be counted in total days present; I want to get the number of P and l in a range to calculate total number of days in the month each child was present.   How can I accomplish this?

I want to make an attendance sheet in excel. If a child is present, the teacher will write P in a cell, or A for absent, or L for latecomer. I want to get the number of P or L in a range to calculate total number of days in a month for each child, where the child has been either present or late.  How can I accomplish this?


Let $\,f:[0,\infty)\to [0,\infty)$ be a function such that $\,f(x+y)=f(x)+f(y),\,$ for all $\,x,y\ge 0$. Prove that $\,f(x)=ax,\,$ for some constant $a$.   My proof :  We have , $\,f(0)=0$. Then ,  $$\displaystyle f'(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}=\lim_{h\to 0}\frac{f(h)}{h}=\lim_{h\to 0}\frac{f(h)-f(0)}{h}=f'(0)=a\text{(constant)}.$$  Then, $\,f(x)=ax+b$. As, $\,f(0)=0$ so $b=0$ and $f(x)=ax.$  Is my proof correct?

The  asks about functions $f \colon \mathbb R \to \mathbb R$ such that $$f(x+y)=f(x)+f(y).$$ It is a very well-known functional equation, which appears in various areas of mathematics ranging from exercises in freshman classes to constructing useful counterexamples for some advanced questions. Solutions of this equation are often called . Also a few other equations related to this equation are often studied. (Equations which can be easily transformed to Cauchy functional equation or can be solved by using similar methods.) Is there some overview of basic facts about Cauchy equation and related functional equations - preferably available online?


I'm trying to avoid the NullPointerException when my function from DAO is not getting an item from the database table, but for now, it's not with success. I let my DAO, Service, and call function below. Please give me some suggestions. Thank you! DAOImpl @Component(value = "arbRedirectHttpTypeDao") public class ArbRedirectHttpTypeDaoImpl implements ArbRedirectHttpTypeDao {  private static final org.apache.log4j.Logger LOG = Logger.getLogger(ArbRedirectHttpTypeDaoImpl.class);  @Autowired private FlexibleSearchService flexibleSearchService;  @Override public ArbRedirectHttpTypeModel findNewUrlByOldUrl(String oldUrl) {      final String query = "SELECT {pk} FROM {"+ ArbRedirectHttpTypeModel._TYPECODE +"} WHERE {"             + ArbRedirectHttpTypeModel.OLDURL +"}=?oldUrl";      final FlexibleSearchQuery searchQuery = new FlexibleSearchQuery(query);      searchQuery.setResultClassList(Collections.singletonList(ArbRedirectHttpTypeModel.class));     searchQuery.addQueryParameter("oldUrl", oldUrl);      ArbRedirectHttpTypeModel arbRedirectHttpTypeModel = null;      try{                  arbRedirectHttpTypeModel = flexibleSearchService.searchUnique(searchQuery);              }catch (final ModelNotFoundException e){                  LOG.error("No item found",e);              }      return arbRedirectHttpTypeModel;  }  SERVICEImpl @Component(value = "arbRedirectHttpTypeService") public class ArbRedirectHttpTypeServiceImpl implements ArbRedirectHttpTypeService {  @Resource private ArbRedirectHttpTypeDao arbRedirectHttpTypeDao;  @Override public ArbRedirectHttpTypeModel findNewUrlByOldUrl(String oldUrl) {         return arbRedirectHttpTypeDao.findNewUrlByOldUrl(oldUrl);  }  Call methods  String newUrl = null;     String responseType = null;      try {         ArbRedirectHttpTypeModel arbRedirectHttpTypeModel = arbRedirectHttpTypeService.findNewUrlByOldUrl(context);          newUrl = arbRedirectHttpTypeModel.getNewUrl();         responseType = arbRedirectHttpTypeModel.getResponseType().toString();

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I am new to JQuery. I have two tables: table1 is hardcoded in HTML and table2 is generated using javascript from an array loaded from a csv file. After the second table is displayed, I want to highlight (and later process) the row that user clicks using a JQuery. Simplified code below.  Hardcoded table:

 cell1	cell2	cell3

 cell4	cell5	cell6

   Generate table from an array with id "data" (works fine):     JQuery script to do whatever to a row in the table, for example display an alert when a row is clicked:     This code doesn't work for the generated table2. It does work only if I try to highlight the whole table (using $("table")) but not when I try to highlight any of its elements (tr, td). It works perfectly for the hardcoded table1.  I tried using different elements like $("#table2 :td"), $("#table2 td") and so on but to no avail. How come I can access the whole table but not its elements?

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


who can help me?I get in only Horizontal app  [code]java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.systemui/com.android.systemui.recents.RecentsActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.setVisibility(int)' on a null object reference     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2447)     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2511)     at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:4121)     at android.app.ActivityThread.-wrap15(ActivityThread.java)     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1366)     at android.os.Handler.dispatchMessage(Handler.java:102)     at android.os.Looper.loop(Looper.java:148)     at android.app.ActivityThread.main(ActivityThread.java:5480)     at java.lang.reflect.Method.invoke(Native Method)     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)  Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.setVisibility(int)' on a null object reference     at com.android.systemui.recents.RecentsActivity.updateBlurBackgroundImageView(RecentsActivity.java)     at com.android.systemui.recents.RecentsActivity.onStart(RecentsActivity.java:554)     at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1237)     at android.app.Activity.performStart(Activity.java:6334)     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2410)     ... 11 more  [/code]


Peter with a standard double six set lays 28 dominoes in one direction - what will be the last number on the end on then of the last domino?   Suppose he plays in both directions and discovers that he can use all the dominoes that he has available but Ann announces she hid one from before he started - which one will it be?   I have the answer 6 for the first part but anyone have a clue of the second part because in a pack there is 28 and if she hid one it makes it 29 this makes no sense to me any one make sense of it?

By starting with the double six, a full set of dominoes are used by a person to lay a line of dominoes in one direction only until the supply is is finished or you cannot carry on. What will the number at the end of the last domino and why?  I know the answer: it is 6 but I don't know how to prove it (since I actually tried to lay dominoes in one direction). Can anyone help me? The second part of the question says that the same method is used but on both directions of the double six. The person discovers that he can use all the dominoes that he has available, but someone says that he had hid one before he started. Can the person identify immediately (without checking the hole set) which domino has been hidden?


I have no code for this question, but just the question: is there a way to get the physical address of any computer? Explanation: typing in prompt command "ipconfig /all" without being connected in a network, you have there only the physical address. I just want to grab that info. I saw it's easy to grab the mac address, but ins't viable. Reason: I want to limit a script to be run only in certain known machines. This is the only solution I can think of right now.

I need a cross platform method of determining the MAC address of a computer at run time.  For windows the 'wmi' module can be used and the only method under Linux I could find was to run ifconfig and run a regex across its output.  I don't like using a package that only works on one OS, and parsing the output of another program doesn't seem very elegant not to mention error prone.   Does anyone know a cross platform method (windows and linux) method to get the MAC address?    If not, does anyone know any more elegant methods then those I listed above?


How do I convert an MS Word 2007 file into a JPG file?  I need a method that will work off-line for Windows XP, preferably that does not require installing software.

Is there any way to convert a Word document to an image? I suppose you can print screen, but that is pretty painful.


I want to create a horizontal tree-like structure using braces, as in:    Please forgive my lack of creativity.  I tried using an equation, for example  \begin{equation*} \text{Animals} \left\{ \begin{aligned} & \text{Cats} & \\ & \text{Dogs} \end{aligned} \right. \end{equation*}   except this is difficult to read and I cannot get the third layer.  I suspect the forest package would work.

I apologize if this has already been covered in some other posts, but I couldn't find it anywhere and I'm not even sure if "brace diagram" is the correct name in English.  I have found some examples of probability trees, and some others that are close (like this: ), but while playing with them I couldn't get the correct output (The part of the first "text here" when out of boundaries into the brace).  What I'm trying to do is something like this with TikZ:    I know there are some ways to do this with mathmode, but I'm really interested in learning a little more about TikZ and how it works for diagrams like this.


My app is getting some errors whenever I click the signout button. I suspect that this causes by the authentication.signout(). This is the error: E/AndroidRuntime: FATAL EXCEPTION: main Process: com.demo.finalssuncrestbank, PID: 17982 java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.google.firebase.firestore.DocumentSnapshot.getString(java.lang.String)' on a null object reference     at com.demo.finalssuncrestbank.UserProfile$1.onEvent(UserProfile.java:52)     at com.demo.finalssuncrestbank.UserProfile$1.onEvent(UserProfile.java:49)     at com.google.firebase.firestore.DocumentReference.lambda$addSnapshotListenerInternal$2(DocumentReference.java:483)     at com.google.firebase.firestore.DocumentReference$$Lambda$3.onEvent(Unknown Source:6)     at com.google.firebase.firestore.core.AsyncEventListener.lambda$onEvent$0(AsyncEventListener.java:42)     at com.google.firebase.firestore.core.AsyncEventListener$$Lambda$1.run(Unknown Source:6)     at android.os.Handler.handleCallback(Handler.java:790)     at android.os.Handler.dispatchMessage(Handler.java:99)     at android.os.Looper.loop(Looper.java:169)     at android.app.ActivityThread.main(ActivityThread.java:6521)     at java.lang.reflect.Method.invoke(Native Method)     at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)  The code is this: DocumentReference documentReference = fStore.collection("Users").document(UserID);         documentReference.addSnapshotListener(this, new EventListener<DocumentSnapshot>() {             @Override             public void onEvent(@Nullable DocumentSnapshot value, @Nullable FirebaseFirestoreException error) {                 mName.setText("Name: " + value.getString("Name"));                 mPhone.setText("Phone: " + value.getString("Phone"));                 mEmail.setText("Email: \n \n" + value.getString("Email"));                 mBalance.setText(String.valueOf(value.getDouble("Balance")));              }         });     LogOut.setOnClickListener(new View.OnClickListener() {         @Override         public void onClick(View v) {             fAuth.signOut();             Intent intent = new Intent(getApplicationContext(), Login.class);             startActivity(intent);         }     });  I wanted to know what are the possible reasons why this keeps happening and what should I do?