What are reasons, that we have to add 2 versions of same domain to Google  Webmasters:  http and https ?    as they refer to same domain, we have extra headache to have 2 items instead of 1.   Why? Is there any workaround?

In researching the best practice for adding sites to the Search Console, I've often seen it suggested to add separate properties for different versions of the same website. Even in  it states:     "Similarly, if your site has http:// and https:// versions, you should   add each as a separate site."   I've seen the same suggested for www/non-www. So if a site is accessible at all the variations of http/s and www/non-www we should have four properties.  But what if the site is only accessible at one variant? i.e. https and www are forced via htaccess, so only  can ever be accessed - should we still add all the variants?   In essence, the problem is that I don't know why Google wants us to do this, so I can't work out if it'll be ok just to have one instance.


I have 2 BI object in different files, now I want to extend the first object with other ones.  1st Object  var BI = BI || {}; BI = {     firstInit: function () {         console.log('I am first init');     } }   Other file  2nd Object  BI = {    init: function () {      console.log('I am init');    } }   Now I want 2nd Object should contain the firstInit as well. Let me know I can explain further. I am using jQuery.

I need to be able to merge two (very simple) JavaScript objects at runtime.  For example I'd like to:  var obj1 = { food: 'pizza', car: 'ford' } var obj2 = { animal: 'dog' }  obj1.merge(obj2);  //obj1 now has three properties: food, car, and animal   Does anyone have a script for this or know of a built in way to do this?  I do not need recursion, and I do not need to merge functions, just methods on flat objects.


var employeesById = { "8110923": { "Name": "John Glanton", "Position": "Chief Executive", "Hire Date": "2008-01-15" }, "7734981": { "Name": "Samuel Chamberlain", "Position": "Sales", "Hire Date": "2012-05-01" }, "3400981": { "Name": "Louis Toadvine", "Position": "Customer Support", "Hire Date": "2011-08-24" }, "5517823": { "Name": "Ben Tobin", "Position": "Developer", "Hire Date": "2013-03-19" }, "4587234": { "Name": "David Brown", "Position": "Director of HR", "Hire Date": "2012-01-10" } }

Say I create an object thus:  var myObject =         {"ircEvent": "PRIVMSG", "method": "newURI", "regex": "^http://.*"};   What is the best way to retrieve a list of the property names? i.e. I would like to end up with some variable 'keys' such that:  keys == ["ircEvent", "method", "regex"]


I am trying to find the analytic solution of  $${u}''+\frac{1}{x}{u}'=-\delta e^{u}$$ given the homogeneous mixed boundary conditions  $${u'(0)}=0$$ $$u(1)=0$$  How would one attack such a problem? I have been given that the analytic solution is  $$u=ln\left ( \frac{8a/\delta }{(ax^2+1)^2} \right )$$  where $a$ solves $8a=\delta (a+1)^2$.  I am guessing the only way to solve it analytically is to introduce $x=e^{-y}$, but I don't see how would this workout all the way. The equation cannot be reduced to a 1st-order by a change of variable, nor is separable.  Any ideas?

I am trying to find the analytic solution of  $${u}''+\frac{1}{x}{u}'=-\delta e^{u}$$ given the homogeneous mixed boundary conditions  $${u'(0)}=0$$ $$u(1)=0$$  How would one attack such a problem? I have been given that the analytic solution is  $$u=ln\left ( \frac{8a/\delta }{(ax^2+1)^2} \right )$$  where $a$ solves $8a=\delta (a+1)^2$.    My approach (EDITED):  I was given a hint: use the relation $x=e^{-y}$. I proceeded with that and used the chain-rule as follows $$(u\circ y)'(x)=\frac{d}{dx}u(y(x))=u'(y(x))y'(x)=u'x=-u'e^{y}$$ $$(u\circ y)''(x)=\frac{d}{dx}[u'(y(x))y'(x)]=u''(y(x))[y'(x)]^2+u'(y(x))y''(x)=u''e^{2y}+u'e^{2y}$$ substituting these relations into the ODE yields $$e^{2y}u''=-\delta e^{u}$$ or in an alternative form $$u''=-\delta e^{-2y} e^{u}$$  which is separable (thanks for the help).


MWE : \documentclass[10pt, letter]{report}  \usepackage[margin=1.250in]{geometry} \usepackage[table]{xcolor}  \usepackage{fancyhdr}  \pagestyle{fancy} \rhead{} \fancyfoot[C]{Page \thepage} \renewcommand{\headrulewidth}{0pt}  \begin{document}  \chapter{Introduction} This chapter  xxxxx \clearpage  xxxx \clearpage  xxxx  \end{document}   Look how it is not Page 1.

I have a problem with the fancy package: I use the report documentclass and I have a chapter, a lot of text and then a new page starting with a section (or the next page has no chapter starting on that particular page).  The problem be, that what I defined for my header and footer is NOT on the chapter-page but only on the non-chapter page. How come? What did I miss?  Minimal example:  \documentclass[]{report}  \usepackage{lastpage} \usepackage{fancyhdr} % for use of \pageref{LastPage}  \fancypagestyle{IHA-fancy-style}{% \fancyhf{} %Clear header and footer \fancyhead[LE,RO]{\slshape \rightmark} \fancyhead[LO,RE]{\slshape \leftmark} \fancyfoot[C]{\thepage of \pageref{LastPage}} %Custom footer \renewcommand{\headrulewidth}{0.4pt} %Line at the header visible \renewcommand{\footrulewidth}{0.4pt}} %Line at the footer visible  \title{A short example}  \begin{document}  \maketitle \tableofcontents  \pagestyle{IHA-fancy-style} \chapter{A chapter} Look at the footer  \newpage \section{A section} Look at the footer  \end{document}   Take notice: No line on page 2 at the bottom - a line on page 3 at the bottom.  Any clues?


I just uploaded an image on Desktop site using smartphone (Android). Why don't you simplify everything to add image upload on mobile site?

With the release of iOS 6, the most commonly used mobile browser now supports standard generic image upload buttons. This is actually really handy.  I can take screenshots on my phone or iPad, and use them to answer questions about apps made to run on those devices (or ) to answer questions. Until the release of iOS 6 however, the only way to use these images in my answer was to either sync them over to my computer, and then answer from a desktop, or use a specialized app to upload the images, such as PicUp or DropBox, and then manually write out the markdown code.  After iOS 6, the Image Upload button works just fine, if I switch to viewing the full site from my iDevice, rather than the mobile view. I can upload images directly, and the markdown is handled for me. It's awesome, except for the fact that the non-mobile site is decidedly non-awesome on the small screen of my phone.  Which brings me to my feature request: Add the Image Upload button (and other markdown shortcuts, as deemed worthwhile) to the ask/answer editors on the mobile version of SE sites.


Mahlzeit community, i've a new question :D Does it makes any difference where i write the * when i wanna declarate a pointer? E.g. void loopsWithCStringsV2() {     const char*  str1 = "i love learning";     const char * str2 = "i love learning";     const char  *str3 = "i love learning";          std::cout << "str1: " << str1 << std::endl;     std::cout << "str2: " << str2 << std::endl;     std::cout << "str3: " << str3 << std::endl;      std::cout << "&str1: " << &str1 << std::endl;     std::cout << "&str2: " << &str2 << std::endl;     std::cout << "&str3: " << &str3 << std::endl;      std::cout << "*str1: " << *str1 << std::endl;     std::cout << "*str2: " << *str2 << std::endl;     std::cout << "*str3: " << *str3 << std::endl; }  will result in: str1: i love learning str2: i love learning str3: i love learning &str1: 006FFAA8 &str2: 006FFA9C &str3: 006FFA90 *str1: i *str2: i *str3: i  Enjoy your day :)

I've recently decided that I just have to finally learn C/C++, and there is one thing I do not really understand about pointers or more precisely, their definition.  How about these examples:   int* test; int *test; int * test; int* test,test2; int *test,test2; int * test,test2;   Now, to my understanding, the first three cases are all doing the same: Test is not an int, but a pointer to one.  The second set of examples is a bit more tricky. In case 4, both test and test2 will be pointers to an int, whereas in case 5, only test is a pointer, whereas test2 is a "real" int. What about case 6? Same as case 5?


Please just explain it in the simplest way. Thank you! Show also the answer you've come up with.

Let $u=(6,7), v=(-2, 3), w=(7,0)$. Find the center and the radius of the circumscribed circle of triangle $[u,v,w]$.  My approach would look like this:  (1) Determine the angles of the triangle $[u,v,w]$ via dot products.  (2) If we draw three lines from the the center $o$ of the circle to the three vertices, the triangle $[u,v,w]$ will be made of three equilateral triangles. We can then easily find from (1) all the nine angles of the three triangles.  (3) Determine the heights of the three inscribed triangles, which will be the same for all of the three, and which will be the radius $r$ of the inscribed circle.  (4) Then we can drop a perpendicular line from $o$ to, say, $[v,w]$ in order to find the coordinates of $o$.  But is there a much less tedious way to solve this problem? And do you think my approach is correct?


When I doubleclick an image file e.g a png, jpg, gif or similar, and Windows 8.1 should display it with its image viewer, it mostly takes an unreasonable long time for the photo to display. If I for instance instead open the file in paint.exe then the image is displayed instantaneously. It's been like this on 2 or more computer so I don't think that it's a bug in my computer but something with the default image viewer in Windows 8. Do you know anything about this problem? It actually takes longer time to open an image with a new computer running Windows 8 then with a 5 year old computer running windows 7. Why? I think my problem is the same as in this question:

I just installed Windows 8.1. Every time I try and open an image, the photo viewer metro app  fills the screen for about a second before the image is displayed.  Is there any way to make the app start up faster?


I recently bought a Lenovo Z51-70 which has 5yh Gen i7 and 8GB RAM with 4GB AMD Tropo X2 Graphics. With this configuration it should play almost every high end game but it only happens when I connect a charger. As soon as I disconnect it the Games start lagging. I've contacted Lenovo support regarding this and they've asked me to install some drivers which  didn't work. Finally I've decided to go it's service center this Saturday but just want to know if anyone else had this issue lately and what can I do to solve it.

Can anyone explain how Windows effectively limits the CPU?  Last time I tried some tricks to let my laptop not overheat, so I tried limiting the CPU to 70%.   As for my suprise it stopped my laptop from overheating - even when launching CPU intensive applications which caused my laptop to overheat and shut down, didn't overheat my laptop anymore!  I looked at task manager but the "CPU intensive" application still uses ~95% of CPU and the windows task manager shows a total of 100% CPU usage.  I have limited the CPU usage here ("plugged in" option was on 70% [both min and max] when testing the CPU intensive application):    How does Windows do this magic?   I see 100% CPU usage yet my CPU does not overheat. And I do not see any performance differences.  Does Windows limit the CPU speed? Like, if I have a 2.4 GHz processor, on 70% it will only have 1.68 GHz when limited? How is this possible (changing the CPU speed)? I thought you can only underclock when in BIOS?  If not, how does Windows accomplish this if not by changing the speed?    Side question: If it's about the speed, is there a way to set the CPU max state to 200% ?


