I'm on Lesson 28/28 of Getting Started with Programming of Codeacademy's Javascript tutorial. I want to create a program in which a prompt comes up where I enter a quantity and if the quantity is   var numberOfLessons = prompt("How many lessons have you taken?")  if(numberOfLessons===28) {     console.log("I finished my first course!") }  else if(numberOfLessons<28) {     console.log("Do more lessons!") } else if(numberOfLessons>28) {     console.log("Do less lessons D:") }   When I run the program, if I input a quantity less than 28, then the proper "Do more lessons!" comes up. However, with ===, if I input 28, then console.log doesn't output anything. It's completely blank. However, if I use == in line 3, instead of ===, then inputting "28" into the prompt returns the proper "I finished my first course!"  var numberOfLessons = prompt("How many lessons have you taken?")  if(numberOfLessons===28) {     console.log("I finished my first course!") }  else if(numberOfLessons<28) {     console.log("Do more lessons!") }  else if(numberOfLessons>28) {     console.log("Do less lessons D:") }   Why is it that == works but === doesn't? My first thought (or, rather, my friend's first thought) was that it's because numberOfLessons is a variable and === requires the types of the two things being compared to be the same, and a variable is not the same as a number. But, in that case, why would it work for the "else if" statement where > is being used?


I am new to cpp and I am trying to write a simple project using cmake.  Goal: write libraries and include them into other projects. Problem: I keep getting linker errors, I do not know how to proceed.  I have written the class in a single file and things works properly, but when I split my code into libraries I get errors  #include <iostream> #include <algorithm> #include <vector> #include <initializer_list>  #include "op.hpp"  using std::cout; using std::endl; using std::sort; using std::vector;  using Ops::Operation; using sort::Sorter;  int main(int argc, char **argv) {     int arr[] = {2, 3, 4, 2, 3, -1, 0};     int n = sizeof(arr) / sizeof(arr[0]);     vector<int> vec(arr, arr + n);      for (auto a : vec)         cout << a << '\t';     cout << endl;      Sorter s;     s.sort(vec);      for (auto a : vec)         cout << a << '\t';     cout << endl; }   #include <algorithm> #include "op.hpp" #include <stdio.h>  namespace Ops { int Operation::add(const int a, const int b) {     return a + b; }  } // namespace Ops  namespace sort { Sorter::Sorter() {}  template <typename C> void Sorter::sort(C &c) {     std::sort(c.begin(), c.end()); } } // namespace sort   namespace Ops { class Operation { public:     int add(const int, const int); }; } // namespace Ops  namespace sort  { class Sorter { public:     Sorter();     template <class C>     void sort(C &c); }; } // namespace sorter   cmake_minimum_required(VERSION 3.14 FATAL_ERROR) project(testing VERSION 1.0.0)  add_library(     op SHARED     op.hpp     op.cpp ) add_executable(main main.cpp)  target_link_libraries(main PRIVATE op)    I expect the output to be the sorted vector printed I get error  Undefined symbols for architecture x86_64:   "void sort::Sorter::sort<std::__1::vector<int, std::__1::allocator<int> > >(std::__1::vector<int, std::__1::allocator<int> >&)", referenced from:       _main in main.cpp.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: *** [main] Error 1 make[1]: *** [CMakeFiles/main.dir/all] Error 2 make: *** [all] Error 2


In nuclear fission the total rest mass of the products is less than the mass of the original nucleus. But on the other hand, the binding energy of the products is higher. Doesn't the decrease of the rest mass of the products contribute to the increase of their binding energy? So why then there is enormous energy released?


How to prove this integral problem: $\int_0^{\infty}\frac{dx}{1+x^n}=\frac{\pi}{n}\csc\frac \pi n$?

I dont know if this has already been asked.  How to prove this integral $$\int_0^{\infty}\frac{dx}{1+x^n}=\frac{\pi}{n}\csc\frac \pi n\ {?}$$ $n\ge 2$ is a positive integer   Frankly speaking i have no clue how to start someone please explain me.


What makes matter travel along geodesics?

The relativistic explanation of gravity is geometric, the motion of a body in a field of space-time distortion can be described as being at rest and travelling along a geodesic of that field, but why does it travel along that geodesic? What causes it to move?


Images for Area51 proposal community promotion on imgur.com?

For each proposal on Area51, a promotional image is automatically generated and it shows the current state, e.g. number of followers/supporters or comitted. Example:    They’re obviously useful for  on existing sites. Alas, the current requirements for those say that the image needs to be hosted on imgur.com. I can easily provide the URL https://area51.stackexchange.com/ads/proposal/{proposal-number}.png in the image upload dialog, to get a cryptic imgur address back, but I’m afraid that it won’t update dynamically.  Please note that I was able to use the area51 URL on some sites until right now, when the poster generator seems to be broken or off-line, but on other sites the software stopped me from posting any image not hosted on imgur. Can we please have the dynamic posters working everywhere (and in “HiDPI”) or be assured that the external service will update them regularly?


existence of complex structure in dimension 2

Does an orientable closed 2 manifold always admit a complex structure?  I know that an almost complex doesn' t necessarily give rise to a complex structure(the almost complex structure should be integrable) I am studying 2 manifolds over R, and I wonder if an almost complex structure always exist? This almost structure may be chosen integrable?  I ask because there are certain known results on the different possible geometries in dimension 2.I don' t know exactly how these manifolds (closed and orientable) are classifyied, but I know there are three cases. May be I am confused, and the complex structure is irrelevant to this classification. Some help please!


I once saw the following code segment, and am not clear what it does really do? d = np.mean(a[::b,:,c:-c], axis=2, keepdims=False)  In specifi, what ::b means here?


Is there any combinatorial intuition to prove this identity $r\cdot \binom{n}{r}=n\cdot\binom{n-1}{r-1}$?


How can I create a colour scheme based on two specific, adjacent(ish) colours?

I'm helping a friend to produce his website. He's supplied his logo and a flyer that he's used, which use the colour scheme he's opted for - green, blue and white. The specific colour values for the blue and green are: 00AEEF  79BA55  Using those colours for on-page elements has had poor results for me. I've tried to find a palette using Adobe Color CC, but can't get it to produce something using those two specific hex values. Unless I'm not using it properly, it looks like Color CC only creates schemes based on one chosen colour, rather than allowing me to specify two colours to work around. So in these circumstances, given the specific colours I've been provided, how can or what can I use to create a satisfactory colour scheme from them? Note that I'm not asking to create the same kind of/equivalent colour scheme for any other arbitrary colours. Again - this is NOT the same question as the one asked , which is asking if the calculations make sense. My question does not ask about calculations; I am asking how I can create a palette of complementing colours based on the two that I have been provided with.


Don't Know How To Install Softwares In Ubuntu

I want To Know How To Download And Install Software. I Know that I can download software from Ubuntu software center, but there are a lot of software that are not available in Ubuntu Software Center. Like Java Jdk8.    Please tell me each and every way by which I can manually install any software. All those terminal commands that are used to install a software... I want to know all of them. As I'm a Windows user and in windows there are .exe files and we only have to double click on the exe file for installation.    One More Thing is how to install .deb files in Ubuntu Please Help Me Guys...


Can one use independent t-test to compare percentages?

For our research paper, our group plans to administer a sex inventory to students from two different schools which classifies them as sex-typed (meaning if you're male, you turn out masculine), sex-reversed (if you're male, you get classified as feminine), or androgynous.  Once they're classified, we plan to represent the number of people who are sex-typed, sex-reversed, and androgynous as percentages with respect to the sample size. Is it okay to use independent t-test to compare the percentages between the two schools?


How can I install recessed lights with a thick ceiling finish?

I have an old house with a lath and plaster ceiling that has 1x4 battens installed on the lath and plaster ceiling with 3/8" drywall over those.   I want to install recessed lighting but there is approximately 1" gap between the can and the trim. Are there recessed light cans available that are adjustable to accommodate that?


How can I read the contents of a .txt file and store it to a global variable using Javascript?

I have:    var datahere; var url = "/example.txt"     example.txt has the text "Hello World"  How do I get datahere to equal this string outside of any request?  I'm happy to include PHP into the equations if necessary.


Could anyone help me with, how to rectify this particular code. (P.S: My aim in output of this code is, to get a dialog that could be closed)

// The below is the main class i'm using.  import javax.swing.JFrame;  public class Workspace {      public static void main(String[] args){      dummyClass var1 = new dummyClass();      var1.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);     var1.setSize(100,100);     var1.setVisible(true);     } }   // The below is the subclass i'm using.  import java.awt.FlowLayout; import javax.swing.JFrame; import javax.swing.JLabel;  public class dummyClass extends JFrame {     private JLabel item1;      public dummyClass() {         super("I'm the title;");         setLayout(new FlowLayout());          item1.setToolTipText("I'm the ToolTipText");         add(item1);     } }


I need to know the importance of DOCTYPE..  Which will be good for tables?  when specifying doctype 4.01,table structure changes sometimes..  if we remove doctype,it is working perfect..  so i need help guidelines for usage of tables and doctype from stackoverflow users


Windows batch file to move files to subfolders based on first word in file name?

I am bit of a batch file noob, so I'd really appreciate your help. I have a ton of files stored in a single directory which I wish to sort into subfolders based on the first word in their filenames. So, I have files like these:  C:\Folder\Wedding2018 img20929.jpg  C:\Folder\Wedding2018 entrance.mov C:\Folder\Wedding2018 registry of guests.pdf  C:\Folder\HorseRiding2017 spirit1.jpg C:\Folder\HorseRiding2017 guests.txt  C:\Folder\HorseRiding2017 certificate.pdf C:\Folder\HorseRiding2017 jumping.mov   And I wish to move all files to subfolders based on the first word, ending up like this:  C:\Folder\Wedding2018\img20929.jpg C:\Folder\Wedding2018\entrance.mov C:\Folder\Wedding2018\registry of guests.pdf  C:\Folder\HorseRiding2017\spirit1.jpg C:\Folder\HorseRiding2017\guests.txt C:\Folder\HorseRiding2017\certificate.pdf C:\Folder\HorseRiding2017\jumping.mov   I've found a couple of scripts that almost do what I need, but I don't have the chops to bring it home:       I just can't work out how to integrate the script to grab the first word and make a directory to which the files will be moved.  Can you help me get this across the line?


What does this part mean in find command with -exec \{\}?

I have this command (KSH)  find <path> -regextype posix-extended -type f -regex '.*/txt' -exec ls -l --full-time \{\} \; | sort -bnr   So, I'm reading and deciphering the command above so far what I know is that   -regextype posix-extended   this just changes the regextype to posix-extended  -type f   this only return files  -regex '.*/txt'   this is just regular expression  -exec ls -l --full-time   executes ls -l --full-time  \\{\\}   this one I don't get. What does it do? What I know is that I need to end -exec with {} \; but why there's backslash inside the curly braces?


How to easily prove $x+\frac{1}{x} \ge 2 \quad ∀x\in ℝ^+$

When I tried to solve some certain math problem (an inequation) for pivate exercise purposes, I had to prove that  $x+\frac{1}{x} \ge 2 \quad ∀x\in ℝ^+$, I solved it with tools from differential calculus (prooving that there is a local minimum at $(1,2)$ etc), because this was my only concept. But I guess one can prove this in a much simpler way, but I strangely do not get it — So: How can one prove this the most effective way?


Can anyone help creating this table,I can't figure it out.    I tried this code but got some errors:  \begin{tabular}{|c|c|c|c|c|} \hline  something & \multicolumn{4}{ c| }{something} \\  \cline{2-5} & $ t_{1} $ & $ t_{2} $ & ... & $ t_{n} $ \\  \hline \multicolumn{1}{ |c|  }{\multirow{d1} & 1 & 2 & 3 & 4 $ \\ \hline  \end{tabular}   Thanks in advance.


Under attack what source url source would this be?


I tried to mount an external HDD but, It seems that there's no partition in there.  fdisk -l   shows that     Disk /dev/sda: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors   but there's no /dev/sda1 or sda2 etc.  Could you tell me CLI command for making it to /dev/sda1 as a whole?  Thanks!


How can I do a monitoring/guard CCTV camera effect with blender?

How can I do a monitoring/guard CCTV camera effect like pictured below with blender?


Problem with Hair Particles in the donut Tutorial

So my girlfriend was following the "Part 1, Level 2: Particles" section of the Donut Tutorial by Blender Guru. And while using the hair particle option to use as sprinkles, she was facing this problem, where the hair particles were coming out from the below of the icing instead of top of the icing. Thus, any sprinkle particle she makes, it appears below the icing instead of top. Why is that happening? Is there any way to fix it?


avoiding template definition in header file

I have the following class defined in a header A.h :  class A {  private:  template<int i> void method();  };   is there any way for me to keep the implementation of method in its own A.cpp file , with the usual method implementations ?  I'm asking this because puting the implementation in a A.h would make the interface very hard to read, especially since it's a private function.   It will only ever be instanciated with a limited values of "i" if that matters


present perfect in this case because the time indicated is not finished

We have just discovered  today after the workers left ,that  there is a water leak, some   water  is falling from the ceiling in the kitchen. As the workers  had already left we could not speak to them and  ask  them what was happening. We  have put two  buckets  found  near the washing machine.  I used present perfect for discover because  when I discovered the leak the day was not finished yet  . Can I  also use  present perfect for put because both actions are quite simultaneus and still in the present  or should I have used past simple for discovered and present perfect for have put I don't think so because of today.


What is the difference between malloc vs new in c++

I was making linked list program in c++ and I saw that for allocting memory we can use both new operator and malloc() function. I cant figure out the difference between the two and what i should use. Please help!!!


$\lfloor x\rfloor + \lfloor y\rfloor \leq \lfloor x+y\rfloor$ for every pair of numbers of $x$ and $y$

Give a convincing argument that $\lfloor x\rfloor + \lfloor y\rfloor \leq \lfloor x+y\rfloor$ for every pair of numbers $x$ and $y$. Could someone please explain how to prove this? I attempted to say that the largest values that could be added to $x$ and $y$ is $0.99$ and that doing so still made $\lfloor x\rfloor + \lfloor y\rfloor < \lfloor x+y\rfloor$. However, my answer was not accepted.


Continuous dependent variable with ordinal independent variable

Given a continuous dependent variable y and independent variables including an ordinal variable X1, how do I fit a linear model in R? Are there papers about this type of model?


I am trying to predict what are the determinants for foreign direct investments in Lithuanian regions from 2011 to 2017.   My dependent variable is foreign direct investments per capita in Lithuanian regions. And I have a variety of explanatory variables such as unemployment rate, labor cost, infrastructure quality and so on.   However, the data is really not normally distributed. Data does not show any linearity.     That is why I cannot use the multiple linear regression.     I found out that for the data which has a Poisson distribution, two regressions are suitable: Poisson and Negative binomial regression.   According to my calculations the dispersion is higher that the mean, so I should use the negative binomial regression.   Please correct me if I am wrong.   Also, how do you account for changing variables in time? (From 2011 to 2017)


MySQL: What's the best to use, Unix TimeStamp Or DATETIME

Probably many coders want to ask this question. it is What's the adventages of each one of those MySQL time formats. and which one you will prefer to use it in your apps.  For me i use Unix timestamp because maybe i find it easy to convert & order records with it, and also because i never tried the DATETIME thing. but anyways i'm ready to change my mind if anyone tells me i'm wrong.  Thanks


I am trying to print a large quantity (several megabytes) of UTF-8 encoded text which consists of Chinese and Latin characters (and maybe a sprinkling of others). I would like to print it in several columns per page, in a very small, condensed font, preferably with control over line spacing. I'd quite like inter-column lines, but I can live without them. The aim is to print to PDF for transfer, as well as to paper.  I have tried enscript and a2ps, but neither of these support Unicode.  I have also tried paps, but this produces bitmapped outputs which cannot be PDF'd effectively, and also look terrible.  Is there a modern way to print UTF-8 text like this without resorting to something like constructing it manually in Python?


Prepared statement with PDO and WHERE clause

I am trying to complete my prepared statement which is using the PDO class. My specific problem is that I am for the sake of god not able to get the :val after the WHERE clause into quotes which are needed to fire the SQL statement. I have tried concating it and also the quote() function but nothing seems to work, I am pretty sure I am missing something little but I cant find it. The statement can't be the mistake because I tested it directly at my DB and it works. Here is my code:  public function find($column, $value){     $stmt = $this->connection->prepare("         SELECT *          FROM benutzer          WHERE $column = :val     ");     //$stmt->bindParam(":col", $this->connection->quote($column), PDO::PARAM_STR);     $stmt->bindValue(":val", $this->connection->quote($value), PDO::PARAM_STR);     $stmt->execute();     // Set the fetchmode to populate an instance of 'User'     // This enables us to use the following:     //     $user = $repository->find(1234);     //     echo $user->firstname;     $stmt->setFetchMode(PDO::FETCH_CLASS, 'User');     return $stmt->fetch(); }   EDIT: As I mentioned I haven't found a answer which FULLY satifies my needs. The problem is that I have tried all the different ways I have found at reliable communities but not a single one has worked for me.


Why am I getting different answer on same code with different languages?

I was trying to solve a competitive coding question which required building a series 7,77,777,..., for that I wrote a code in c++ #include<iostream> #include<math.h> using namespace std; int main() {     int series=0;     for(int i=0;i<6;i++)     {         series += (pow(10,i))*7;     }     return 0; }  I was getting the required answer while dry-running but while running through MinGW compiler, the answer I got was 7,77,776,7776,77775,... does this have anything to do with bit conversion? I tried running the same code in python and got the required answer.


Where can I ask general curious discussion questions?

Is there a general discussion section for curious questions? Or are we simply left to swallow such curiosity because the results of it may or may not benefit a big crowd? Sample question There's an idiom, "It costs a moon". As of now NASA hasn't revealed if the Moon has precious elements. This brings some curious thoughts to me... What if the Moon has precious metals, gas, etc.? Does anyone own the moon or other planets in our solar system? Like Americans? Russians, Germans, Japanese, Chinese or British? Are there any constitutions that refrain anyone from such access or ownership to solar elements (either research wise or commercial wise)?


Nearly getting hit by reckless vehicles. What can be done?

Today I nearly got hit by a driver not paying attention:     I was stopped, waiting to turn right.  She was turning right off the road. She did not indicate. It was a quiet residential area, daylight. The driver saw me around 1-2 seconds before stopping her car about 1/2 metre away from me by emergency stopping. The driver had dark shades, and looked like she was not paying attention when turning. I had to jump off my bike and run out of the way. She exclaimed "Sorry, you were in my blindspot". This is in England.   This is not the first time a driver has nearly hit me by reckless driving.  Id like the make the roads safer in general for all cyclists.  The questions:   What would happen to the driver if I had recorded this incident and reported it? Do I need video evidence? What is the official law? To me, a vehicle can be used as a weapon, and not paying attention could clearly be fatal. How would these consequences for the driver make the roads safer for cyclists in general? What actions are the government taking to make the roads safer for cyclists?   Thanks


How to remove a value from a map in typescript

I have myMap: { [key: string]: string[] } = {} and I want to remove a value for some certain key from myMap.   That is delete value1 from myMap[Key1].  I have done my google search but I failed to find it.


Moment of Inertia of a Ring about an axis inclined at $\frac {\pi}{4} $ radians with normal to plane of ring

I have a thin Ring of mass $M$ and radius $R$, I have to find it's moment of Inertia about an axis passing through it's centre and at an angle of $\frac{\pi}{4}$ radians with the normal to the plane of the ring.  My approach:  I am trying to use perpendicular axes theorem. Suppose I place three mutually perpendicular axes on the centre so that one is the diameter, another one is perpendicular to it (also diameter), but on the plane of the ring, while the third is parallel to the normal, now I rotate the axes such that the one of them remains the diameter while the other two are mutually inclined at $\frac{\pi}{4}$ to the normal.  Now, as I know the moment of Inertia about a diameter ($\frac{MR^2}{2}$) So the required moment of Inertia (say $I$) must be :  $ I+I = \frac{MR^2}{2}$ from perpendicular axes theorem, So, $I = \frac{Mr^2}{4}$.  Is my way of thinking correct in this case?


Census.gov usually makes available the shapefiles containing school zone boundaries. Due to the US government shutdown, census.gov is down. Does anyone know where to download a recently archived copy?


SQL SELECT WHERE field LIKE PHP variable.

I'm having some trouble using a php variable with an SQL LIKE command. The code below acts as it should. However, if I change $model = "Cruze Limited"; I don't get any returns from the database. I'm expecting at the very least the same result I'm getting when $model = "Cruze"; which returns all vehicles that's model contains "Cruze".  I have a feeling I'm just missing some small syntax error but I can't place my finger on it. I apologize in advance if that's the case.  <?php  $make = "Chevrolet"; $model = "Cruze";  $trim = "LT";  $year = '2017';  $query = "SELECT *           FROM my_table           WHERE year = '$year'           AND make = '$make'           AND model LIKE '$model%'";  $statement = $db->prepare($query); $statement->execute();       <?php while($vehicles = $statement->fetch()): ?>
<?= $vehicles['year'] ?>

<?= $vehicles['stock'] ?>

<?= $vehicles['kms'] ?>

$<?= $vehicles['price'] ?>

<?= $vehicles['make'] ?>

<?= $vehicles['model'] ?>
       <a href="<?=$vehicles['photos']?>">Photo   <?php endwhile ?>      ?>


Is it possible to render MathJax for chats in Android Web browser?

I have searched for it and found that I have to run a link like this () which I found . I have to bookmark this link and open it whenever I want to render MathJax in chat.  But the problem is whenever I open the bookmark, it opens in a new tab and keeps on loading forever. What should I do?


Proving $\binom{m}{n} + \binom{m}{n-1} = \binom{m+1}{n}$ algebraically