I am looking for all .zip and .rar files in comp_tuts folder and I am intersted in showing their file sizes and sorting them from biggest to smallest.  I have tried  ls -R *.zip  ls: cannot access *.zip: No such file or directory   What??  I have tried this:  find / size +50M */comp_tuts/*.zip   For some reasong it's completely ignoring my path and starts at /usr/lib or whereever.  I have also tried  du -sh *.zip du: cannot access ‘*.zip’: No such file or directory

I have a web server where I have run out of space and it's causing issues with the  sites I am running on them.  I know that I have a lot of large .png files (the fact that it's  is a mistake in itself, but let's not get into that).  I would like to get the list of PNG or  files that are on the server and sort them by decreasing size. I know I can use ls -SlahR, but the sorting is on a per-folder basis.  I then came up with find . -name "*.png" | xargs -i -n1 ls -lah {} which is OK except that (a) it doesn't sort the lines and (b) it shows the file permissions and ownerships which I couldn't care less about.  So is there something better? Something that would produce [size] [path_to_file]?


Assuming that each team has an equal $\frac{1}{2}$ probability of winning each game, and the probability of winning each game is independent.  I solved this using a tree diagram, and got the answer of $\frac{11}{16}$, but I want to figure out a way of solving this without relying on a tree.   I tried diving this up to cases where the series ends in 2 games, 3 games and 4 games, but am having difficulty.  Any help would be greatly appreciated!

I know that the team has to win 3 of the 4 remaining games. So I thought that from the 4 remaining games, there are a total of $2^4 = 16$ total different outcomes.   Could someone point me towards the right direction to determine the probability of the team winning 3 of the 4 remaining games? Would it be 4C3/16 since the three wins can be chosen amongst the 4 games left?


Problem: Classify the non-abelian group(s) of order $18$.   I am currently working on the problem above. I think the answer can be $C_{18}$, $D_{18}$, $C_{3} \times C_{3} \times C_{2}$, $S_{3} \times C_{3}$. Can someone show me what the correct answer is? Thank you.

I am trying to classify groups of order 18. So far, I have shown that a group $G$ of order 18 is given by $G\cong C_9 \rtimes_{\varphi} C_2$ or $G\cong (C_3 \times C_3)\rtimes_{\varphi} C_2$.  If $G\cong C_9 \rtimes_{\varphi} C_2$, then $\mid \varphi(1) \mid$ divides $2$, so that $\varphi(1)$ is trivial or inverts a generator of $C_9$. I concluded that $G \cong C_{18}$ in the former case and $G \cong D_{18}$ in the latter case.  I am now considering the case $G\cong (C_3 \times C_3)\rtimes_{\varphi} C_2$, but I am stuck. I have found , but they do not do it the same way as me (finding the image of $\varphi(1)$ in $Aut(C_3 \times C_3)$).  Is there a way to do this using my method? My goal is to be able to do questions like this on my algebra qual without having to fiddle around. I was messing around with the fact that $Aut(C_3 \times C_3)\cong GL_2(C_3)$.


I will get right into the problem here. This is the method that I have so far:  public T[] getAllValues() {     Serializable[] result = new Serializable[sets.size()];     for (int i = 0; i < sets.size(); i++) {         result[i] = sets.get(i).getValue();     }        return (T[]) result; }   'T' is a parameterized type that extends Serializable. 'sets' is an ArrayList holding a type that stores both a String (key) and a T (value), so getValue() returns a T. In this method, I want to return all Ts in an array, so what I would actually like to do looks more like this:  public T[] getAllValues() {     T[] result = new T[sets.size()];     for (int i = 0; i < sets.size(); i++) {         result[i] = sets.get(i).getValue();     }     return result; }   So the Serializable array, that is casted to a T array was just an idea as a work-around, but does not work unfortunately. But at the same time, I cannot use the second version, because  new T[int];   is obviously not possible to construct when the type is parameterized. Why is that? And more importantly: How can I work around it?  Thank you in advance  EDIT: I solved the problem, this is what I came up with:  public T[] getAllValues(T[] typearray) {     for (int i = 0; (i < typearray.length) && (i < sets.size()); i++) {         typearray[i] = sets.get(i).getValue();     }     return typearray; }

Due to the implementation of Java generics, you can't have code like this:   public class GenSet<E> {     private E a[];      public GenSet() {         a = new E[INITIAL_ARRAY_LENGTH]; // error: generic array creation     } }   How can I implement this while maintaining type safety?  I saw a solution on the Java forums that goes like this:  import java.lang.reflect.Array;  class Stack<T> {     public Stack(Class<T> clazz, int capacity) {         array = (T[])Array.newInstance(clazz, capacity);     }      private final T[] array; }   But I really don't get what's going on.


What is the correct order of these four adjectives in the phrase "free weekly two-hour scientific meetings"? I'm not exactly sure where to put 'two-hour'.

I remember being taught that the correct order of adjectives in English was something along the lines of "Opinion-Size-Age-Color-Material-Purpose."  However, it's been a long time and I'm pretty sure I've forgotten a few categories (I think there were eight or nine). Can anyone fill them in?


$A= \begin{bmatrix}-1 & 1 & 1 &1\\ 1 & -1 & 1 &1\\ 1 & 1 & -1 &1\\ 1 & 1 & 1 &-1\\ \end{bmatrix}$ $A$  is a symmetric matrix.Find its eigenvalues ? I saw this question in my book. I know that it can be solved using the cofactor definition of determinant and its eigenvalues are $+2,-2$ However, this process is cumbersome . I wonder that whether there is any trick or shortcut for finding its eigenvalues .

This question aims to create an ""  of numerous questions that ask about determinants of specific matrices (I may have missed a few):              The general question of this type is  Let $A$ be a square matrix of rank$~1$, let $I$ the identity matrix of the same size, and $\lambda$ a scalar. What is the determinant of $A+\lambda I$?  A clearly very closely related question is  What is the characteristic polynomial of a matrix $A$ of rank$~1$?


My computer's OS and desktop environment are:  Ubuntu 20.04 (focal) 64 bit  Cinnamon Desktop 4.4.8   Here is a screenshot of my system (sorry, it's French, it's ok if you don't know french to see it):  The latest version of Cinnamon is 4.6.6, and I want to update to that version. My question is simple: How can I update to Cinnamon 4.6.6 without reinstalling Cinnamon? NOTE: This question does not anwser my question:

Why are packages in the official Ubuntu repositories older than the latest (upstream) versions from Debian Sid, PPAs, the authors, etc.?


Why the gamma matrices are taken 2 by 2 (Pauli matrices) in 3 dimensional Clifford Algebra. As in 4D Clifford Algebra the matrices are 4 by 4, in 3D Algebra why are they not 3 by 3 matrices? The question can be asked another way that should we use the representation according to the components of Dirac spinor?

While studying the Dirac equation, I came across this enigmatic passage on p. 551 in From Classical to Quantum Mechanics by G. Esposito, G. Marmo, G. Sudarshan regarding the $\gamma$ matrices:     $$\tag{16.1.2} (\gamma^0)^2 = I , (\gamma^j)^2 = -I \ (j=1,2,3) $$    $$\tag{16.1.3}  \gamma^0\gamma^j + \gamma^j \gamma^0 = 0 $$   $$\tag{16.1.4}  \gamma^j \gamma^k + \gamma^k \gamma^j = 0, \ j\neq k$$    In looking for solutions of these equations in terms of matrices, one finds that they must have as order a multiple of 4, and that there exists a solution of order 4.   Obviously the word order here means dimension. In my QM classes the lecturer referenced chapter 5 from Advanced Quantum Mechanics by F. Schwabl, especially as regards the dimension of Dirac $\gamma$ matrices. However there it is stated only that, since the number of positive and negative eigenvalues of $\alpha$ and $\beta^k$ must be equal, $n$ is even. Moreover, $n=2$ is not sufficient, so $n=4$ is the smallest possible dimension in which it is possible to realize the desired algebraic structure.  While I got that the smallest dimension is 4, I fail to find any argument to reject the possibility that $n=6$ could be a solution. I also checked  Phys.SE post, but I didn't find it helpful at all.  Can anyone help me?


I'm working with Entity Framework 6 (Code First) and I have for example something like this:      public class User     {         public int Id { get; set; }          [Required]         public string Name { get; set; }          [Required]         [EmailAddress]         [MaxLength(60)]         [Index(IsUnique = true)]         public string Email { get; set; }     }    As you can see I have a unique field called "Email". Let´s create a User:  {     "Name" : "Mario",     "Email" : "test@test.com" }   The Id is an auto-increment field. Now I create a new user with the same E-mail (this shows an exception because the "Email" field is defined as Unique):  {     "Name" : "Juan",     "Email" : "test@test.com" }   The problem is that if I want to insert now a new user, lets say:  {     "Name" : "Raúl",     "Email" : "othermail@test.com" }   This is correctly inserted into the database BUT the Id is 3, not 2. Why the exceptions are increasing the Id field? How can I stop this?

I have a .net transaction with a SQL insert to a SQL Server 2005 database. The table has an identity primary key.   When an error occurs within the transaction, Rollback() is called. The row inserts are rolled back correctly, however the next time I insert data to the table, the identity is incremented as if the rollback never occurred. So essentially there are gaps in the identity sequence. Is there any way to have the Rollback() method reclaim the missing identity?   Am I not approaching this the right way?


I can see it is right by using some knowledge of the Gamma function. We have  $$ \Gamma(\alpha ) = \int_0^\infty e^{-x} x^{\alpha - 1 } dx  . $$  Differentiating with respect to $\alpha$, we get   $$ \frac{d\Gamma}{d \alpha} = \int_0^\infty e^{-x} x^{\alpha - 1 }\ln x dx  .  $$  Setting $\alpha = 1 $, we get   $$ \int_0^\infty e^{-x} \ln x dx = \frac{d\Gamma}{d\alpha }\bigg|_{\alpha = 1 }= - \gamma.   $$  But the knowledge $d \Gamma/d \alpha |_{\alpha = 1}=-\gamma$ is a mystery to me.   Can anyone find an elementary proof?

I'm trying to show that  $$\lim_{n \to \infty} \left[\sum_{k=1}^{n} \frac{1}{k} - \log n\right] = -\int_0^{\infty} e^{-t} \log t \,dt.$$  In other words, I'm trying to show that the above definitions of the Euler-Mascheroni constant $\gamma$ are equivalent.  In another post here (which I can't seem to find now) someone noted that  $$\int_0^{\infty} e^{-t} \log t \,dt = \left.\frac{d}{dx} \int_0^{\infty} t^x e^{-t} \,dt \right|_{x=0} = \Gamma'(1) = \psi(1),$$  where $\psi$ is the digamma function.  This may be a good place to start on the right-hand side.  For the left-hand side I was tempted to represent the terms with integrals.  It is not hard to show that  $$\sum_{k=1}^{n} \frac{1}{k} = \int_0^1 \frac{1-x^n}{1-x} \,dx,$$  but I'm not sure this gets us anywhere.  Any help would be greatly appreciated.


A lot of website redirect URL to let you the last version of a binary.  For example:  wget https://download.mozilla.org/?product=firefox-aurora-latest-l10n&os=linux64&lang=fr   Will let you download the latest Firefox Developper Edition. Output file will be "firefox-50.0a2.fr.linux-x86_64.tar.bz2".  But  wget https://download.mozilla.org/?product=firefox-aurora-latest-l10n&os=linux64&lang=fr -P $HOME   will leads to an output filename like: "?product=firefox-aurora-latest-l10n&os=linux64&lang=fr".  So I will use:  wget https://download.mozilla.org/?product=firefox-aurora-latest-l10n&os=linux64&lang=fr -P $HOME --trust-server-names   to redirect to the good file name: "firefox-50.0a2.fr.linux-x86_64.tar.bz2".  But on the next update the filename will be different.  I'm currently writting a script so I need to download the file with the good filename.  My question is:  How can I get the downloaded filename in a $var in order to use it next for example to extract the archive?  Note : I can't use basename as the name is not in the URL.  Note 2 : I use --trust-server-names because --content-disposition is experimental and not reliable.

I am creating a script, which should download latest version of an application from repository and deploy the app.  The main issue: there are several repositories and I need to check, which of them has most recent version.  E.g.  http://repo1/xyz/LATEST -> (redirects to) -> http://repo1/xyz/app-1.0.0.0.zip http://repo2/xyz/LATEST -> (redirects to) -> http://repo1/xyz/app-1.1.0.0.zip   So I need to iterate over available repositories and get only a filename - no need to download obsolette versions of software.


Note: The related question is solved by use of a deprecated module and is not consistent across OS. The answer to current question uses newer modules and hence is being posted here.  I have a module that in turn uses the  CPAN module for recursively copying files from  to .   The problem is - I need to recursively copy only the files of specific file type to the destination. Is there any way to filter the source by extension?   As an alternative - is there a way to copy all files except the hidden files? My main problem being the .git folder also gets copied - which is not desired.  Platform: MacOS  Alternatives explored:   1) File::Copy::Recursive module :- seems to provide only recursive copy of files or directories. Does not seem to help with either hidden files or exclude filter  2) Using rsync -avz --exclude=".*" :- unable to combine this with recursive copy functionality.  3) Homegrown solution similar to  :- Might be the last resort - but does not seem portable unless tweaked and tested across different platforms. Will be falling back to this unless a module already exists.  4)  :- Seems plausible - will be running a quick implementation using this.  Implemented Solution:  I used the recursive module and the Path::Class::Dir   dir($sourceDir)->recurse(callback => sub {      my $file = shift;       return if($file eq '.' || $file eq '..');       return if -d $file;       if (<custom filter>)      {          my $path = file($file)->relative($sourceDir);          fcopy("$sourceDir/$path", "$destinationDir/$path") or die "Could not perform fcopy: $!";      }  });   Without the relative path - the destination folder structure does not seem to be the same as the source folder structure.

How do I copy a directory including sub directories excluding files or directories that match a certain regex on a Windows system?


On my question asked around 2 years ago :     To the right of the question title it said that the question was asked a year ago. Why is that?

I asked  yesterday, approximately 18 hours ago ("2011-12-13 20:24:03Z" according to the hover text), and it's still being displayed as "today".  I assume the "Z" in the timestamp refers to Zulu time, so I , and the date (2011-12-14) differs from the timestamp on the question.  I don't pretend to understand all of the complexities when converting time zones, but I thought it was strange enough to report. If it matters at all, I'm in US-Eastern.


I’m a South African travelling from the USA to South Africa via London. Will I need a visa or something even if I don’t go out of the airport?

Is there a website or some other way to find out if I need a transit visa for a short stop in the UK on my way somewhere else? Ideally this should give me the answer for all nationalities, and take into account any other visas I may have.


Let $a > 0$. Show that the sequence defined by $$ x_0 = 1, \qquad x_{n+1} = a^{x_n} $$ converges for $a \leq e^{1/e}$.  Any help is appreciated, I don't even know where to start with this.  Edit to add clarifications:  The case $1 \leq a \leq e^{1/e}$ is solved below in the comments and answers. It is also easy to show that the sequence does not converge for $a > e^{1/e}$ (not part of the question but still worth mentioning).  The interesting case is the remaining one $0 < a < 1$. Here, I found that $x_{n-1} < x_n \Rightarrow x_n > x_{n+1}$ so that the sequence seems to be oscillating. Since $x_0 > x_1$, this implies that the subsequence $\{x_{2n}\}$ is decreasing while the subsequence $\{x_{2n+1}\}$ is increasing, and both converge since they are bounded. This is illustrated by the plot below of the first few terms of the sequence when $a = 0.1$.   It remains to show that both subsequences have the same limit, which is where I have trouble.

I got this problem from my teacher as a optional challenge. I am open about this being a given problem, however it is not homework. The problem is stated as follows. Assume we have an infinite tetration as follows $$x^{x^{x^{.^{.^.}}}} \, = \, a$$ With a given $a$ find $x$. The next part of the problem was to discuss the convergence radius of a. If a is too big or too small the tetration does not converge. Below is my humble stab at the problem.  My friend said you would have to treat the tetration as a infinite series, and therefore could not perform algebraic manipulations on it before it is know whether it converges or diverges. However my attempt is to first do some algebraic steps, then discuss the convergence radius. I) Initial discussion At the start it is obvious that the tetration converges when $a=1$ (just set $x=1$) Now after some computer hardwork it seems that the tetration fails to converge when a is roughly larger than 3. II) Algebraic manipulation $$ x^{x^{x^{.^{.^.}}}} \, = \, a$$ This is the same as $$ x^a \, = \, a$$ $$ \log_a(x^a) \, = \, \log_a(a)$$ $$ \log_a(x) \, = \, \frac{1}{a}$$ $$ x \, = \, a^{\frac{1}{a}}$$ Now, if we let $a=2$ then $x = \sqrt{2}$. After some more computational work, this seems to be correct, which makes me believe this formula is correct. III) Discsussion about convergence By looking at the derivative of $ \displaystyle \large a^{\frac{1}{a}} $ we see that the maxima occurs when $a=e$, which also seems to correspond to the inital computational work. Now I think, that the minima of $\displaystyle \large a^{1/a}$ is zero by looking at its graph, studying its derivative and the endpoints. So that my "guess" or work shows that it converges when $$ a \in [0 \, , \,  1/e] $$ VI) My questions Can my algebraic manipulations be justified? They seem rather sketchy taking the a`th logarithm and so on . (Although they seem to "magically" give out the right answer) By looking at Wikipedia it seems that the tetration converge when $$ a \in \left[ 1/e \, , \, e \right] $$ This is almost what I have, why is my lower bound wrong? How can  I find the correct lower bound?


In my Ubuntu the address is shown as this:    How to configure it to show the editable textbox in address bar like this?    The pic is from here:

I have this path I want to navigate to in the UI. /usr/local/sbin  How can I do that with a couple clicks in the UI?


Why do things even move? I mean based on Newton 3rd law no matter how much force you exert on an object, it will always exert an equal and opposite force back to you. So why do things move?

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?


The sink is pretty close to the toilet...about 2 feet away. I've noticed that often times when I turn on the faucet (either hot or cold), I smell a sewer kind of smell.  What could be causing it?  I thought traps were suppose to prevent this exact thing.

It smells like really musty water, but the water itself does not smell or taste bad at all. Only happens when I run the water, so it doesn't make the room smell, just when you fill something up or wash your hands.   I tried drain-o and it didn't do anything and there's GREAT flow so it's not clogged at all anyway.   Only thing that has worked (temporarily) is pouring pretty much everything I could think of into it. Lemon juice, draino, bleach, etc.


I graduated college several years ago with a degree in English, and have been working in various creative positions in marketing departments since then. My current job is a kind of catch-all web content position--on a weekly basis I do everything from writing copy to making graphics to writing HTML and CSS for web pages, and design tasks have turned out to be my favorite work. Recently, my boss asked for navigational icons for the site, so I taught myself to use Illustrator and made a set of icons of which I am very proud. I am excited by all the design-related skills I've been picking up on the job, and I'd love to pursue a more focused graphic design career going forward.  My question is this: do I need a degree in graphic design to be considered for positions in this field? I feel confident in my ability to put together a portfolio and communicate the value of my experience to employers, but I'm worried that hiring managers will discard my applications without looking when they see that I don't have any kind of art degree or education. At the same time, I would much rather be working and learning on the job than accumulating student debt at this point in my life. If any of you have experience or suggestions for what direction I should pursue, I would appreciate the wisdom!

Is it required for people to go to design schools to become a Graphic Designer? I've heard many cases where they have started from scratch without previous education in design and are doing fine as freelancers/working in studios.  Would it be better to go to a design school to become a Graphic Designer? How much leverage would it give you if you went to one?


What are the filaments inside a bulbs such as:    What is the circuit?    Are there capacitors or resistors involved?  (LEDs normally drop 0.7V, not 230V.  Typically, they are powered from DC, not AC.  It would be very inefficient to drop the remaining 229.3V through a resistor, and a heat sink would be required, which I do not observe on these bulbs.)   mentions the presence of a heat sink, which these bulbs do not have.  These bulbs also seem to have no space for electronic components.

Filament LED bulbs use very narrow strips containing the LED, which look similar to filaments of an old incandescent bulb:  They look like a normal bulb with large "old-style" coal filaments, and are of about the same size and shape as the common standart E27 socket bulb.    There are two basic variants of these bulbs:     One "plain" as described, looking impressively similar to a classic bulb The other has a white coating on the glass, about 15mm wide next to the metal socket.   How are these filaments build? I could imagine the it's "pretty normal" LEDs, but lots of them, directly bonded to something? (There are references to COB)  How does the heat management work? Ii have seen speculations about filling the bulb with either helium or "some patented organic gas" - could that be enough for cooling?  How does the driver - which seems to be very small - work?  In the variant with white coating - hiding some components, I assume - is already not that much space, and in the plain variant, there seems to be almost no space for something nontrivial.  Below you see some bulbs of the white coating variant, switched on:   (Images with the permission of this )    Note how the LED filament bulbs are not so much similar to the tungsten filament bulbs recently being phased out - they are more resembling the long outdated carbon filament bulbs:


Say I have \chapter{Test Chapter} in my document, and I want to insert the title of the chapter into some code or into the text further down the document, what is the command for inserting the previous chaptertitle? I have tried \thechapter but it only inserts the number of the chapter.  The command \thechapter is also used somewhere in my preamble, so I don't want to redefine that command, lest it'll mess up something else.  As stated, I use the memoir class.

In my document I am referencing a section, e.g.  \section{My Section}\label{test} Also see section\ref{test}   This gives me, e.g.     Also see section 1   but what I want is:     Also see section My Section   How can I do that?  [Edit: comment moved to question body]  Of course it makes more sense to have something like "chapter 1 My Section", therefore mentioning chapter number and title. Anyways, this is just an example and you can easily combine both.


Let us consider a set $A = \{1, 2, 3, 4, 5\}$ and an element say $1$.  Can we say that  $1$ is subset of set $A$.  If not, please explain.

This is a total noob question.  I am reading , and I'm having difficulty to understand something which seems to be trivial.  In the first chapter he writes:     If $x$ belongs to $A$ ($x$ is an element of $A$, $x$ is contained in $A$), we shall write      $x\in A$   I understand this.  Then, he write:     If $A$ and $B$ are sets and if every element of $A$ is an element of $B$, we say that $A$ is a subset of $B$, or $B$ includes $A$, and we write:      $A \subset B$   I understand this too.  Then he says:     The working of the definition implies that each set must be considered to be included in itself ($A \subset A$); this fact is described by saying that set inclusion is reflexive.   I understand this too.  But then:     Observe that belonging ($\in$) and inclusion ($\subset$) are conceptually very different things indeed. One important difference has already manifested itself above: inclusion is always reflexive, whereas it is not at all clear that belonging is ever reflexive. That is: $A \subset A$ is always true;  is $A\in A$ ever true? It is certainly not true of any reasonable set that anyone has ever seen.   And this is where I don't think I understand anything.  There is not more elaboration on this point in the text.  I tried to skip this but it seems it is quite fundamental for understanding what follows in the book.  Could someone explain what is meant here?


What is the rule on the use of commas in a series?   Is it medical, dental, and behavioural or medical, dental and behavioural?

According to the Wikipedia page for the , "Use of the comma is consistent with conventional practice" and "Use of the comma is inconsistent with conventional practice." Did the Oxford Comma come before its omission, or was the Oxford Comma traditionally omitted?  It makes logical sense that every item in a list would be separated in the same way: by a comma. If the Oxford Comma is conventionally correct, when and why did people begin to omit it?


Getting NullPointerException, c1 is initialized in main method and is later accessed in class2, but i am getting NullPointerException  public class Test {     static Class1 c1;     public static void main(String[] args)      {         c1 = new Class1();    //c1 is initialized, still null pointer exception     }   }  public class Class1  {     int a,b;     Class1()     {         class1();     }     void class1()     {         a = 5;         b = 10;         Class2 class2 = new Class2();     } }  public class Class2  {     Class2()     {         Class1 c = Test.c1;         //c1 is null here         System.out.println(c.a);    //NullPointerException for Test.c1         System.out.println(c.b);     } }

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?


Tried running Docker Toolbox on my Windows 10 Home 64-bit machine.       also, Hyper-V is already enabled!      But when running the Docker Quickstart Terminal, it always shows "This computer doesn't have VT-X/AMD-v enabled. Enabling it in the BIOS is mandatory"!

I'm using windows home edition, I have the latest update installed 1909.  I want to install docker for windows 10 home edition. It keeps saying  Docker Desktop requires Windows 10 Pro/Enterprise (15063+) or Windows 10 Home (19018+).  Should I join Windows insider? How long should I wait for that update to be released if I don't want to join windows insider?


I am beginning to learn group theory (specifically finite groups) and I’m wondering which textbooks can help me.  So any suggestions for introductory texts?

Which textbook is good for introductory group theory?


The sun is a star, meaning it's a ball of gas undergoing nuclear fusion in its core. The sun, like any other star, experiences line-driven stellar winds due to the transport of ions from its interior which, as I understand it, are amplified by the magnetic field of the sun (since the magnetic fields provide a longer lever arm to carry away the ions that compose winds).      Does the sun have an overall nonzero net electric charge?   In such a dynamic system, I would expect that the sun would have a nonzero net electric charge since the winds are carrying away charged particles so there is a net out-going of charge.      If the sun does have a net charge, are there processes that work to   return its net charge to zero?   Or am I simply wrong in thinking that the particles that compose the wind are charged themselves? Are they themselves neutral particles (afterall, they are atoms)? If so, are there other reasons why the sun would have a net charge?  I've read  post, but found the only answer unsatisfying since it relies on the idea that electrons are "easier" to transport via stellar winds than protons, but we're talking about heavy nuclei (i.e. carbon, nitrogen, oxygen) that have more momentum than electrons for a given wind velocity.

How electrically neutral do stars remain through their lifetime?  As an example, I could imagine processes such as coronal mass ejections leaving the Sun in a slightly charged state.  Are there such processes that will leave a star with overall charge?


text = "I have usd **12** only." var amount = text.match(\(?:USD|usd)\s+.?  \d+\.?[0-9]{1,2}\);    it returns   usd *12   I'm trying to grab the number only out of this return?  Is it possible to use "amount" again like this:  amount.match(\\d+\.?[0-9]{1,2}\);

I want to match a portion of a string using a  and then access that parenthesized substring:  var myString = "something format_abc"; // I want "abc"  var arr = /(?:^|\s)format_(.*?)(?:\s|$)/.exec(myString);  console.log(arr);     // Prints: [" format_abc", "abc"] .. so far so good. console.log(arr[1]);  // Prints: undefined  (???) console.log(arr[0]);  // Prints: format_undefined (!!!)   What am I doing wrong?    I've discovered that there was nothing wrong with the regular expression code above: the actual string which I was testing against was this:  "date format_%A"   Reporting that "%A" is undefined seems a very strange behaviour, but it is not directly related to this question, so I've opened a new one, .    The issue was that console.log takes its parameters like a printf statement, and since the string I was logging ("%A") had a special value, it was trying to find the value of the next parameter.


I have a problem when I try to insert videos into a beamer presentation. I am currently using the package media9 to load the video and my .tex file looks like the following:  \documentclass[utf8, 10pt, usenames,dvipsnames]{beamer}  \usepackage[english]{babel} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amssymb} \usepackage{amsthm} \usepackage{anysize} \usepackage{dsfont} \usepackage{graphicx} \usepackage{enumerate} \usepackage{xcolor} \usepackage{booktabs} \usepackage{hyperref} \usepackage[bigfiles]{media9}  \mode<presentation>{\usetheme{Madrid}}  \title{Test} \author{John Doe}  \begin{document} \frame{\titlepage}   \begin{frame}  \centering \includemedia[width=0.4\linewidth, height=0.3\linewidth]{}{mmc7.mp4}   \end{frame}  \end{document}   I am using Overleaf () and I'm opening the document using Preview in OSX. I have also tried using TeXMaker + MikTek in Windows and opening the file using Adobe Reader and I still got the same problem.  Something that looks like a video box shows in the corresponding slide but it can't be played. I have also tried using the package multimedia instead of media9 and I still get the same problem.  What is wrong with my code? How could I fix it?

I have embed an mp4 video in the PDF file as given below:  \documentclass{beamer} \usetheme{Singapore} \usepackage{media9} \usepackage{hyperref} \begin{document}  \begin{frame}\frametitle{Title}  \includemedia[ width=\paperwidth,height=0.7\linewidth, activate=pageopen, flashvars={aaa.mp4 &autoPlay=true} ]{}{C:/Users/name/Desktop/aaa.mp4}  \end{frame}  \end{document}    There is no compile time error in the code but after running it this massage comes along a  blank pd f file....  "To view the Flash @R Technology content in this pd f file, please install the required version of Flash Player"  I would like to add here that I already have installed the latest version of Flash Player(Adobe Flash Player 12 ActiveX). So,Can anyone tell what version is required to be installed to obtain Video in pd f file.


When trying to redirect an URL in apache from:  www.example.com   to   example.com   it redirects to   example.com//   This is a one page webserver, Fixed IP goes directly to the page.  Editing directly on httpd.conf  Any idea of why is this happening?  RewriteEngine On RewriteCond %{HTTP_HOST}  ^www.example.com [nocase] RewriteRule ^(.*)         http://example.com/$1 [last,redirect=301]

This is a  about Apache's mod_rewrite.   Changing a request URL or redirecting users to a different URL than the one they originally requested is done using mod_rewrite. This includes such things as:   Changing HTTP to HTTPS (or the other way around) Changing a request to a page which no longer exist to a new replacement. Modifying a URL format (such as ?id=3433 to /id/3433 ) Presenting a different page based on the browser, based on the referrer, based on anything possible under the moon and sun. Anything you want to mess around with URL   Everything You Ever Wanted to Know about Mod_Rewrite Rules but Were Afraid to Ask!  How can I become an expert at writing mod_rewrite rules?   What is the fundamental format and structure of mod_rewrite rules? What form/flavor of regular expressions do I need to have a solid grasp of? What are the most common mistakes/pitfalls when writing rewrite rules? What is a good method for testing and verifying mod_rewrite rules? Are there SEO or performance implications of mod_rewrite rules I should be aware of? Are there common situations where mod_rewrite might seem like the right tool for the job but isn't? What are some common examples?   A place to test your rules  The  web site is a great place to play around with your rules and test them. It even shows the debug output so you can see what matched and what did not.


I'm trying to download something, and it's stuck on "waiting for apt-get to exit". Also, when I'm trying to use the terminal it says "unable to lock the administration directory" after I type in a command.

I get this error when trying to use apt-get:  E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/) is another process using it?     How can I fix this?


I have made an svm.LinearSVC model to classify images. Firstly, the features of the images are extracted by SIFT and then based on them the LinearSVC is trained. I have the following Python snippet: from sklearn import svm  model = svm.LinearSVC(C=2, max_iter=10000)  model(x_train, y_train.ravel())  y_pred = model(x_test)  print(metrics.accuracy_score(y_test, y_pred))   x_train shape is  (3700, 256) and x_test shape is  (1300, 256) I have received the following accuracy results with the different values of C: C = 2.0    => accuracy = 72.3% C = 10.0   => accuracy = 82.9% C = 100.0  => accuracy = 90.2% C = 1000.0 => accuracy = 91.1% C = 1500.0 => accuracy = 91.2% Based on "Kent Munthe Caspersen" answer on , in an SVM model, we look for a hyperplane with the largest minimum margin, and a hyperplane that correctly separates as many instances as possible. Also I think C, as the regularisation parameter, prevents overfitting. So does the model explained above, suffers from overfitting and if so, then how do I find the appropriate value of C? Thanks

I am currently using an SVM with a linear kernel to classify my data.  There is no error on the training set.  I tried several values for the parameter $C$ ($10^{-5}, \dots, 10^2$).  This did not change the error on the test set.  Now I wonder: is this an error caused by the ruby bindings for libsvm I am using () or is this theoretically explainable?  Should the parameter $C$ always change the performance of the classifier?


Sorry folks but I'm starting to feel stupid. Anyway I have the following problem. I am trying to access a MySQL database from PHP by running the following command.     $stmt = $this->conn->prepare("SELECT * FROM `pricelist` WHERE $name = :string"); // how to handle $name??     $stmt->bindParam(':string', $string, PDO::PARAM_STR);  Unfortunately I don't know what to put there because it's not passed as a string since it's my column name. am unfortunately still new to PHP and do not quite understand it, thank you :D

Why can't I pass the table name to a prepared PDO statement?  $stmt = $dbh->prepare('SELECT * FROM :table WHERE 1'); if ($stmt->execute(array(':table' => 'users'))) {     var_dump($stmt->fetchAll()); }   Is there another safe way to insert a table name into a SQL query? With safe, I mean that I don't want to do  $sql = "SELECT * FROM $table WHERE 1"


I'm reviewing Stack Overflow on my 5.5" Android phone. (yes I'm adding this information because that's how I spot this bug)  I just came across a bad post in FP and was about to vote it down. Because I'm using my phone in portrait mode, the UI is rather small and I accidentally tapped the vote number, which is the action for fetching vote count (show V+ and V- separately). It then shows a red box saying "Vote count on deleted post is not available". I immediately realized it's an audit, and gave it a random flag.  The result doesn't matter because I had already decided to vote it down, but isn't this setting too obvious? I can always click on fetch vote count to determine if it's an audit.

Assume you're performing a review of either a First post or Late answer (on any SE site where audit reviews are enabled). If you do have the  privilege on that site, you can also "view the vote counts" for the post you're reviewing.  If the post is NOT an audit review, you'll see the vote counts which will look similar to this image (taken from the above link):    If the post is an audit review, then either of the following will happen:   for a high quality post, as in  I completed today, you'll see the actual vote counts, which are typically lots of upvotes, and hardly any (quite often none) downvotes. for a low quality post, you will NOT see the actual vote counts, but instead you'll get a (red) popup message with "This post has been deleted.".   So think about this ... if during any First Posts or Late Answers review, all such privileged user does is to view the vote counts (without even looking at the title of the post, or the actual post content), any review audit is revealed by doing so.  Unless I am missing something, I doubt this is part of the intended design of "review audits". And therefore it seems to me that a possible remedy could be that in the First Posts and Late Answers review queues, the "view the vote counts" facility should be disabled for any privileged users. And even though another remedy could be to fail the audit if a user attempts to check the vote counts, I'd prefer to just disable this facility during reviews.  Note: some reasons why I think this question is different from  '':   that question doesn't say anything about high quality posts ... for which a similar issue exists. it only mentions the First Posts queue, while for Late Answers as well as Triage on Stack Overflow the same issue exists, and potentially the same is true for the other review queues. it is about Stack Overflow, while my question is about "any SE site where audit reviews are enabled".   I haven't had an opportunity yet to double check if a similar scenario applies to any of the other review queues (Low Quality Posts, etc), because I don't have enough rep to access those queues yet on sites with audits, and on the sites I do, review audits are disabled. Though I think I can already predict the results of such similar scenarios also (i.e.: same issue).


I have used the following code to insert into my table but when executed, it says 0 rows effected. insert ALL  INTO CUSTOMER (CustomerID, FirstName, Surname, Address, ContactNumber, Email)  VALUES ('11011', 'Jeffery', 'Smith', '18 Water Rd', '0877277521', 'jef@isat.com') INTO CUSTOMER (CustomerID, FirstName, Surname, Address, ContactNumber, Email)  VALUES ('11012', 'Alex', 'Hendricks', '22 Water Rd', '0863257857', 'ah@mcom.co.za') INTO CUSTOMER (CustomerID, FirstName, Surname, Address, ContactNumber, Email)  VALUES ('11013', 'Johnson', 'Clark', '101 Summer Lane', '0834567891', 'jclark@mcom.co.za') INTO CUSTOMER (CustomerID, FirstName, Surname, Address, ContactNumber, Email)  VALUES ('11014', 'Henry', 'Jones', '55 Mountain Way', '0612547895', 'hj@isat.co.za') INTO CUSTOMER (CustomerID, FirstName, Surname, Address, ContactNumber, Email)  VALUES ('11015', 'Andre', 'Williams', '5 Main Rd', '0827238521', 'aw@mcal.co.za') select * from CUSTOMER;


I am removing extra space using trim method which is working fine in all browser except IE8.
   test
 pick test

How do I trim a string in JavaScript? That is, how do I remove all whitespace from the beginning and the end of the string in JavaScript?


Is it possible to use apt-cache (or more generally APT) to search for packages that include a specific program, like setcap or ifconfig? I know i can use dpkg -S <prog> to identify installed packages that include <prog>, but is it possible to retrieve such information from remote package repositories?

On Debian systems (and derivatives):  $ dpkg --search /bin/ls coreutils: /bin/ls   That is, the file /bin/ls belongs to the Debian package named coreutils.  But this only works if the package is installed. What if it's not?


My first post, and i am a little lost on how to get my question across to get to the solution i desire. so here goes nothing...  I have a content management site i am currently working on.  This uses PHP to create pages and store the page contents in MySQL to be called back on the user facing site.  A couple of things have come up that i require to use PHP to do within the page contents.  Is there a way i can use PHP to find the page content i have in the SQL database, and execute more PHP that is in that fetched page contents?  or this just something i wish i could do and require another way round it?  My main thing is to create a "contact us" page that redirects to itself after sending the enquiry.  the html content for the contact us form is kept in the database, and is found using page id's in GET requests.  i have tried to just adding the extra php code to the sql page content, however it just doesnt display anything inside the  tags.

I'm trying to write a page that calls PHP that's stored in a MySQL database. The page that is stored in the MySQL database contains PHP (and HTML) code which I want to run on page load.  How could I go about doing this?


I'm reading some footnotes in my textbook, and having a hard time following this logic:  " At large b, we have $1-x/b = e^{-x/b}+O(b^{-b^2})$ implying that $(1-x/b)^{-b} = (e^{-x/b})^{-b}(1+e^{x/b}O(b^{-2}))^{-b}= e^{x}(1+e^{x/b}O(b^{-2}))^{-b}$ "  I understand this, easy to follow. Next we're told:  "Note that $1+e^{x/b}O(b^{-2})$ has the form $e^{y/b^2} + O(b^{-3})$ for some y, and hence $(1+e^{x/b}O(b^{-2}))^{-b}$ = $e^{-y/b}(1 + e^{-y/b^2}O(b^{-3}))^{-b}$ "  This step confuses me, what does it mean for something to "have a form" ?   Finally:  "iterating this we see that all the factors associated with these higher terms become 1 as b is sent to infinity, leaving the result $e^{x}$"  I think this is an interesting trick, and I'd like to understand it. It also was described as a standard result, but could not find it online. Any help is appreciated.

I know what solution is $e^a$ but I don't know how to calculate this limit:  $$\lim \limits_{n \to \infty}\left(1 + \frac{a}{n}\right)^n=e^a$$  Can someone explain the steps to me?


I want to start an iPhone app for an E-learning recommendation system which does the following:   Let the user register or log in the app. After logging in the app ask the user questions.   My question:  What is the best way to manage users to be able to log/register and save/retrieve user questions and answers?

I am writing an iPhone application, and need to save the state of my application (5K or so).  My main worry is data persisting across upgrades. Some of the applications I use clearly got this wrong, and I would prefer not to!


Given example class  class test { public: test(); ~test(); void someMethod(); void someOtherMethod();  private: int var; };   is sizeof(test) == sizeof(int), or we cannot make such assumption? Is it platform/compiler dependent?  EDIT:  Motivation for that is to read/write class through stream. Class indeed contains a single integer, with some convenience access methods - highest order byte of integer is reserved for flags, 3 lower bytes represent integer 24 bit number. Given this, idea is to write arrays of such class variables, and read them as plain int if needed. The question quoted as having possible answer doesn't address that aspect - is more about padding with multiple elements.

Why does the sizeof operator return a size larger for a structure than the total sizes of the structure's members?


How do I punctuate this?  She said, "How many are there?", "What is his name?", and "When can she get there?"

The American convention in quotations is (typically) to place punctuation inside quoted text. But I always run into situations where the punctuation of the quote interferes with the punctuation of the sentence. How would you punctuate this (American, non technical)?     When my friends ask, "What do you want for your birthday?", I never know how to respond.   It seems odd to place the last comma outside the quote simply because of the question mark. Is that the preferred (i.e. most often accepted) standard?


Yesterday I was working on a very important Microsoft Word (2013) document, when it suddenly crashed. Upon trying to reopen the file Word said: “The file is corrupted and cannot be opened”. I have tried all of the other methods of restoring it, such as opening it in a different program, or opening it and choosing "open and repair" in MS Word.

I created a password-protected Word 2010 document at work, brought it home using a flash drive, tried opening it using Word 2007, and it won't open. It doesn't even present me with a password-entry box. Word runs, but flat out refuses to open the doc. I have the password, but what bloody good is it when I'm not presented with the password input dialogue?  OpenOffice Writer yields no joy, and WordPad tells me the document is either 'Corrupt or protected under Rights Management.' NotePad opens it quite willingly, and I see frequent references to 'encryption' that look coherent, with large blocks of text that did look so.  WinZip says the file is 'not a valid archive', which an unencrypted Word 2010 file should be a valid archive.  Is there anything I can do to recover this file?


When a Q&A site passed from commit phase to beta phase, are the questions that have been marked as good example be automatically created?

I've read some great on-topic example questions on Area 51.  My questions:   Should a proposed site's "Great On-Topic Example" questions be automatically included in its beta? Will a proposed site's "Great On-Topic Example" questions be automatically included in its beta?


Have you guys ever felt that it is quiet at night than in comparison to day?I'm known with the fact that reduction in people's activity makes night quiet...but is there something else which in a way amplifies the sound wave in night?

This is definitely not an illusion, as many people have the same experience. I have usually lived in places miles away from train stations, which makes it unlikely to hear any train horns during the day. However at night, occasionally train horns can be heard. I hope if any one can explain the physics of this effect, like possibly sound travels faster at low temperature.


I am using Ubuntu 20.04 with the default desktop environments. After copying a file to my desktop, somehow all launchers stopped showing their icons, the .desktop extension appeared and I can no longer launch them. They are still set as executables, but when I double click them they simple get opened in Arronax. I would appreciate help with getting them to work again.

In Ubuntu 20.04, on the desktop, there is a number of actions I wish I could do, such as, by order of importance :  use keyboard shortcuts such as select all, copy / paste. use drag & drop with icons deactivate the "mouse over" highlight, and restrict the clicking area to only the icon, not the surrounding square  To put it simply, I'd like to have the exact same features as offered by the desktop of Ubuntu 18.04 (probably related to a specific version of GNOME, and not Ubuntu itself). Am I missing something obvious here? I actually see no reason why those actions are removed or deactivated on the desktop, since they all work in any Nautilus window.


I don't understand: Is the main motto of Stack Overflow to build reputation or to get your problems related to programming get answered?   So what if someone has a problem that may not be answered in terms of facts? As long as it is related to programming, it should be fine. I think that's what SO should be about!

I'm on SO pretty much every day researching something to do with programming, and over the last month or two, I find I'm growing frustrated and a little disgusted at how many interesting questions have been closed as "not a good fit" or "too subjective".  I think there is a confusion between "subjective" and "calls for judgement". To me one of the most valuable things about SO is the tremendous breadth and depth of experience of the members, and experience translates into smart decisions and advice, and that advice cannot always be asked for, or expressed in terms of, bald facts and data.  It's going to be 'subjective'.  I don't think SO should be Wikipedia. I think that if I could ask a question to a group of skilled programmers sitting around a table at lunch, and get interesting, valuable answers, then I don't care whether the question or the answers are 'subjective', I think that question should equally well be fair game for Stack Overflow.  I would like to see a mechanism whereby people who vote to close a question lose reputation when somebody expresses interest in that question or its responses.  How can I, or can I, influence this aspect of SO?


How can I draw a circular graph, as in the picture below, using xypic?

How can I draw the cyclic quiver like in the url below?      I tried and wrote the following but it is far from what I want. Would you please help me? Thank you.  \documentclass{svjour3} \usepackage[dvipdfmx]{graphicx} \usepackage{tikz-cd, mathdots} \newcommand{\pnt}[1]{\stackrel{#1}{\bullet}} \begin{document} \begin{equation}  \begin{tikzcd}   & & & \pnt{1} \ar[rd, bend left, "\alpha_1"] & & \\   & & \pnt{k} \ar[ur, bend left, "\alpha_k"] & & \pnt{2} \ar[rd, bend left, "\alpha_2"]  &   \\   & \pnt{k-1} \ar[ur, bend left, "\alpha_{k-1}"] & & & & \pnt{3} \ar[ld, bend left, "\alpha_3"] \\   & & \ddots \ar[ul, bend left, "\alpha_{k-2}"] & & \iddots \ar[ld, bend left, "\alpha_{i-1}"] & \\   & & & \pnt{i} \ar[ul, bend left, "\alpha_i"] & &  \end{tikzcd} \end{equation} \end{document}


I just need help starting this proof. I know what the definition of gcd and lcm mean in a formula sense, but I think I'm missing something.

I was reading a text book and came across the following:  Important Results (This comes immediately after LCM:) If 2 [integers] $a$ and $b$ are given, and their $LCM$ and $HCF$ are $L$ and $H$ respectively, then $L \times H = a \times b$  Can some please help me understand why the above result is true? Thanks in advance.


For example, do you think that google and other search engines make a difference when one domain name is like www.siteaboutsoccer.com and other named www.site-about-soccer.com ? Is it better to separate the keywords ?

Both in terms of SEO and user friendliness, is it better to put hyphens in a multi-words domain name or not ?  For example, is www.stackoverflow.com better than www.stack-overflow.com ?


I've run into an issue where I need to load a class into my code using reflection, create an array of that class, and then assign the array to another reflected object's property.  My minimum example would be:  My DLL:  Public Class MyItem     Public Property Id As Int32 End Class  Public Class MyMainItem     Public Property MyItems As MyItem() End Class   My Test App:  Sub Main()     Dim myAssembly As Assembly = Assembly.LoadFile("c:\temp\MyDll.dll")     Dim myMainObject As Object = Activator.CreateInstance(myAssembly.GetType("MyDll.MyMainItem"))     Dim myItemArray(1) As Object      myItemArray(0) = Activator.CreateInstance(myAssembly.GetType("MyDll.MyItem"))     myItemArray(1) = Activator.CreateInstance(myAssembly.GetType("MyDll.MyItem"))      myMainObject.MyItems = myItemArray End Sub   The error I receive is InvalidCastException when assigning myItemArray to MyItems:  Conversion from type 'Object()' to type 'MyItem()' is not valid.   Is there a way to make myItemArray be understood as an array of MyItem rather than Object?

I'm trying to deserialize an array of an type unknown at compile time. At runtime I've discovered the type, but I don't know how to create an instance.  Something like:  Object o = Activator.CreateInstance(type);   which doesn't work because there is no parameterless constructor, Array doesn't seem to have any constructor.


I'm struggling with this problem of proof by induction:     For any natural number $k\geq 5$, prove that  $k^2<2^k$.   I assumed that $k^2<2^k$  I want to show that $(k+1)^2<2^{k+1}$  The final statement is $k^2+2k+1$  Am I missing something ?

How do I prove the following statement by induction?  $$n^2 \lt 2^n$$  $P(n)$ is the statement $n^2 \lt 2^n$  Claim: For all $n \gt k$, where $k$ is any integer, $P(n)$  (since $k$ is any integer, I assume I have to prove this for positive and negative integers)  So let base case be $P(1)$, and I have to prove $P(n)$ for $n \ge 1$ and $n \lt 1$  $P(1)$ is $1^2 \lt 2^1$ which is clearly true.  Induction hypothesis: $k^2 \lt 2^k$  Inductive step $(k+1)^2 \lt 2^{(k+1)}$  $(k+1)^2 = k^2 + 2k + 1$  $k^2 + 2k + 1 \lt 2^k + 2k + 1$ by inductive hypothesis  Not sure how to proceed. Is my previous intuition that I have to prove this for $n \ge 1$ and $n \lt 1$ correct?


im new to java swing and im building an application which creates a resume based on user inputs and then displays the resumes created.  i have a label which ask the user whether theyre part of a STEM course or not. so i have two radio buttons which accomplish that task with names : 1.STEM 2.Non STEM  ive added them to a buttongroup so only one is selected.  public void groupButton(){     bg1 = new ButtonGroup();     bg1.add(stemRadioButton);     bg1.add(nonStemRadioButton); }   Each time i try to get the value of the radio button selected it keeps returning a null value.  Im new to this and i think it might have been answered and any help would be of great help ! thanks in advance !  EDIT :: i try retrieving the value by bg1.getSelected().getActionCommand; ive also tried using the getText method too.

I have a swing application that includes radio buttons on a form. I have the ButtonGroup, however, looking at the available methods, I can't seem to get the name of the selected JRadioButton. Here's what I can tell so far:   From ButtonGroup, I can perform a getSelection() to return the ButtonModel. From there, I can perform a getActionCommand, but that doesn't seem to always work.  I tried different tests and got unpredictable results. Also from ButtonGroup, I can get an Enumeration from getElements().  However, then I would have to loop through each button just to check and see if it is the one selected.   Is there an easier way to find out which button has been selected?  I'm programing this in Java 1.3.1 and Swing.


We are managing a dedicated server (WHM/cPanel) with 4-5(Magento & Woocommerce mostly) accounts in it, along with custom code that will connect those platforms with ERPs. This custom code works a lot with MySQL.  The server has 10GB of RAM and for the first time, past week was filled out and.  Now what makes me impression is that after restarting, server will go fully functional with only 2-3GB of RAM.  Is this reasonable? And if it's not and there is a memory leak, what would be the way to trace which of my accounts is filling up the memory?

I have a LAMP server with following configuration.  CPU : Intel(R) Xeon(R) CPU   RAM : 32 GB  HDD : 80 GB  Running on virtual environment.  All the things in the server are running smoothly. But I have noticed that the RAM usage is the server is increasing each day without any reason.   This is the current memory usage on my server.  # free -g              total       used       free     shared    buffers     cached Mem:            31         13         17          0          0         10 -/+ buffers/cache:          1         29 Swap:            2          0          2   And you can see the last 8 weeks memory usage below.   And i have executed the following command to find how much memory each process is consuming.  # ps -eo size,pid,user,command --sort -size | awk '{ hr=$1/1024 ; printf("%13.2f Mb ",hr) } { for ( x=4 ; x<=NF ; x++ ) { printf("%s ",$x) } print "" }'          0.00 Mb COMMAND        2253.62 Mb /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-external-locking --socket=/var/lib/mysql/mysql.sock        1171.66 Mb java -jar /etc/vmagent/bin/VMAgent.jar         138.27 Mb /sbin/audispd         127.75 Mb /usr/sbin/named -u named -c /etc/named.conf -u named -t /var/named/run-root          74.29 Mb auditd          73.03 Mb automount          43.14 Mb /usr/bin/spamd --username=popuser --daemonize --nouser-config --helper-home-dir=/var/qmail --max-children 5 --create-prefs --virtual-config-dir=/var/qmail/mailnames/%d/%l/.spamassassin --pidfile=/var/run/spamd/spamd_full.pid --socketpath=/tmp/spamd_full.sock          43.14 Mb spamd child          43.14 Mb spamd child          37.13 Mb /usr/sbin/httpd          37.02 Mb /usr/sbin/httpd          36.52 Mb /usr/sbin/httpd          36.46 Mb /usr/sbin/httpd          36.23 Mb /usr/sbin/httpd ................   For troubleshooting , i have restarted the MySQL and APACHE servers. But the result was same. Restarting the entire server will fix the issue, but i want to know what is the real issue.  Let me know if you have any idea about this issue.  Thanks,  Arun S


I'm opening a page in an iframe and wish to hide some of the page elements. I've tried the following with a single item: <script type="text/javascript"> window.onload = function() {   document.getElementByClassName('banner-covid19').style.display = 'none'; }; $(document).ready(function() {     $("#banner-covid19").hide(); }); </script>  Nothing seems to happen when I update the iframe. Is there something I'm missing? Ideally, I'd like to hide multiple items with different class names.

Basically, I have an iframe embedded in a page and the iframe has some  routines I need to invoke from the parent page.  Now the opposite is quite simple as you only need to call parent.functionName(), but unfortunately, I need exactly the opposite of that.  Please note that my problem is not changing the source  of the iframe, but invoking a function defined in the iframe.


accidently I did "chown -R www-data:www-data /" (I wanted to chown current directory).  Is the only good way now to set the system up again from beginning?  waaaah -.-  Thanks

I just ran this a few seconds ago. I managed to do Ctrl - C as soon as I realized what I started doing.  So far the only directory it's started going through is /bin.  I'm afraid to do anything else. So far I realized I can't use su as my normal user anymore.  Luckily I still have another root terminal open. What do I do?


I was trying to save times to type password for sudo because one of my scripts had to be randomly repeated quite often.  I googled some information about how to bypass typing password and applied to my server.  Now the sudo account is corrupted and all the users on server cant not use sudo.  How can I fix this?  What I did:   I created mysudoers in /etc/sudoers.d/  sudo vim /etc/sudoers.d/mysudoers Added my account in mysudoers  rna ALL = NOPASSWD: ~/scripts/getLog save & exit chmod  sudo chmod 0440 /etc/sudoers.d/mysudoers   Error log when I type sudo :  rna@rna-P580:/etc/sudoers.d$ sudo                                                                sudo: >>> /etc/sudoers.d/mysudoers: syntax error near line 0 <<< sudo: parse error in /etc/sudoers.d/mysudoers near line 0 sudo: no valid sudoers sources found, quitting sudo: unable to initialize policy plugin

How do I edit an invalid sudoers file? It throws the below error and it's not allowing me to edit again to fix it.  Here is what happens:  $ sudo visudo >>> /etc/sudoers: syntax error near line 28 <<< sudo: parse error in /etc/sudoers near line 28 sudo: no valid sudoers sources found, quitting


@Test public void testListCur(){     List<String> li=new ArrayList<String>();     for(int i=0;i<10;i++){         li.add("str"+i);     }      for(String st:li){         if(st.equalsIgnoreCase("str3"))             li.remove("str3");     }     System.out.println(li); }   When I run this code,I will throw a ConcurrentModificationException.  It looks as though when I remove the specified element from the list, the list does not know its size have been changed.  I'm wondering if this is a common problem with collections and removing elements?

We all know you can't do the following because of ConcurrentModificationException:  for (Object i : l) {     if (condition(i)) {         l.remove(i);     } }   But this apparently works sometimes, but not always. Here's some specific code:  public static void main(String[] args) {     Collection<Integer> l = new ArrayList<>();      for (int i = 0; i < 10; ++i) {         l.add(4);         l.add(5);         l.add(6);     }      for (int i : l) {         if (i == 5) {             l.remove(i);         }     }      System.out.println(l); }   This, of course, results in:  Exception in thread "main" java.util.ConcurrentModificationException   Even though multiple threads aren't doing it. Anyway.  What's the best solution to this problem? How can I remove an item from the collection in a loop without throwing this exception?  I'm also using an arbitrary Collection here, not necessarily an ArrayList, so you can't rely on get.


I know how to redirect stderr to a file or to the stdout when I issue a command: command 2 > log or command 2 > &1 or even command 2 > &1 > /dev/null. However, I want to redirect all the stderr to a file since I open a bash console and thus all error messages of executed commands in the console would be redirected to that file. Is that possible? If so, what is the command to put in the .bashrc?

I have a bash file that I need to redirect all output to one file, debug log as well as to the terminal. I need to redirect both stdout and stderr to the debug and log it for all commands in the script.  I do not want to add 2>&1 | tee -a $DEBUG for every single command in the file. I could live with | tee -a $DEBUG.  I remember there was a way to do it with something like exec 2>&1.  Currently I'm using something like the following:  #!/bin/bash DEBUGLOG=/tmp/debug exec 2>&1 somecommand | tee -a $DEBUGLOG somecommand2 | tee -a $DEBUGLOG somecommand3 | tee -a $DEBUGLOG   but it does not work. Does anyone have a solution/can explain the cause?


I want a Button to invoke a function if it is pressed, but this button is not in the same activity as the one the java.file is related to.  There's no problem with the code, but when I emulate the app, something fails. The button called cambaiarmenu is in another activity, not in Comida2, but I need it there, but working here. So that when it is pressed, the pickEntidad method takes place in this activity.  Here there is the java code of the activity without the button:  public class Comida2 extends AppCompatActivity implements Adaptador2.OnRecipeListener {     private RecyclerView recyclerView1;     List<Entidad2> listItems;     Adaptador2 adaptor;     private Entidad2 entidad1,entidad2,entidad3;     Button cambiarmenu;       @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);          requestWindowFeature(Window.FEATURE_NO_TITLE);         getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,                 WindowManager.LayoutParams.FLAG_FULLSCREEN);         setContentView(R.layout.activity_comida);          cambiarmenu=(Button) findViewById(R.id.boton_cambiarmenu);          recyclerView1 = findViewById(R.id.lv_1);         LinearLayoutManager layoutManager = new LinearLayoutManager(this);         layoutManager.setOrientation(LinearLayoutManager.VERTICAL);          recyclerView1.setLayoutManager(layoutManager);          listItems = new ArrayList<>();         entidad1 = new Entidad2(R.drawable.calabacines_3, "Solomillo a la plancha", " 10 min.", 4, 20);         entidad2 = new Entidad2(R.drawable.patatas_deluxe_especiadas_70523_300_150, "Entrecot", " 15 min.", 2, 50);         entidad3 = new Entidad2(R.drawable.tomate, "Hamburguesa", " 2 min.", 5, 100);           listItems.add(entidad1);         listItems.add(entidad2);         listItems.add(entidad3);          adaptor = new Adaptador2(listItems, this);         recyclerView1.setAdapter(adaptor);         adaptor.notifyDataSetChanged();         Clicado();     }      @Override     public void OnRecipe(int priority) {          if (priority == 20) {             Intent in = new Intent(this, Solomillo.class);             startActivity(in);         }         if (priority == 50) {             Intent in = new Intent(this, Entrecot.class);             startActivity(in);         }         if (priority == 100) {             Intent in = new Intent(this, Hamburguesa.class);             startActivity(in);         }     }      private void Clicado(){          cambiarmenu.setOnClickListener(new View.OnClickListener() {             @Override             public void onClick(View v) {                 pickEntidad();             }         });     }      private void pickEntidad(){         final int random = new Random().nextInt(101);          int priority1 = entidad1.getPriority();         int priority2 = entidad2.getPriority();         int priority3 = entidad3.getPriority();           listItems.clear();         if(random < priority1){              listItems.add(entidad1);          }else if(random < priority2){              listItems.add(entidad2);          }else if (random <= priority3){              listItems.add(entidad3);          }         adaptor.notifyDataSetChanged();     } }   And the part with the button is the void clicado.  This is the error message I get when the app crashes:   Please if anyone knows what is failing, tell me please. Any help will be good, and thanks.

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 downloaded MalwareBytes from their website and ran it twice I think. What other malware scanners are out there?  I suspect it is malware because I keep my laptop super clean, i scan every week using malwarebytes, avira and spybot. All of a sudden my web browser has begun showing me "deals" at the top of the page and it pops up with "better prices" whenever I go to online shops. Now my computer has been acting laggy and weird, also when I turned on the machine today it had to do a disk check and repair a file which I was not readily aware of. (it had to repair something deep inside the directories).  To further my suspicions, this is the first time I was ever prompted to do a disk check on this machine. Just bought it about 6 months ago and once i got this strange toolbar on my computer WITHOUT MY CONSENT now I'm having issues with Chrome crashing and my computer doing checks on itself, luckily it has certain self-repair systems in place but I don't want to have to run these all the time or risk serious damage to my laptop.

What should I do if my Windows computer seems to be infected with a virus or malware?  What are the symptoms of an infection? What should I do after noticing an infection? What can I do to get rid of it? how to prevent from infection by malware?   This question comes up frequently, and the suggested solutions are usually the same. This community wiki is an attempt to serve as the definitive, most comprehensive answer possible. Feel free to add your contributions via edits.


I am trying to sort this list:
     Thing 5     Thing 4     Thing 7     Thing 1     Thing 5     Thing 6     Thing 3
   I have tried:  $('#mainMenu').sort(function(){     $(this).children().sort(); });   I want it sorted in this order:  Thing 1 Thing 2 Thing 3 Thing 4 Thing 5 Thing 6 Thing 7

I'm looking for some sample code that will sort the list items in an HTML list by alphabetical order.  Can anyone help?  Here is a sample list for people to work with:

apples

cats

bears


I'm developing a 2D Platform game, I have a 2D camera, some backgrounds, and everything is working good. Now I want to implement parallax scrolling to give the illusion of depth in my game, but i can't imagine how to make my different layers of background to move (most correctly, be rendered by the camera) with a different speed from each other).  In brief this is my game structure:  I have 3 layers of backgrounds: the first is the road level, where the player runs; the second is the intermediate; the third are some mountains very distant (in my mind). Everyone of these layers is created with seamless textures and organized with the tilemap technique, with every texture positioned one after the other. Of course I make the spritebatch draw only the visible ones.  The camera is a rectangle that follows player movements and goes just horizzontaly.  Since layers aren't moving, but only the camera is moving, I don't know how to make a background scroll with a different speed from another!

Suppose I have three layers: a foreground, an intermediate-ground and a background.  What is involved in using these three layers to create ?


I am using HP bs179tx.  I have installed Ubuntu 14.04 but I am not able to get my Wifi working.  It has Realtek driver installed in it   I do not see the option Enable Wifi in the network bar.

How do I install Wi-Fi drivers for Realtek RTL8723DE device in Ubuntu 16.04?  lspci -v | grep -i network 02:00.0 Network controller: Realtek Semiconductor Co., Ltd. Device d723


Is there a way to automatically build a 3D object by using 2D layouts or images?  I have layouts for a house and it would be great if these layouts can be automatically transformed into a 3D object.

I have a cartoon character (a lion) that is part of my business logo that I want to put into Blender and animate it somehow. Is there any way I can take a flat picture (JPEG) and transform it into a 3D image and then animate it in Blender?


I have set my default font family for the text as sans serif with \renewcommand*{\familydefault}{\sfdefault}  and now I want for the math mode to display the numbers in the same way as they appear outside of it.  I have tried a couple of solutions such as using \DeclareMathVersion declaration followed by \SetSymbolFont and \SetMathAlphabet  as well as \textrm  command from amsmatch package but the font still turns out different from when just writing out numerical characters outside the math mode.

The reigning answer for the  completely disregards math-mode.  This might be preferred when all math equations are set display style, but a matching font is a must for in-line equations.  My current MWE (based on the one given ) only gives the text-mode items in sans, but any math remains in serif style (in-line, numerical-only equations look particularly hideous).  How can I set math in sans-serif as well?    \documentclass[]{article}  \usepackage{helvet} \renewcommand{\familydefault}{\sfdefault}  \usepackage[math]{blindtext}  \begin{document}  Text looks particularly bad when you have $123,400$ number-only equations in-line.  \blindmathpaper  \end{document}


I created a polygonal logo using many shapes, which I'm exporting for web in SVG format.  My problem is that, although the edges of each polygonal face/shape is at the same position on illustrator (snapped), when I export for web, a small space appears in between the edges.  In Illustrator, at max zoom:    On the web browser:    It seems that each face is disconnected, and that there is a gap between them. On the second image, you can see a bit of white beneath it because the white part extends underneath the shape. You can see it live at   How can I solve this? I am using Illustrator CS6. Can I attribute facets to the same shape and color them individually?

How can I align 2 paths perfectly? No matter what I do I get a little space (gap between the 2 paths I create, and they are straight lines not as I saw in other questions with pixel problems)  An example:    Between every triangle is a little space, like in the example. It isn't obvious and it doesn't bother, but if I use the image (as an SVG or something) it is really obvious.


In the math competition  of my university, it was asked to prove this result, I have been trying to do it using polar coordinates, but this path has not led me to something concrete $$\int_{-\infty}^{\infty} e^{-\xi^2t}e^{i\xi x}d\xi=\sqrt{\frac{\pi}{t}}e^{-x^2/4t} \quad \forall \ x\in \mathbb{R},t>0$$

I would like to work out the Fourier transform of the Gaussian function   $$f(x) = \exp \left(-n^2(x-m)^2 \right)$$  It seems likely that I will need to use differentiation and the shift rule at some point, but I can't seem to get the calculation to work. Does anyone have any advice?  By the way, I am using   $$\mbox{FT}(f)(k)=\int_{-\infty}^\infty f(x)e^{-ikx}\,\mathrm d x$$  as my definition of a Fourier transform. Many thanks.


I have a Samsung NP-QX411. It has two graphics cards, Intel and nVidia. The Intel drivers were quickly found and is fully functional. But nVidia, I have tried installing several drivers in different ways. But I can not run it without success. I do not understand how Ubuntu has by default the switch Hybrid Graphics option. What should I do?

I am considering buying a Dell XPS 15 laptop. The laptop has a Nvidia 420m card which should work with Linux but I keep reading that the Nvidia Optimus technology isn't supported on Linux. I am not really interested in switching from Nvidia to Intel to save power but need to know that the Nvidia card will in fact work if I installed Ubuntu.  If anyone has experience using a Nvidia card with Optimus technology or even better the exact laptop in question (Dell XPS 15 with 1GB NVIDIA® GeForce®  GT 420M) it would be great.  A major problem holding people back from adopting Linux is this sort of hardware issue. I am a long term Ubuntu user and supporter who can't afford to make a mistake with a purchase like this. I don't want to spend £500+ to find I have no graphics acceleration because Windows 7 is not an option.


Did you know, you can assign different materials (eg:colors) to different faces in a polygon? Before Blender 2.8 you could get a list of the materials used for each Face with: for aFace in anObject.data.polygons : print ("material: ", face.material_index)  However, in Blender 2.8, I guess 'material_index' is no longer a property of polygons. I'll show you: >>> anObject.data.polygons.material_index Traceback (most recent call last):   File "<blender_console>", line 1, in <module> AttributeError: 'bpy_prop_collection' object has no attribute 'material_index'  How can I walk through polygons or faces and get the material_index for each? Trying to write a file exporter for faces and their colors.

I want to iterate over the faces of a mesh and get the diffuse color of the material that is assigned to the face. How can I get the material that is assigned to the face of the object and the diffuse color of that material?


function makeAdjectifier(adjective) {     return function(string) {         return adjective + "" + string;     }; } var coolifier = makeAdjectifier("COOL"); console.log(coolifier("conference")); //outputs "COOLconference"   So, what I see here is coolifier function is being called and conference string is passed as an argument, and coolifier which taking input from makeAdjectifier, & cool is passed as an argument so adjective becomes cool. Now again adjectifier is returning a function which is taking string as a parameter. how conference is available at the inner function so that string becomes equal to conference.

How would you explain JavaScript closures to someone with a knowledge of the concepts they consist of (for example functions, variables and the like), but does not understand closures themselves?  I have seen  given on Wikipedia, but unfortunately it did not help.


I read in a physics book that when you get close to absolute zero, a liquid stops having friction. Why is that (if it’s even true, that is)?

By the fluctuation-dissipation theorem (detailed-balance for Langevin equation), $$\sigma^2 = 2 \gamma k_B T$$ where $\sigma$ is the variance of noise, $\gamma$ is a friction coefficient, $k_B$ is Boltzmann's constant, and $T$ is temperature. So in principle, one can have $\gamma\neq 0$ while $T=0$ and $\sigma=0$.  Is it indeed possible to experimentally achieve a system whose temperature and noise approach zero, but whose friction coefficient $\gamma$ does not approach zero?   If yes, what would be an example of such a system? What is the physical source of friction for such a system? If not, why not? Is there some sort of "quantum" correction to the fluctuation-dissipation theorem that rules out such zero-noise, non-zero friction systems?


im new in c#. I know what is delegate (object which collect references of methods) but i dont know what is difference between delegate and event? Why use events and delegates? are there any difference?

I don't see advantages of using events over delegates, other than being syntactical sugar. Perhaps I am misunderstanding, but it seems that event is just a placeholder for delegate.  Would you explain to me the differences and when to use which?  What are the advantages and disadvantages? Our code is heavily rooted with events, and I want to get to the bottom of it.  When would you use delegates over events and vice versa? Please state your real world experience with both, say in the production code.


I'm trying to hide the 'add to cart' button for some products (based on the type of product and custom variable is_customized).  If the custom variable is_customized is true only then show the 'add to cart' button.  I cannot find a hook using which I can remove/hide the button and then add it again if the is_customized is true.

I am using a plugin to help "build" a customized product. There are different tabs/steps the user has to go through with back and continue buttons. At the last step I would like to add an "agree to terms" box with a checkbox "Agree". I have this done. But I would like to hide the add to cart button in Woocommerce until the user selects the checkbox agreeing to the terms.  This will be beneficial to me to make sure they reviewed the return policy as well as avoid confusion with the add to cart button appearing during all the steps, assuring they go through all the steps.  Here is the checkbox coding i pulled from console:

             <input class="tmcp-field termsbox tmhexcolor_16_0_35 tm-epo-field tmcp-checkbox" name="tmcp_checkbox_16_0" data-limit="" data-exactlimit="" data-minimumlimit="" data-image="" data-imagec="" data-imagep="" data-imagel="" data-image-variations="[]" data-price="" data-rules="[&quot;&quot;]" data-original-rules="[&quot;&quot;]" data-rulestype="[&quot;&quot;]" value="Agree_0" id="tmcp_choice_16_0_35" tabindex="35" type="checkbox">     Agree      $0.00

   Here is the add to cart section with the quantity
     <input value="-" class="minus button is-form" type="button">    <input class="input-text qty text" step="1" min="1" max="9999" name="quantity" value="1" title="Qty" size="4" pattern="[0-9]*" inputmode="numeric" type="number">     <input value="+" class="plus button is-form" type="button">
 <button type="submit" name="add-to-cart" value="267" class="single_add_to_cart_button button alt">Add to cart</button>   I am self taught with html and css, but javascript is to foreign for me  I tried the following in CSS but it does nothing.Tried is on codepen and works (i know needs to show instead of hide when checked)....  input[type=checkbox]:checked + .single_add_to_cart_button {     display:none !important;  }


I wrote a simple script which increments a integer, but it is not working and i got an error.  my script :  x = 1 def inc():     x +=1     print(x)  if __name__ == "__main__""" :     inc()   when i run this script i got this :   palash@ash:~/PycharmProjects/src$ python tt.py Traceback (most recent call last):   File "tt.py", line 7, in <module>     inc()   File "tt.py", line 3, in inc     x +=1 UnboundLocalError: local variable 'x' referenced before assignment palash@ash:~/PycharmProjects/src$   my python version : Python 3.6.1 :: Anaconda custom (32-bit)  and I'm running on Ubuntu 17.04 32bit  I can't understand what is happening. Help me please  Edit: And can anybody define what is UnboundLocalError?  And Why  "__main__"""is working ?

The following code works as expected in both Python 2.5 and 3.0:  a, b, c = (1, 2, 3)  print(a, b, c)  def test():     print(a)     print(b)     print(c)    # (A)     #c+=1       # (B) test()   However, when I uncomment line (B), I get an UnboundLocalError: 'c' not assigned at line (A). The values of a and b are printed correctly. This has me completely baffled for two reasons:   Why is there a runtime error thrown at line (A) because of a later statement on line (B)? Why are variables a and b printed as expected, while c raises an error?   The only explanation I can come up with is that a local variable c is created by the assignment c+=1, which takes precedent over the "global" variable c even before the local variable is created. Of course, it doesn't make sense for a variable to "steal" scope before it exists.  Could someone please explain this behavior?


I was hospitalized and doctor didn't allow me to fly, shall I get the refund? It was Turkish Airlines. We were four in the family. Since I was not able to fly, they couldn't.

I bought a plane ticket from Turkish Airlines, 2 months before the flight. Then I went to the doctor, and the doctor said I have a health problem, which specifically forbids me to take flights for one month.  I have a valid doctor's note too. I can document this in any valid type. Does it makes me eligible for a full refund?


A novel about people playing a tabletop RPG get pulled into the world. They have gauntlets on their arms with dice that roll for outcomes. One character was a berserker type and he had a small flying dragon with him.

I read this book about 6-8 years ago, and it was already slightly old at that point. The key parts were that the characters were all from Earth (America, if I remember correctly - one character internally monologues about remembering exactly how many steps it takes to get to a specific beach from his house, and while I don't remember the beach name, I remember thinking it was American) and woke up in a fantasy world, scattered about, and not remembering where they come from for quite a while.  Each abductee is wearing a bracelet with (what I remember as) polyhedral dice, although they aren't named that I think I inferred it from the description, and at some point they start using them as a form of magic. They find out that they were all abducted by a wizard so they go to find him. I can't remember what happens next, other than that eventually they find him and in a later book in the series (that I only saw the blurb of) they go back to his castle.  I think the book might be called "______ Keep", and am fairly certain the later book in the series is called "Return to ______ Keep".  I'd really appreciate it if someone who knew the title could tell me - it's like an unscratched itch at the moment, and I'd love to read it again!


url reference   Please tell me how to transfer data from sybase to sql server database.

I've been given a Sybase .db file by a client and I need to import that into a new SQL Server database so that I may see the data as well as the tables and their relationships, any ideas on how that might be done shall be really appreciated :)


I'm trying to dual boot my HP notebook 15 and I can't install it from live USB.   I split my C: drive into C: and F:. I want to install Ubuntu on F:. It runs Windows 10 and has InsydeH2o BIOS.

I'm absolutely new to Linux. I would like to know how to install Ubuntu alongside the pre-installed Windows 8+ OS.  Should I do it with Wubi, or through the Live USB/DVD?  What steps do I need to take to correctly install Ubuntu?