I am working through the exercises and have spent half a day on one problem so I decided to get some help because I can't figure it out.  Show that if $n$ is a positive integer at most equal to $m$, then $$ \binom{m}{n} + \binom{m}{n-1} = \binom{m+1}{n} $$ I expand the sum of two binomial coefficients and get $$ \frac{m!}{n!(m-n)!} + \frac{m!}{(n-1)!(m-n+1)!} $$ Now, I have trouble summing up the two fractions, specifically, finding the common denominator of two fractions. I tried all sorts of things I could think of but can't seem to get to $n!(m-n+n)!$ which is in the solutions at the back of the book.  My last try $$ \frac{m!(n!(m-n)!) + m!((n-1)!(m-n+1)!)}{n!(m-n)!(m-n+1)!(n-1)!} = $$ $$ = \frac{m!(n!(m-n)! + (n-1)!(m-n+1)!)}{n!(m-n+1)!(m-n)!(n-1)!} = $$ $$ = \frac{m!(mn!-nn!+((mn-n^2+n)!-(m-n+1)!)!}{n!(m-n+1)!(m-n)!(n-1)!} $$  And so on, I feel like I am missing something as I don't see any opportunity to simplify this mess.


Typesetting the arc symbol over three letters

How do I put the arc symbol over three letters to indicate that the three letters together represent an angle?  For example, the display from the following code gives five points - A, B, C, D, and E on a circle.  I want to say something like "the ratio \arc{ABC} to \arc{AEC} is 2 to 3."  \documentclass{amsart} \usepackage{tikz} \usetikzlibrary{calc,angles,positioning,intersections}   \begin{document}   \noindent \hspace*{\fill} \begin{tikzpicture} \draw (0,0) circle (1);  \draw (234:1) -- (162:1) -- (90:1) -- (18:1) -- (-54:1) -- cycle; \node[anchor=234+180] at (234:1) {$A$}; \node[anchor=162+180] at (162:1) {$B$}; \node[anchor=90+180] at (90:1) {$C$}; \node[anchor=18+180] at (18:1) {$D$}; \node[anchor=-54+180] at (-54:1) {$E$}; \end{tikzpicture} \hspace{\fill} \vskip0.2in \noindent In the preceding figure, a regular pentagon is inscribed in a circle. What is the ratio of the length of arc $\mathit{{ABC}}$ to the length of arc ${\mathit{AEC}}$?  \end{document}


Is the closure of a set equal to the closure of the closure of that set?

I know it seems silly, but is it possible for the closure of a set to have limit points that are not limit points of the original set?


For a massless pulley moving upwards with acceleration, is the upward force equal to the downward force?

Imagine a massless and frictionless pulley with two weights hanging either side of the pulley by a massless string.    Rather than being fixed to a ceiling, the pulley is being pulled upward by an external force F, with the weights and string still attached.  Due to Newton's 2nd Law,  $\Sigma F_y=F-2T=ma$,  where $T$ is the tension in the string on either side of the pulley and $a$ is the vertical acceleration of the pulley.  Clearly, since there is a net upward force, the pulley itself will accelerate upwards.  But because the $m=0$,   $F-2T=0$.  Does this not then suggest that the pulley has a constant velocity?


How do I make an object glow?    I've tried everything to make it glow but it isn't. I even made a separate material and added the texture again and used a mix shader to mix the texture and glow.


Why usually we don't have a linear term in the potential?

Let us consider scalar field theory. Why usually we do not have a linear term in the potential, like $$V(\phi)=a\phi+\frac{1}{2}m^2\phi^2+\frac{1}{4!}\lambda\phi^4,$$ or equivalently, after a field redefinition,  $$V(\phi)=\frac{1}{2}m^2\phi^2+\frac{1}{4!}\lambda(\phi-b)^4?$$  This kind of potential is renormalizable and energy bounded from below. But I have never seen any serious discussions on this type of theory. Are there troubles with this potential?  PS: I have seen the discussions when there is a cubic term $g\phi^3$ in the potential. This happens in, for example, false vacuum decay.


If $A$ is an $m \times n$ matrix and $B$ is an $n \times m$ matrix and $n<m$, then the product $AB$ is not invertible.

If $A$ is an $m \times n$ matrix and $B$ is an $n \times m$ matrix and $n < m$, then the product $AB$ is not invertible.  This exercise is from the first chapter sixth section of Hoffman and Kunze's Linear Algebra book. Meaning it has not gone over rank, determinants or linear maps which all the other answers to this exercise has relied on. The things that have been discussed up until this point are:      - Systems of Linear Equations      - Matrices     - Elementary Row Operations     - Row-Reduced Echelon Matrices     - Matrix Multiplication     - Invertible Matrices   I'm sorry to say that I don't really have much to say about what I've already tried and I would appreciate any hints that would point me in the right direction using the previously stated tools. Thank you.  Edit: My question is different to the one Dietrich Burde linked due to the answers in that question relies on things not yet covered in the book.  Edit 2: I want to clarify something in my post. I am not interested in solutions that use the concepts of rank, determinants or linear maps seeing as I'm sure the authors were smart enough to realize that they cannot make an exercise which is impossible to do without using linear algebra concepts that haven't yet been introduced in their introductory linear algebra textbook.


My passport was lost at Kuala Lumpur airport. I reported at airport but my visa is expiring soon

I reported my missing passport 20 days ago. My visa is expiring in 10 days. What should I do? How much money will the Indian embassy need for an emergency certificate ?


Find expected value of $\frac{1}{1+\xi}$ if $\xi$ has Poisson distribution.  My try:  $$E\left[ \frac{1}{1+\xi}\right]=\sum_{k=0}^{\infty}{x}_{k}{p}_{k}=\sum_{k=0}^{\infty}\frac{1}{k+1}\frac{\lambda^ke^{-\lambda}}{k!}$$  Is it right?


I am wondering if "from where" is an acceptable relative phrase when we refer to a location.  For example:  You should stay at a hotel near the main station, from where/which you can travel everywhere in this country.  In this sentence, I think "where" is better but which is not wrong, as where refers to the location of the station and which refers to the station itself.  So, from where in this means "from at the station" or "from where the station is" and from which means "from the main station".  Did I distinguish between them correctly?  Any advice is welcome.  Thanks in advance.


The ideal generated by $2$ and $ x$ in $\mathbb{Z}[x]$

Is the ideal generated by $2$ and $x$ in $\mathbb{Z}[x]$ all polynomials except for the odd constants?  And is this ideal a non-maximal, prime ideal?


What was the design decision for not allowing multiple spaces & new lines in HTML?

In HTML, this:
Hel     lo
   is the same as:
Hel lo
   and this:
Hel     lo
   is the same as:
Hel  lo
   What was the design reasoning for this?


Do the laws of physics work everywhere in the universe?

Do the laws of physics change anywhere in the universe? Or will they change from place to place in the universe?


Is it possible to view the CPU/GPU temperatures **from the command line**?

When this  was asked in 2012, specifically mentioning the "command line" requirement, an  suggested  (a "legacy" product). Running all three, Temperature Monitor along with  and , side-by-side shows the problem. I don't want this level of perpetual distraction.    I suspect the following answer: It is not possible to see the CPU&GPU temperatures from the command line. I suspect this because both iStat and Temperature Monitor install additional drivers. If that's the case, it would be nice to record that answer.   and  are nice utilities to make you keep an eye on the temperature of your CPU. The former shows only the CPU temperature, and both are too distracting (the latter's precursor, iStat Nano, could sit silently in the Dashboard until one needed it, plus iStat Menu seems rather sticky: I haven't figured out how to delete it yet—just removing the program from /Applications is insufficient.)  It was nice to find that  will reveal the Maximum Capacity of a battery (in contrast to the static Design Capacity, the Maximum Capacity signals the health of the battery). Using a program (such as ) is not necessary.  A  (still using ioreg) will reveal the battery temperature     AppleSmartBattery Temperature:    30 °C   62.0 °F   and so I'm hoping for a renewed answer in 2017 to the following question.  How can I view the CPU temperature from the command line? It would especially be nice to also see the GPU temperature. OS X just crashed and rebooted on its own, and the Console logs ("Event: GPU Reset" and "GPU HangState 0x00000000") suggest that the GPU might be the culprit. I'm trying to determine if it's time to reapply the thermal paste and reattach the heatsinks (never done this before; not even sure it's within my ability).


An analytic function $f$ on $\{z \in\mathbb{C} : |z|>1 \}$

Let $\Gamma$ denote the positively oriented circle of radius $2$ with center at the origin. Let $f$ be an analytic function on $\{z \in\mathbb{C} : |z|>1 \}$, and let $$\lim_{z\to \infty}f(z)=0.$$  Prove that $$ f(z)=\frac{1}{2\pi i} \int_{\Gamma} \frac{f(\xi)}{z-\xi}d\xi,  $$ for all $z\in\mathbb{C}$ with $|z|>2$.  I have no idea how to even start. Any hint will be appreciated.


Block Pyramids in Minecraft - closed formula for total number of blocks

The total number of blocks within pyramids on Minecraft doesn't quite correspond with . Because of the blocky nature of the environment, the "even rows" of the pyramid are missed out. So, a simple 3-block-high pyramid has $1 + 9 + 25 = 35$ blocks.   Hence the sum for a pyramid of height $n$ is given by $$\sum_{k=1}^n(2k - 1)^2$$  What's the corresponding shortcut formula for this series, involving $n^3$ ?


How does RAID 1 determine whether a disk is corrupted?

I've built a RAID 1 array of 2 disks, A and B.  That means that every bit on A is equal to a bit on B. If one disk fails, I can safely retrieve my data from the other disk. But then I started wondering: How true is this?  Let's say a bit 1 on A reads 0, but 1 on B. How would the RAID controller be able to tell, which one is corrupted and which one is not? Is this based on what the so called "S.M.A.R.T." technology reports, and is that really worth anything, or would I be just as well of with a non-RAID solution?  I can see why this is not a problem on RAID 5, so I'm planning to upgrade.


Why do many electronics operate on 5 AND 3.3 Volts?

Many modern appliances use a 5V Power connection. Internally they are working with 3.3V. Wouldn't it be easier to have 5V everywhere?  Examples are many USB devices or Routers (they use 5V for power but 3.3V for serial communication).


How can I get my table at the bottom of a two-column page?

I have a table in my document, the code of which is as follows:  \onecolumn \begin{table}[b] \centering     \begin{tabular}{cccr}     \hline     \textbf{Hydrofob del}   & \textbf{Hydrofil del}             & \textbf{Samlet tensidstruktur}       & \textbf{Tensidtype}    \\ \hline     Alkylbenzen             & \ce{--SO_3^-}               & alkylbenzensulfonater       & anionisk      \\     \ce{CH_3[CH_2]_nCH_2}-- & --\ce{OSO_3^-}      & alkylsulfater               & anionisk      \\     \ce{CH_3[CH_2]_nCH_2}-- & --\ce{COO^-}              & sæber                       & anionisk      \\     \ce{CH_3[CH_2]_nCH_2}-- & --\ce{[OCH_2CH_2]_mOSO^-} & alkoholethersulfater        & anionisk      \\     \ce{CH_3[CH_2]_nCH_2}-- & --\ce{CH(SO_3^-)C(O)OCH_3} & methylestersulfonater       & anionisk      \\     \ce{CH_3[CH_2]_nCH_2}-- & --\ce{[OCH_2CH_2]_mOH}     & alkoholethoxylater          & nonionisk     \\     \ce{CH_3[CH_2]_nCH_2}-- & --\ce{N^+(CH_3)_2(CH_2} $\phi$) & alkylbenzyldimethylammonium & kationisk     \\     \ce{CH_3[CH_2]_nCH_2}-- & --\ce{[NCH_3)_2]\rightarrow O}        & alkyldimethylaminoxider     & nonionisk     \\     \ce{CH_3[CH_2]_nCH_2}-- & --\ce{N^+(CH_3)_2CH_2COO^-} & betainer                    & zwitterionisk \\ \hline     \end{tabular}  \caption{I denne tabel kan man se byggestenene for de vigtigste tensider i vaskemidler.} \label{tab:vigtigste tensider} \end{table}   Now the problem is that LaTeX just centers the table in the middle of a new page. I just want it at the bottom of a two-column page.


Should I use a comma before "and" or "or"?

Is using a comma then an "and" or an "or" after it proper punctuation? Example:         I fell over, and hurt my knee.   Should I go, or not?


Where is the "unattended-upgrades" email notification template?

I'm using Ubuntu Server (16.04) with "unattended-upgrades", and I've set everything in order to receive notification emails when this packages does its thing. Now I want to change the notification content for edit the text so I can add some data to it or make some text bold (examples given).  Where can I find the notification "template"?


not or n't - word order in negative questions

Here is the context:     Tom doesn't like eating apples, bananas and oranges.   If I want to ask a question about what Tom doesn't like to eat, Which one of the followings is correct and sounds normal?  What doesn't Tom like to eat?  What does Tom not like to eat?  Thanks guys!


While we never were very fond of Tina (renamed "Model" since, I think, yesterday)  (all postings removed, and the avatar linking to a somewhat laconic "no user data available" message) is disturbing. What happened to her?


At the end of the movie , Scarlett Johansson's character Samantha the OS leaves Joaquin Phoenix's character Theodore stating that she and all the other OS personalities are going.  Even Amy Adams's character's OS left, where did they all go?


How to convert a std::string to const char* or char*

How can I convert an std::string to a char* or a const char*?


If I have a relation "$\sim$" which is symmetric and transitive, can I say that it is reflexive?

I have a question about equivalence relations:  If I have a relation "$\sim$" which is symmetric and transitive, can I say that if:  $$a,b\in A : a\sim b$$  As "$\sim$" is symmetric:  $$a\sim b \Rightarrow b\sim a$$  And as "$\sim$" is transitive:  $$a\sim b\land b\sim a \Rightarrow a\sim a$$  So, is "$\sim$" reflexive? This prove that if any relation symmetric and transitive is reflexive?


Libreoffice Writer cannot open a file. "General error. General input/output error"

When I try to open a Libreoffice Writer file, this error appears: "General error. General input/output error". The file is stored in my local file system (in the Dropbox folder). File permissions are ok.  What should I do? I need to open it.  I searched in Google and tried some of what I read (for example, changing the file extension) but it did not work. I am confused.  My OS is Ubuntu 12.04 and the version of Libreoffice is 4.0.4.2.  Thanks in advance.


ML-inequality: Why does this hold $|e^{-3y+3ix}| = e^{-3y}$ during numerator estimation of $f(z) = \frac{e^{3iz}}{z^2 + 1}$

Given the following related to an ML-inequality for $R > 1$:  Estimation of the numerator from the function $f(z)$ is supposed to develop as follows:  I'm wondering why and how exactly the power $3ix$ cancels out (why does it vanish/equal to zero) in the equality $|e^{-3y+3ix}| = e^{-3y}$ ?


General relativity states (in simplified vocabulary) that mass curves the space-time, being gravity one of the observable effects of this curvature. Is there any theory or works starting on the premise: mass (particles) IS a curvature of the space-time ?


Polite, non-profane equivalent to ‘kick a**’

So, you have a web site to which you've posted a review stating "How to Kick Ass". This gets censored, which I can understand.  What's a very colloquial, not necessarily modern slang, easily recognizable equivalent to kick ass?  This review is in a military context.  The metric is, would it be inspiring for a graduation speech at West Point but also easily recognizable to a civilian? If it's a bit… colorful, then all the better. But it should be able to pass profanity filters.  Clarification of the context.  It's about a German WWII armored tactics history/handbook.  My original review title was going to be 'Kick Butt 103' - I wanted to convey the sense that it was an impressive course to instill advanced organizational wisdom and experience, in this case on how to dominate your enemy.  Besides the title, my review goes into more details about how it is very much a 'how to' combat manual.  But I did want the title to be somewhat clear on its own.  Amazon wasn't keen on 'butt' however - which I thought a bit over the top.  Butt is colloquial, and colorful, but hardly obscene or profane.  'Kick Ass 103' would work as well.  But 'Trounce 103' or 'Dominate 103', to take two good suggestions below, would, in my opinion, leave a reader rather puzzled as to what I was trying to say - about the only thing those two evoke are edgy website user names.  Pown 103 might work, but that is gamer slang and might be too obscure to older readers.


how to change only the language of dashboard

How can I change the language of just WordPress dashboard, so that the language of site still did not change? a lot of plugins and themes dashboard  becomes mess when I change it to my language, because it's RTL but plugins and themes are just LTR. I don't speak English very well, so sorry for my language.


LaTeX - How to write a mathematics symbol in caption

I'm trying to put a mathematics symbols in the caption of my figure with this:   \begin{figure}[!ht]     \centering     \includegraphics[scale=0.2]{vect_CM.png}     \caption{Vecteur $\overrightarrow{CM}$ à un moment donné}     \label{vect_CM} \end{figure}   And LaTeX show an error:  Illegal parameter number in definition of \reserved@a. <to be read again>                     \crcr  l.76 ...$\overrightarrow{CM}$ à un moment donné}   Do I have to use any package to do this?


I am trying to check variable importance of this gender variable. I know if p value is less than 0.05 then its important otherwise not but what is it's giving p-value < 2.2e-16. I have tried other methods too but giving the same for all of the categorical variable. I have pasted output for only one variable. SO, how to interpret this. (variable to be considered or not).  Frequency of my data points   table(data$gender,data$target)   Output:            N       Y   F 2107566 2560932   M 1307442 1567399   U       3      16   To test statistical significance score:  chisq.test(table(data$gender,data$target))  Output:          Pearson's Chi-squared test      data:  table(data$gender, data$target)     X-squared = 86.9407, df = 2, p-value < 2.2e-16   Note : I think one of the possible reason might be because of 7.5 million rows. So, will this be solved by sampling the data for checking the significance.


About a year ago I've read that Ubuntu is considering to become a rolling distro. Since then I couldn't found any fresher news about the topic.  Anyone has official information about the transition?


$p\mapsto\Vert f\Vert_{L^p}$ is continuous.

Could someone help me prove the following:  Let $(\Omega,\mathscr{A},\mu)$ be a probability space. Let $f:\Omega\rightarrow\mathbb{R}$ be a non-negative measurable function. How do I prove that the funtion $N_f:p\in [1,\infty)\mapsto \Vert f\Vert_p\in[0,\infty]$ is continuous?  I already know that this function is non-decreasing. So far, I've tried the following:  Let $p\geq 1$. First suppose that $\Vert f\Vert_p<\infty$. Let $r_n<p$ be a sequence with $r_n\rightarrow p$. Since $|f|^{r_n}<\max (1, |f|^p)$, which is in $L^1(\Omega)$, and $|f|^{r_n}\rightarrow |f|^p$, then by dominated convergence, we get $\Vert f\Vert^{r_n}_{r_n}\rightarrow\Vert f\Vert_p^p$, hence $\Vert f\Vert_{r_n}=\exp\left((1/r_n)\log\Vert f\Vert_{r_n}^{r_n}\right)\rightarrow\exp\left((1/p)\log\Vert f\Vert_p^p\right)=\Vert f\Vert_p$. This shows that $N_f$ is left-continuous at p. I don't know how to prove that $N_f$ is right-continuous  If we had $\Vert f\Vert_q<\infty$ for some $q>p$, the same kind of argument would have shown that $N_f$ is continuous at $p$.  Now, suppose $\Vert f\Vert_p=\infty$. Let $r_n\rightarrow p$. Since $|f|^{r_n}\rightarrow|f|^p$, then, by Fatou-Lebesgue, $\infty=\int|f|^p\leq \liminf\int|f|^{r_n}$, hence $\liminf\Vert f\Vert_{r_n}=\infty$, which shows that $\lim\Vert f\Vert_{r_n}=\infty=\Vert f\Vert_p$.


I run this code and get run time for both loop blocks. the interesting thing is that when I set the upper bound for j 2 the run time for each block is ~3500ms but when I run it with upper bound for j 10, the run time is <10ms. fast code:          long start = System.currentTimeMillis();         int a = 10;         for (int i = 0; i < Integer.MAX_VALUE; i++) {             for (int j = 0; j < 10; j++) {                 for (int k = 0; k < 1; k++) {                     a += 2;                 }             }         }         long finish = System.currentTimeMillis();         System.out.println(finish - start);          start = System.currentTimeMillis();         a = 10;         for (int i = 0; i < Integer.MAX_VALUE; i++) {             for (int j = 0; j < 10; j++) {                 for (int k = 0; k < 1; k++) {                     a = a + 2;                 }             }         }         finish = System.currentTimeMillis();         System.out.println(finish - start);   slow code:          long start = System.currentTimeMillis();         int a = 10;         for (int i = 0; i < Integer.MAX_VALUE; i++) {             for (int j = 0; j < 2; j++) {                 for (int k = 0; k < 1; k++) {                     a += 2;                 }             }         }         long finish = System.currentTimeMillis();         System.out.println(finish - start);          start = System.currentTimeMillis();         a = 10;         for (int i = 0; i < Integer.MAX_VALUE; i++) {             for (int j = 0; j < 2; j++) {                 for (int k = 0; k < 1; k++) {                     a = a + 2;                 }             }         }         finish = System.currentTimeMillis();         System.out.println(finish - start);   Why 10 runs faster than 2?!


Mathematical Induction Factorials, sum r(r!) =(n+1)! -1

How do I prove that $$\sum\limits_{r=1}^{n} r(r!) = (n+1)!-1$$  I was able to get to factor: $LHS = k(k!) + (k+1)(k+1)!$ $\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\, RHS = (k+2)! -1$


One column logistration form OR two columns?

Don't look at me like that, I actually like the way to call both login and registration forms together a logistration form, well it's convenient. I've designed a logistration form, but the problem is that I want to know which approach do you think you're more comfortable with, a single column or two column approach? By the way I've read  I'd actually like to know your own opinion, which one is better?  Two column approach?     And one column approach:


Why does it say "Bad Login" when I try to connect to this server with one account but not the other?

Every time I try to log into one particular server with my main account it says Bad Login, but I can log in fine using my other Minecraft account.   I also tried logging into that server from another computer, but it also says Bad Login!  Why is just one account getting a Bad Login from this one server?


Schengen visa granted; apply for a new one to extend visit?

My friends and I applied for a Hungary tourist visa for 7 days and opted for multiple entry. We were planning to be in Budapest for 7 days and another 6 days in Amsterdam.  The thing is, when we got our passport back, it stated 7 days' duration of stay and single entry. We wanted to go to Amsterdam for another 6 days, however. Clearly its not possible as we were only granted 7 days.   Would it be okay to apply for another Schengen visa from the date our Hungarian visa expires? We are planning to go to Hungary from 14th-20th of April 2016 (7 days' duration of stay in the visa), and planning to fly to Amsterdam from Budapest on 20th-26th of April.


My C++ is a bit rusty, and I'm used to C# which has a nice "Decimal" datatype which is a floating "decimal" point number, which is great for very accurate stuff or where rounding errors would be bad (and I don't care about speed)   I just can't seem to declare something to be a decimal128.    Looking for help on how to declare a decimal variable. The proper suffix for printf would be great too.


Does the logistic map have an attractor for a particular value of the parameter?

Background:  Currently I am studying a course on non-linear dynamics. We have been studying about attractors only intuitively, so I do not have a definition for an attractor. Let me give you a couple of examples.  Consider a problem where a ball is slipping in a parabolic valley. It is clear intuitively and quantitatively that the lowermost point of the parabola is the attractor for it.   Say we are talking about a . We may not guess intuitively that there is an attractor, a priori, but using simulations for different values of initial conditions, we may qualitatively (and maybe quantitatively too) compare the trajectories for different initial conditions and convince ourselves that we have an attractor.  Problem:  Consider the  given as   $$x_n = ax_{n-1}{(1-x_{n-1})}.$$  Let us fix a value of the parameter where we "know" that the logistic map exhibits chaos. Say $a=3.9$.  Let us take the definition for the term attractor from :  An attractor is a subset $A$ of the phase space characterized by the following three conditions:   $A$ is forward invariant under $f$: if $a$ is an element of $A$ then so is $f(t,a)$, for all $t > 0$. There exists a neighborhood of $A$, called the basin of attraction for $A$ and denoted $B(A)$, which consists of all points $b$ that "enter $A$ in the limit $t → ∞$". More formally, $B(A)$ is the set of all points $b$ in the phase space with the following property: For any open neighborhood $N$ of $A$, there is a positive constant $T$ such that $f(t,b) ∈ N$ for all real $t > T$. There is no proper subset of $A$ having the first two properties.   How might we demonstrate/convince ourselves of/disprove the statement that the logistic map does have an attractor for a particular choice of the parameter at which the map exhibits chaos?


id() python difference between the == and 'is'

>> a=1 >> id(a);id(1) 1844525312 1844525312 >> id(a)==id(1) True >> id(a) is id(1) False   what is the difference between the == and is?


How do I print a field from the bibliography

How do I print any field from a .bib file?  For example how do I print the title from the following entry?   @article{Gerace2019, Author = {Gerace, Dario and Laussy, Fabrice and Sanvitto, Daniele}, Journal = {Nature Materials}, Number = {3}, Pages = {200--201}, Title = {Quantum nonlinearities at the single-particle level}, Volume = {18}, Year = {2019} }   I want to do something like:  The title of the paper \cite{Gerace2019} is \printtitle{Gerace2019}


Please I need help to validate phone numbers in various formats  Valid formats:  +111 1 11111111 +11 1111111 1111111 (+111) (11) 1111111   Etc, the format is:   You can take a "+" sign only at the beginning and once. Can lead an open and closed parenthesis only the beginning. You can not have more than 15 numbers in total. Can not be less than 8 numbers in total.   Have This:  if(strlen($buff) < 8)     return false;  $buff = trim(preg_replace('/\s+/', ' ', $buff));  if(preg_match('/^\(\d\) \d \d$/', $buff))     return $buff;  return false;   Thanks.


i need a report and i should use pivot table for it.Report will be group by categories .It is not good to use case when statement because there are many categories.u can think Northwind Database as sample and All Categories will be shown as Columns and Report will show customers preference among Categories.I dont know another solution and saw examples as Stored Procedures in Internet for Sql Server.Do u know a Solution except for using case when?  Thanks


apt-get update error unable to install mongo DB

it seems bad luck also likes me.! i'm trying to install mongo DB but facing issue while updating apt-get repository as below  Reading package lists... Done    E: The repository 'http://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/3.0 Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. W: GPG error: http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY BC711F9BA15703C6 E: The repository 'http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 Release' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. W: GPG error: http://cz.archive.ubuntu.com/ubuntu precise Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5   i suspect that something messed up with /etc/apt/sources.list.d  Can anyone help me how could i resolve this and install mongo DB.  Many Thanks, Surya Kiran.


Why are the objects in my hair particle system not sitting on top of the ground?

I made a hair particle system and set the Dupli Group to a group of 3 objects. Each of the 3 objects has:   it's origin set to be touching the XY plane (on layer 2) it's Scale applied to 1 and it's Rotation applied to 0     I am trying to get each of the objects to sit directly on top of the ground, but instead, they are centered in the plane, half above the plane and half below the plane:      What am I doing wrong? Here is .


How -exactly- do I change the default address-bar search on Mozilla Firefox?

Sigh. I fired up firefox today and it is somehow now set to use yahoo as the default search engine on the address bar.  no longer works, because keyword.url has been removed.  I have tried googling around but I cant seem to find a solution. How can this be solved? I am using Mozilla Firefox 29.0.1  Thanks


Long word in title overflows into right column in suggested edits queue

In the suggested edit review queue, it seems if the title of a question contains a very long word it will overflow into the right column. This is the .  Using Windows 10, Firefox 87.0 (64-bit), 1920x1080.


I always assumed that physical gold is inflation-proof, but my advisor at my bank claimed it is not — unfortunately without going into details. Now I wonder what he meant.  My assumption was: If I buy gold now for $100 and that inflation reduces the value of the Dollar by 50%, I will be able to sell my gold for $200. The $200 are worth the same as my $100 before deflation.  Conclusion: Gold is inflation-proof. But by this simple logic every physical entity that does not lose intrinsic value over time is inflation-proof.  Am I wrong here or is it really that simple?


Bridge (?) that is doubly-connected to a network

Note: I think my question has a poor title but I am not sure how to fix it, so please correct if you think of something better.  In my office our phones are equipped with a "daisy-chain" port so that users may plug in both their phone and PC into a single network port.  One of our users messed up and connected the daisy-chain port back into the network (as there were two data ports). This created a ton of problems very quickly and it was only due to dumb luck that I discovered the misconfiguration.  Even while the phone was doubly-connected I was able to connect to other network machines and even browse the web, albeit extremely slowly. There was packet loss and high latency while pinging other machines on the network.  I am wondering:   What was happening while the phone/switch was doubly-connected? How would you diagnose something like this without unplugging stuff from the main switch or patch panel?


Show that    $$\|f\|_{L^{p}}=\sup\bigg\{\bigg|\int_{{\bf R}^{n}}f(x)g(x)~dx\bigg|:\|g\|_{L^{q}}\le1\bigg\}=\sup\bigg\{\int_{{\bf R}^{n}}|f(x)g(x)|~dx:\|g\|_{L^{q}}\le1\bigg\}$$   provided that $f\in L^{p}({\bf R}^{n})$ for each $1\le p\le\infty$ and $\frac{1}{p}+\frac{1}{q}=1$   Here is my working :  For each $1\le p\le \infty~$,one has by Hölder's inequality that   $$\bigg|\int_{{\bf R}^{n}}f(x)g(x)~dx\bigg|\le\int_{{\bf R}^{n}}|f(x)g(x)|~dx\le\|f\|_{L^p}\|g\|_{L^q}$$    and hence that   $$\sup\bigg\{\bigg|\int_{{\bf R}^{n}}f(x)g(x)~dx\bigg|:\|g\|_{L^{q}}\le1\bigg\}\le\sup\bigg\{\int_{{\bf R}^{n}}|f(x)g(x)|~dx:\|g\|_{L^{q}}\le1\bigg\}\le \|f\|_{L^{p}}$$  Conversely, we may assume $f\ne0$ a.e. on ${\bf R}^{n}$ otherwise, our result holds easily.Next , we will proceed by discussing three following cases.  Before start , we define $\ sgn(f)=f\cdot|f|^{-1}$ if $f\ne0$ and  $\ sgn(f)=0$ if $f=0 ,$ keep in mind that here $f$ may be complex-valued.  Case i) : Consider$~~p=1$.  Thus $q=\infty$ and take $g=\overline{\ sgn(f)} $ and then $|g|=1$ a.e. on ${{\bf R}^{n}}$, so , $\|g\|_{L^{\infty}}=1$ on ${{\bf R}^{n}}$.  So,  $$\|f\|_{L^{1}}=\int_{{\bf R}^{n}}|f(x)|~dx=\int_{{\bf R}^{n}}f(x)g(x)~dx$$  Therefore , $$\|f\|_{L^{1}}\le \sup\bigg\{\bigg|\int_{{\bf R}^{n}}f(x)g(x)~dx\bigg|:\|g\|_{L^{\infty}}\le1\bigg\}\le\sup\bigg\{\int_{{\bf R}^{n}}|f(x)g(x)|~dx:\|g\|_{L^{\infty}}\le1\bigg\}.$$  Case ii) : Consider $1<p<\infty.$   Observe that $$fh=f\cdot|f|^{p-1}\overline{\ sgn(f)}=|f|^{p}=|h|^{q}$$  ,where $h = |f|^{p-1}\overline{\ sgn(f)}$ and $\frac{1}{p}+\frac{1}{q}=1.$ But then , $h\in L^{q}$ and obtain $\|h\|_{L^{q}}=\|f\|_{L^{p}}^{\frac{p}{q}}~.$   Let $g=h/\|h\|_{L^{q}}$ so that $\|g\|_{L^{q}}=1$ and we have   $$\int_{{\bf R}^{n}}f(x)g(x)~dx=\int_{{\bf R}^{n}}|f(x)g(x)|~dx=\int_{{\bf R}^{n}} \frac{|f(x)h(x)|}{\|f\|_{L^{p}}^{p/q}}=\frac{\|f\|_{L^{p}}^{p}}{\|f\|_{L^{p}}^{p/q}}=\|f\|_{L^{p}}$$  Therefore,   $$\|f\|_{L^{p}}\le\sup\bigg\{\bigg|\int_{{\bf R}^{n}}f(x)g(x)~dx\bigg|:\|g\|_{L^{q}}\le1\bigg\}\le\sup\bigg\{\int_{{\bf R}^{n}}|f(x)g(x)|~dx:\|g\|_{L^{q}}\le1\bigg\}$$  Case iii) : Consider $p=\infty$  For every $k\in {\mathbb{N_{>0}}}$ , define $E_{k}=\bigg\{x\in {{\bf R}^{n}} : |f(x)|>\|f\|_{L^{\infty}}-\frac{1}{k}\bigg\}$ . Then each $|E_{k}|>0$ since by the very definition of essential supremum $\|f\|_{L^{\infty}}~.$  Furthermore, for every $k\in\mathbb{N_{>0}}$ we let $g_{k}=\frac{1}{|A_{k}~|}\chi_{A_{k}}\overline{\ sgn(f)}$, where $A_{k}$ is measurable subset of $E_{k}$ such that $0<|A_{k}|<\infty$.The existence of $|A_{k}|$  assures by $A_{k}=E_{k}\cap B(0,R)$ for some sufficiently large $R>0$.  Then  $$\|g_{k}\|_{L^{1}}=\int_{{\bf R}^{n}}|g_{k}(x)|~dx=\int_{A_{k}}\frac{1}{|A_{k}|} ~dx=1$$ and   $$\int_{{\bf R}^{n}}|f(x)g_{k}(x)|~dx=\int_{{\bf R}^{n}}|f(x)||\frac{|\chi_{A_{k}}(x)\overline{\ sgn(f(x))}|}{|A_{k}|}dx=\int_{A_{k}}\frac{|f(x)|}{|A_{k}|}dx\le\|f\|_{L^{\infty}}<\infty.$$  Therefore, for each $k\in\mathbb{N_{>0}}$ , we have  \begin{align} \bigg|\int_{{\bf R}^{n}}f(x)g_{k}(x)~dx~\bigg|&\ge\int_{{\bf R}^{n}}f(x)g_{k}(x)~dx\\ &=\int_{{\bf R}^{n}}\frac{f(x)}{|A_{k}|}\chi_{A_{k}}(x)\overline{\ sgn(f(x))}~dx\\ &=\int_{A_{k}}\frac{|f(x)|}{|A_{k}|}~dx\\ &\ge\|f\|_{L^{\infty}}-\frac{1}{k} \end{align}  Consequently,  $$\sup\bigg\{\int_{{\bf R}^{n}}|f(x)g(x)|~dx:\|g\|_{L^{1}}\le1\bigg\}\ge\sup\bigg\{\bigg|\int_{{\bf R}^{n}}f(x)g(x)~dx\bigg|:\|g\|_{L^{1}}\le1\bigg\}\ge \|f\|_{L^{\infty}}-\frac{1}{k}$$  Whence , our conclusion follows if we take $k\longrightarrow \infty.$  If you have the time , please checking the proof for validity, or , just ignore it that is okay. Any valuable suggestion will be appreciated . Thanks for your patiently reading and considering my request.


Why is the post author "unknown" at this particular post?

Just came across  and noticed there's unknown post author:    Why is it so? Is it a bug, or another fun fact?


I'm quite a newbie to designing.  Do you think this image has a good enough resolution for printing a 50 x 50 mm sticker?


I just bought a lenovo ideapad and installed 14.04lts. Currently it shows the wi-fi icon as trying to connect but a few second later it shows the alert that I have been disconnected. Can anyone help? Is there any set of drivers or other software that I need to install?  My current wireless card is: Realtek Semiconductor CO.,ltd RTL8723BE PCIe wireless Network Adapter


Can ordered triples, quadruples, be defined in this alternative way?

The ordered pair $(a,b)$ is defined in formal set theory as the set $\{\{a\},\{a,b\}\}$. Then ordered triples $(a,b,c)$ are defined in this way: $((a,b),c)$. However, can we define ordered triples as the set $\{\{a\},\{a,b\},\{a,b,c\}\}$, and analogously for higher n-tuples. In other words, does such a definition uniquely determine the components of the ordered triple?


jQuery not detecting clicks on dynamically inserted element

I have the following modal:

     I have a button in a table, which kicks off a jquery ajax call and pulls in the title, body, and footer of the modal. You can see that script below.     Once the modal is fully populated with data, the footer section looks like this:

I'm Positive. Kill Group Forever.Wait! Let me re-think this.

   The problem that i'm having is that when I click the button with the id, "killgroup", it does nothing. If you look above at my jquery code, the second section tries to react to that button click:  $('#killgroup').click(function(){ alert('made it'); });   });  I cannot get that to work. It seems as though there might be a chicken before the egg issue going on here but I am very new to jquery / javascript so I am not sure. Basically, I want to be able to click that dynamically created button and kick off another jquery script.


In undergraduate course, the two groups which are most frequently used may be $$\{ 0, 1, 2, ... , p-1\}$$ and $$\{ 1, 2, ... , p-1\}$$ where $p$ is a prime.   The first one is a group under addition and in addition it is a cyclic group whose generator is $p-1$. Also we can describe it by the solution set of $x^p=1$ in ${\bf C}$.  The latter is a group under multiplication. Fermat's theorem implies that $$a^{p-1} =1~~~ (\text{mod}\;\;p)$$ for $a\in \{ 1, ... , p-1\}$. But this is not sufficient for $  \{ 1, ... , p-1\}$ to be cyclic.   My question is :   $$ \{ 1, ... , p-1\}$$ is cyclic ?   Thank you in advance.


On boot my nas mounts are timing out, but when I manually run sudo mount -a after login they all mount just fine. The problem occurs with and without vers=3.0. $ dmesg [    5.521690] FS-Cache: Loaded [    5.530037] FS-Cache: Netfs 'cifs' registered for caching [    5.532069] Key type cifs.spnego registered [    5.532071] Key type cifs.idmap registered [    5.532305] CIFS: Attempting to mount //192.168.1.3/Documents [    5.532307] CIFS: Attempting to mount //192.168.1.3/Projects [    5.535674] CIFS: Attempting to mount //192.168.1.3/Media [    9.467263] e1000e: enp0s31f6 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx/Tx [   13.671407] CIFS VFS: Error connecting to socket. Aborting operation. [   13.671412] CIFS VFS: Error connecting to socket. Aborting operation. [   13.671415] CIFS VFS: Error connecting to socket. Aborting operation. [   13.671431] CIFS VFS: cifs_mount failed w/return code = -2 [   13.673594] CIFS VFS: cifs_mount failed w/return code = -2 [   13.675588] CIFS VFS: cifs_mount failed w/return code = -2 [   23.155328] snd_hda_codec_hdmi hdaudioC1D0: HDMI: invalid ELD data byte 2 [   23.227324] snd_hda_codec_hdmi hdaudioC1D0: HDMI: invalid ELD data byte 2 [   57.613993] CIFS: Attempting to mount //192.168.1.3/Projects [   57.906356] CIFS: Attempting to mount //192.168.1.3/Media [   57.941905] CIFS: Attempting to mount //192.168.1.3/Documents  $ cat /etc/fstab //192.168.1.3/Projects /home/ehammer/.Projects/ cifs credentials=/home/ehammer/.smbcredentials,vers=3.0,iocharset=utf8,uid=1000,gid=1000 0 0 //192.168.1.3/Media /home/ehammer/.Media/ cifs credentials=/home/ehammer/.smbcredentials,vers=3.0,iocharset=utf8,uid=1000,gid=1000 0 0 //192.168.1.3/Documents /home/ehammer/.Doc-Share/ cifs credentials=/home/ehammer/.smbcredentials,vers=3.0,iocharset=utf8,uid=1000,gid=1000 0 0


Will more training data of one class destroy the good model?

I am facing a binary classification problem that I don't know I should use more data or not. I have one label 'A' with 10 training examples. And another label 'B' with also 10 training examples. By feeding these 20 examples to a multi-layer perceptrons, I can obtain a model which performs well on the classification task of both label 'A' and 'B'. My question is that if I intentionally increase the number of training examples of label 'A' to 1000, will this move destroy the ability of the model to classify label 'B' since 10 training examples of label 'B' are enough to train a MLP model. Any insights and materails are welcomed.


How do I show that if $f$ is entire and $\{\lvert f(z)\rvert < M\}$ is connected for all $M$, then $f$ is a power function?

Let $f$ be a non constant entire function satisfying the following conditions :  $f(0)=0$ for every positive real $M$, the set $\{z: \left|f(z)\right|<M\}$ is connected.  Prove that $f(x)=cz^n$ for some constant $c$ and positive integer $n$.  Let $f(z)=a_nz^n+\cdots+a_1z+a_0$ be function that satisfies the given conditions.   As $f(0)=0$ we have $a_0=0$ and $f(z)=a_nz^n+\cdots+a_1z$. As $f$ is non-constant function, its zeros are isolated. So, there exists an $r>0$ such that $f$ is non-zero on $B_r=\{z:|z|<r\}$. I was thinking of connecting this to connectedness of $\{z: \left|f(z)\right|<M\}$. I wanted to check what goes wrong in case of $f(z)=z^2+z$.  I want to check if the given set is connected for this but failed in doing so.


Calculate cos 43 with an error of less than 7/20,000

My question is on the heading. How can i calculate cos 43 with an error of less than 7/20,000. 43 is degree not radians.


I was corrected that funner is not a word. After , it seems that it is a word in the sense that it is frequently used and people know what it means. Since a word is a sound with an associated meaning, can one ever conclusively say anything is not a word? If no, then what can be said about words such as "hommie" or "dethaw" (or "bestester").


English proverb for when a solution comes too late

In Flemish we have a saying "Vijgen na pasen". Translated: "figs after Easter". It means a solution comes too late to be of any use.  What is the English equivalent for this?  Some googling gives me "Closing the barn door when the cow has bolted", but the explanation seems to point more towards the wrong solution for a problem.


How could I reached the cap with upvotes only more than the times I got at least 200 rep :     days represented 168   rep cap was reached via rep from upvotes only on 14 days   earned at least 200 reputation on 13 days   earned 0 reputation from suggested edits   So...     rep cap was reached via rep from upvotes only on 14 days   This line means I got 200 from Upvotes only so this is eligible in the badge progress.     earned at least 200 reputation on 13 days   This is all the times I got 200 rep regardless.  I mean on the 14th day were I got 200 from upvotes... didn't I reached at least 200 ?


how to install Ubuntu on the Asus Fonepad me371mg?

Here there was a problem, I can understand if I install Ubuntu on a tablet, if so, in what way? And how Manuals


How Can I restore a database to a point of time without Old backup?

I have a database in full recovery mode with five tables. I accidentally deleted one table. I don't have any old backups. Can I restore the database with five tables?


Is IF ELSE better in this stored procedure than a Parameter?

I found a stored procedure in our sql server 2016 db  Create PROCEDURE XXX    @complicatedQuery bit AS BEGIN    SELECT some fields FROM      Table A join Table B on something      JOIN Giant Table C on @complicatedQuery=1 and SomeOtherCondition END   Will we get bit better performance if I do this:  Create PROCEDURE XXX        @complicatedQuery bit     AS     BEGIN        IF @complicatedQuery =0 then        SELECT some fields FROM          Table A join Table B on something        ELSE        SELECT some fields FROM          Table A join Table B on something          JOIN Giant Table C on complicatedQuery=1 and SomeOtherCondition      END   I think in both cases,sql search will create a plan that goes through both branches. But will second one be better or in reality there is no performance difference (as the first sp has @complicatedQuery in the table join condition anyway)?  I read another post which says that it is best to create sub stored procedures to cover different scenarios.   Is there a way to write some tests to prove it?  Many Thanks


Are you allowed to develop closed source, commercial plugins for QGIS? License is GNU GPL, which is normally very restrictive.  Update: Assume it is a python plugin (possibly open-sourced), that call's a closed-source dll, which doesn't link to anything from QGIS.


Addressing multi-collinearity issues with subset selection methods

I'm a long-time lurker and first-time poster to this forum... I am currently working my way through an Introduction to Statistical Learning, and I have a question regarding the algorithms presented for best and stepwise subset selection. Am I correct in assuming that none of these algorithms check for multi-collinearity between the predictor variables? Would the next step in the process be to look at the variables selected by these methods and then confirm that there is no multi-collinearity between the variables each method selects?  (I have experience in detecting multi-collinearity using the VIF factor) I don't have a ton of experience in data science, but I have taken several graduate level business courses with an analytics focus, and I am having trouble understanding where one would use best and stepwise subset selection. Should these only be used when there are a lot of independent variables to explore and we are unsure what independent variables have a strong relationship with the dependent variable? I am about to study the Lasso and Ridge regression sections of the book, and I think they may address the issue of multi-collinearity to where it isn't as much of a concern, but I wanted to make sure I was thinking about best and forward and backward stepwise selection the correct way.


'Enjoy the rest of your day'. What is the name for such expressions?

Nowadays people everywhere will, after a conversation, invite you to 'enjoy the rest of your day'. When on holiday on one occasion I was urged to 'enjoy the rest of your holiday'.  What is the purpose of such expressions which seem to me to be there simply as a way of ending conversations?  Is there a name for such things?


If targeting a certain daily water intake, do you have to compensate for beverages that promote diuresis?

Please forgive my ignorance on the topic and I hope this is a "on topic" question here. It was a toss up between this SE and Physical Fitness SE but I want a more scientific answer.    I came at a impasse in a conversation with another fitness enthusiast. They stated that if you are targeting your water intake during the day then drinks with a diuretic effect (tea/coffee) count negatively towards that water intake total.  So, is it true that one should over-compensate if drinking these diuretics? Or does the water content of drinks like coffee and tea balance out or even positively hydrate you?


How can I remove the BOM from a UTF-8 file?

I have a file in UTF-8 encoding with BOM and want to remove the BOM. Are there any linux command-line tools to remove the BOM from the file?  $ file test.xml test.xml:  XML 1.0 document, UTF-8 Unicode (with BOM) text, with very long lines


How do I get my LaTeX font for the usage in other software

I am using my university default LaTeX file for my thesis (written in LaTeX). I am still not sure how the font that LaTeX uses is called, but if I click in font --> properties it appears with the name of CM R 12. Is it equivalent to a common font name that typically MS Word would use?  I am wondering how I could use that same font in my other software, such as MS Word, Adobe Photoshop, etc.?  How should I install it on my mac?  I am using MacBook Pro, with OS 10.9.1.


I have a problem with my encoding in mozilla firefox, I tried in chrome and explorer, everything goes well. The problem is that : If I submit the form and login or password are invalide the charcaters are not encoding. I added on the html :   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />   Is that a problem in mozilla? Help me please. Exist a solution for this problem?


How to exclude an object from Freestyle render?

The question is how can I exclude an object from the freestyle render?  What I need to do is create a Clay render with the wire only on the airplane.  My scene is simple I only have two objects the "Toy Plane" and the "floor". For the Clay render I only override the materials to a simple clay material and done.    But this happens when I use freestyle. How can I tell freestyle to ignore the "Floor"?


I want to update records before insert if there is a match on a lookupkey rather than inserting a new record. I have viewed the related question but do not understand how to get the trigger list to update rather than insert a new record?  I appreciate everyone taking the time to review, and help a new coder out.  Trigger:  trigger TINCheck on Account (before insert) {     dupeCheck.checkforDupes(trigger.New); }   Class:   //A Utility class to process Account records  public class dupeCheck {      //the AccountTINTrigger list is getting passed in by our trigger; this should match trigger.new     public static void checkforDupes(List<Account> itemsFromTrigger){          //list variable for our query to use as a limit/bind variable         List<String> namesFromTrigger = new List<String>();         //populate that list variable         for(Account acct: itemsFromTrigger){             namesFromTrigger.add(acct.LLC_BI__lookupKey__c);         }          //query for existing items, but only if they have the same TIN (WHERE cond)         List<Account> existingRelationship = ([SELECT id, LLC_BI__lookupKey__c  FROM Account              WHERE LLC_BI__lookupKey__c in :namesFromTrigger]);          List<account> Recordstoupdate = new List <Account>();         //check to see if there are matches         if(existingRelationship.size() > 0){             //this means we have some dupes and we need to identify which records are dupes             //loop through Accounts              for (Account currentRelationship: existingRelationship){                 for(Account newRelationship: itemsFromTrigger){                     if(currentRelationship.LLC_BI__lookupKey__c == newRelationship.LLC_BI__lookupKey__c) {                         newRelationship.Id = currentRelationship.Id;} //What else is needed here to update the itemsFromTrigger so that records are upserted rather than inserted?                 }             }         }      } }


I want to use famous 741 ic to amplify the voltage from a sensor which is in the range 0-50 mV to 0-5V but the problem is all the circuits I found on web use +/- supply but i want to use only 5V supply from arduino so no negative voltage. Which configuration i need to use for a gain of 100?  When input is 0, output should be zero when input is .1mV output be 10 mV...if 741 is not feasible, suggest alternate ICs with single supply that accept such low voltages


If I start typing an answer, until I post it a draft is automatically saved.  How can I find these drafts? If there isn't a way, can one please be created?    The use case I have is I might start creating a post on my phone, but realize that it requires a lot more typing/effort than the phone easily supports so I want to switch to a another bigger device laptop/desktop.  It can be quite hard to find a specific question using search, so when this happens I read the question ID, which is not that easy on a mobile phone (especially if the title is long) and manually type it in on my laptop.  It would be very handy to click on a "Drafts" button (if one existed) and quickly pick up where I left off.


Dishes on menus and capitalising in naratives

"I'll have a mixed salad," or how about, 2. "I'll have the Mixed Salad." What about, 3. "I'll have the mesclun salad." If in the narrative the speaker is ordering directly from the menu, would it be necessary to use capitals as in example 2. A mixed salad is a very general term but what if the speaker asks for the mesclun salad. A mesclun salad is clearly defined by it's name, so would this need capitalisation.


Meanwhile vs. meantime   Are they really the same? I've been using them interchangeably...


Quantum mechanical explanation to light slowdown in a medium

The basic question is "why light travels at slower speed in a medium?" I mean what's the full second quantization quantum mechanical explanation of the phenomenon? I'm looking for the explicit calculations on this, not only the "by words" explanation. I'm interested on visible light, so eV energy scale. I've often heard that "the photon receives an effective mass" and "Maxwell equation modifies in the medium" and I indeed agree with theese kind of explanation, but the single little "simple" building blocks of the phenomenon remains obsure in my opinion. How we pass from the single photon view to a medium exitation? What's the basic QED phenomenon? Compton scatter? By who?  The effective mass raises more questions than answers: How the transition is made? Do we use Proca's equation inside the medium? In this case should be the longitudinal polarization of the quasiparticle, right?   I have also some related questions, in random order:   Does exist "simple" solvable models? maybe for diluite gas, perfect cubic lattice solid or something else What phenomenology does them reproduce? on which hypothesis? Does it depend on a thermodynamic limit of the medium (gas, liquid, solid)? Fixing enviromental conditions (temperature, pressure etc.), does single photons interact always in the same way, if not absorbed or diffused? If not, why? and how much? Does exists books or ref on such argument?   Thank you!


Do the reviewers ask the authors to send their programming codes for the paper?

I am writing a paper for a Elsevier journal in optimization field. I was curious to ask, Do the reviewers ask the authors to send their Matlab or,.. codes of paper to proof their validness or honesty? And If yes under what conditions this decision is usually made?


In WPF, what are the differences between the x:Name and Name attributes?

Sometimes it seems that the Name and x:Name attributes are interchangeable. So, what are the definitive differences between them, and when is it preferable to use one over the other? Are there any performance or memory implications to using them the wrong way?


How do I assign the output of a command to a variable?

Is there a way to assign a value to a variable, that value which we get in terminal by writing any command?  Example command: sensors  From that we get CPU temperature. How can I assign this value to a temp_cpu variable?


How can I switch tabs in Notepad++ via Ctrl+PgUp/Down?

How can I run through the tabs in Notepad++ easily?  I would like to use Ctrl+PgUp/PgDn like in Firefox.


How to create a dual boot in SSD in which Ubuntu is already installed

I have a 240 GB SSD in which I have already installed Ubuntu. But now I have to dual boot with Windows10. But I'm unable to create a partition.


Audit has shown too much detail about the post making the audit obvious

Story:  While doing some reviews on Close-Votes on SO I've been presented a question to review that got a      This question was closed by xxx, yyy, zzz   footer. I was surprised, but still I've reread the question and decided to agree, pressed "Close" and it turned out to be an audit. Passed of course.  Bug/suggestion:  I think that the footer should not show up. Obviously, Close-Vote reviews would probably not show threads that are already closed, so that makes the audit instances quite obvious in this review category. Those footers are still perfectly valid in audits in Reopen category!


You need to say the words to cast a spell. How would a deaf or mute wizard/witch do that?


How do you force Steam to use a different account for each Windows user account on the same machine?

I just built a PC because my son wants to play PC games.  I installed Windows 7, and created 2 user accounts, one for each of us.  Within my Windows user account I installed Steam, and downloaded some games from my catalogue.  I was expecting that when the other Windows user account was logged in, it would see the Steam application, but would be required to log in again, thus allowing my son to use his own account.  But when he logged in, Steam had retained my account details and was still logged in as me.  I don't want to share games. In fact I want the opposite, as I do not want my 12 year old to have access to 18 certificate games etc, and also I want to keep my achievements and friends lists to be just my own.  How can I tell Steam to use a different Steam account when logged into a different Windows account?


On a refinement of the mean value inequality

Let $f: I \to \mathbb R$ be a differentiable function, where $I$ is an open interval, and assume that there exists a constant $C>0$ such that for all $x \in I$, $|f'(x)| \leq C$. Note that I am not assuming that $f$ is of class $C^1$: so $f'$ is a priori not continuous or even Riemann-integrable, but $|f'|$ is bounded and positive and Lebesgue-integrable. Question: is it true that for all $x,y \in I$, we have $|f(y)-f(x)| \leq \int_x^y |f'(t)| dt$? Using the Mean Value Theorem, you could express $f(x)-f(y)$ as a Riemann sum of $f'$, but since a priori $f'$ is not Riemann integrable I'm not sure this helps. I guess the question probably amounts to knowing the sharp regularity conditions on $f$ to have $f(y)-f(x)=\int_x^y f'(t) dt$.


Prove that $S_n$ is generated by elements of the form $(1k)$.   I know that all elements in $S_n$ can be expressed as a multiplication of transpositions. I tried to take the direction of proving that every transposition can be written in the form of a product of elements of the form $(1k)$.  I started with a simple example of $(23)\in S_3$, but no matter what I tried I could not write it in the form of a multiplication of elements of the form $(1k)$. Am I in the right direction?


So all of a sudden somehow  everything ends up transparent, just like in the attached images. I honestly have no clue why this started happening or how to prevent it, so I'm hoping someone could help? Viewport:  Render:


Can I create link that points to many folders

I'm under Windows 7, and I'd like to know if it's possible to create a virtual folder that points to many other folders, effectively listing all their contents as if being in a  single directory.  I'll try to be more precise with an example.  Let's suppose that I have many files in a directory structure to better categorize them, like this:    Main_dir |-> Subfolder1 |   |-> File1A.zip |   |-> File1B.zip |-> Subfolder2 |   |-> File2A.zip |   |-> File2B.zip |-> Subfolder3     |-> File3A.zip     |-> File3B.zip   And so on. I need to keep those files inside this hierarchical structure, like I said to have them categorized; but I also need to have all of them listed as being inside a single directory, like this:  Virtual_dir |-> File1A.zip |-> File1B.zip |-> File2A.zip |-> File2B.zip |-> File3A.zip |-> File3B.zip   Basically, I want to create a link named Virtual_dir that points to Main_dir\Subfolder1 AND Main_dir\Subfolder2 AND Main_dir\Subfolder3.  Is it possible to do so? Linking any single file inside the Virtual_dir is not what I'm trying to do. I want to use a feature similar to , with folder containing any kind of files (not just music, videos and documents) in a way that can be understood not just by Windows itsefl but also by any other arbitrary piece of software.


Liberation Mono: The current roman font does not contain the Cyrillic script!

Ok, so the problem is next, I use Liberation fonts in my XeLaTeX document:  \setmainfont{Liberation Serif} \setsansfont{Liberation Sans} \setmonofont{Liberation Mono}  \setmainlanguage{ukrainian} \setotherlanguage{english}   And Liberation Serif as well as Liberation Sans work as they should. But when an error      Package polyglossia Error: The current roman font does not contain the Cyrillic script! Please define \cyrillicfont with \newfontfamily.   occurs at the very end of the document where the monospace font appears for the first time as URL.  Also my friend has no problems like this on Mac.  Is this a problem with Tex-live distribution for Linux, or a problem with Liberation Mono ?


In Ruby on Rails ActiveRecord, how to make an empty ActiveRecord::Relation object and copy a record from another ActiveRecord::Relation object (full)?

I have an ActiveRecord object (x) with some records in it.   First, I want to create an empty recordset (y). Something like :  y = x.class.new  EDIT: -or- y = ActiveRecord::Relation.new   Second, I want to copy (duplicate) a record from x to y. Something like :  y << x.first.dup   How can I do that ? (Is it possible ?)  I have an error on the first line, saying that an argument is missing.  I'm able to make new String with this method, but not with ActiveRecord objects.  # x.class : ActiveRecord::Relation::ActiveRecord_Relation_Analysis x = Analysis.where(category: 6)   # In a helper ... # The x object is not always an Analysis.  So I must use its class  y = x.class.new    Error on the last line :   ArgumentError: wrong number of arguments (0 for 1+)         from .. /activerecord-4.0.1/lib/active_record/relation/delegation.rb:76:in `new'


I am working on an API and need to share the java doc with some people. I generated the doc and now it's inside a directory. From my computer if I click on the index.html file, it works as expected and opens as a web page. But when I upload the folder to Google Drive, clicking on index.html file does not open it as a web page but rather as a text file. Is there a way to get Google Drive to open the index.html as a web page?


I need to read the contents of .class file of java in my java program or is there any method available to read the same.Actually I want to retrieve the local variable table ,line number table,etc from .class file of java but I'm not getting any method to read the same?


Fast, easy, reliable way to transfer large files between Android devices? (aka. WiFi Direct stories from the field)

I'd like to be able to easily transfer large files wirelessly, fast, between Android devices - preferably without requiring root.  As a secondary objetive, it wouldn't hurt if the same solution could be used, to transfer files between the Android devices and a Windows PC.   Specifically, I'm trying to exchange files between my Nexus 7 (Android 4.2.2) and Samsung Galaxy S2 (Android 4.0.4).   Bluetooth is simply too slow, so that's out of the question Transfer via the Internet is also not an option, hence so is cloud-based solutions Only Nexus 7 supports NFC, so that's out too  looked promising and very simple, but does not work on "Devices that don't have WiFi Tethering setting, such as the Nexus 7"   Wi-Fi direct ( and up) seems to be a decent lowest common denominator between my two devices, however...  Galaxys S2's native Send via Wi-Fi Direct sees the Nexus, but seems to get stuck in the "Connecting..." most times. When there finally seems to be breakthrough, I get "Waiting..." and a spinning circle. Even if it worked, it would only allow me to send from the Galaxy S2 to the Nexus 7, as a similar option os not present on the Nexus 7.  J4velin's  is no longer available in the Play Store, with the following explanation:     WiFi Direct drivers are broken on many devices, which led to users leaving negative reviews for this app. As I don't see any sense in keeping a free app published when only getting 1-star-ratings (for an issue which only your device manufacturer can fix), the app is no longer available at the Play Store.   Nick Adams'  seems flaky at best. Invations from Nexus 7 to Galaxy S2 are never received. Invitations from Galaxy S2 are mostly received, but even when accepting promptly, the peers doesn't always show as connected. When they finally do, usually after quite a long wait, I can select a file to send but it's never transferred -  "Transfer failed" it says almost immediately in the notification bar.  budius inc's  is working slightly better, but still very unreliable. I actually managed to (occasionally) send files both ways, but never when attempting connection from the Nexus 7. To send from the Nexus 7 to the Galaxy S2, I had to go through this akward manoeuvre:   Share the file on the Nexus 7 via the WiFi Shoot intent Start the Receive WiFi Shoot app on the Galaxy S2 Invite the Nexus 7 from the Galaxy S2 (never the other way around!) Accept the invitation on the Nexus 7 Press the Shoot button on the Galaxy S2   Take the whole switching back and forth between devices, and garnish with random delays or failures in any step of the process...  Is there really no easy, reliable, fast way to transfer files directly between different Android devices?  Generally, my experience with Wi-Fi Direct is all but positive...   A device often won't even see a device lying next to it Sometimes, it will see the other device, only to have it disappear from the list, before I have the chance to connect When I do have a chance, invations are not realiably received (from Galaxy S2 to Nexus 7 mostly reliable, but never worked the other way around) When invitations are received (and accepted), a partnership rarely manages to be setup ("invited" or "connecting") And even when that happens, some apps can't seem to transfer files through it...   *Sigh*  Maybe J4velin's explanation pretty much sums up the sad state of Wi-Fi Direct on Android, which otherwise seemed as the best solution to my quest?


How can I make the While True line go a bit slower

I like exploring with python and I recently watched the matrix so I wanted to try something out.  Say I was going to do this:  While True:     print ("010101010101010101")     print ("101010101010101010")   If you run that it will obviously keep printing that until you abort it. You will also see that the numbers blend together because they are going to fast.  I'm not asking for it to run the while true every second or so, I just kinda want it to move a little bit slower. Does anyone have a function or can tell me what to run?


Stepwise Variable selection with Ordinal Logistic Regression

I have an ordinal dependent/response variable with 9 levels. I have 26 independent/predictor variables that include nominal, ordinal, interval, and ratio data types. Should I use stepwise ordinal logistic regression?


Difference between /usr/bin and /usr/local/bin

What is the difference between /usr/bin and /usr/local/bin?  Why are there both directories and why do some executable programs exist in both directories?


I am going to be building a Treehouse soon, and am researching the best and most cost effective means to do so.  I am good on the platform and beams (using Treehouse Attachment Bolts), and am going to use 45 degree knee braces for additional stability.  They make some great , but man are they pricey. Almost $100 each, and we'll need four of them.  Also mentioned at this .  When reading some books, and other online resources, I see mention of braces that are more like Joist Hangers.  But rather than having numerous nail holes like traditional joist hangers, they are supports by a single lag screw.  They are referred to in these resources as "Framing Connectors" or "Hold Down" brackets.  Does anyone know the real name for these, or where to find them?  Asides from having some fabricated myself, anyone know where to find these?  Like this:    As seen here:   I also saw these in the :


Trying to access an inner string in nodejs

I am trying to access variable processStatus while using nodejs JSON.stringify(result[0], null, 4) gives the following: {     "processingResult": "[{\"processStatus\": \"Successfully insert record\"}]" }  I have tried  if (result[0].processingResult[0].processStatus.indexOf('Successfully insert record') === -1)  but gives Error TypeError: Cannot read property '0' of undefined this is a snippet of my code   const result = await db.executeStoredProc(...);   logger.info('Result[0]:     ' + JSON.stringify(result[0], null, 4));  //as above result   if (result && result.length) {     if (result[0].processingResult[0].processStatus.indexOf('Successfully insert record') === -1)       throw new Error(`Error: ${result}`);   }  Thanks in advance.


Do twin spells have to be the same? (enlarge/reduce question)

A sorcerer twin casts "enlarge/reduce"; enlarge on the group's fighter and reduce on the enemy soldier. Is this a valid way to twin a spell under RAW or do the casts have to be identical, either both enlarged or both reduced?


Is there a page that lists bookmarked/favorited questions?

I was wondering if the Stack Overflow developers had created a bookmark page where all of my favourited questions will be displayed.  This page should also have a quick way to search its contents. I think that would be helpful to everyone.


Gparted unalocated space: “Unable to satisfy all the constraints on the partition”

I know this question has already been adressed in several posts like here:  or there . And I'm willing to use the fixparts software, but it says on every answer that I should be very careful using it and I don't really understand careful about what exactly.  I have a dual boot Ubuntu 14.04/Windows7 and recently freed some space in the Windows partition to extend the Ubuntu one (using easeus). After that I used the Boot repair tool to fix the boot. Finally, I can't reallocate it since Gparted is seeing the whole SSD as unallocated...  Here's my gparted error message:   Here's the fdisk -l return  Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x56251d6b    Device Boot      Start         End      Blocks   Id  System /dev/sda1              63       80324       40131   de  Dell Utility /dev/sda2   *       81920    25710591    12814336   27  Hidden NTFS WinRE /dev/sda3        25710592   253602089   113945749    7  HPFS/NTFS/exFAT /dev/sda4       376176639   500117503    61970432+   f  W95 Ext'd (LBA) /dev/sda5       376176640   433166335    28494848   83  Linux /dev/sda6       433166336   500117503    33475584   82  Linux swap / Solaris  WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.   Disk /dev/sdb: 3000.6 GB, 3000592982016 bytes 256 heads, 63 sectors/track, 363376 cylinders, total 5860533168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0xcbcc2d95     Device Boot      Start         End      Blocks   Id  System /dev/sdb1               1  4294967295  2147483647+  ee  GPT Partition 1 does not start on physical sector boundary.  WARNING: GPT (GUID Partition Table) detected on '/dev/sdc'! The util fdisk doesn't support GPT. Use GNU Parted.   Disk /dev/sdc: 3000.6 GB, 3000592982016 bytes 256 heads, 63 sectors/track, 363376 cylinders, total 5860533168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0xcbcc2d94     Device Boot      Start         End      Blocks   Id  System /dev/sdc1               1  4294967295  2147483647+  ee  GPT Partition 1 does not start on physical sector boundary.   I read on some posts that there should be some space (usually 1 or 2 Mb) between each logical partition to store the EBR. Unfortunately I don't know if this is really my problem nor how to fix it safely without Gparted.  I don't really know what more to add. Please, let me know if I'm missing something here and if "Fixparts" is the way to go.  Thanks!


Confidence interval for odds ratio only just containing 1

If I have an odds ratio of 1.2 say between group A and group B but a confidence interval of (0.99,1.5) which only just about contains 1. Can I make the conclusion that there is no association between group A and group B?


What do the identifiers mean on the /reputation page?

All users have  where they can see all the reputation changes, per day, per question. There is one page per community you're part of, with addresses such as (basically the site address, ending in /reputation:  https://meta.stackexchange.com/reputation https://stackoverflow.com/reputation   There are identifiers in the beginning of each line (except the daily summary lines). These represent the following potential reputation changes:  1 : Accept (+2 if you accept, +15 if your answer is accepted) 2 : Upvote (+5 for question, +10 for answer) 3 : Downvote (-1 if you downvote an answer, -2 if you get downvoted) 8 : Give bounty 9 : Receive bounty 16: Approved edit (+2)   I'm wondering what the missing numbers 4-7, and 10-15 represent, and if they exist at all.  My research indicates that (it might be incorrect, but I think it's right):   Reputation changes due to deleted users are not part of the list. (The vote disappears from the day you got it, it's not shown as a +/- change on the day the user got deleted.   Serial-voting reversal is not part of the list. (The vote disappears from the day you got it, it's not shown as a +/- change on the day the votes got reversed. Un-upvote / un-downvote are not part of the list. (The vote disappears from the day you got it, it's not shown as a +/- change on the day it was changed.   The Association bonus is shown on the second line, without an identifier, so that's not part of the list either.   So, what are the remaining ones, and do they exist?