Junit5 test for list of strings wrong answers

I don't know why the tests fail even if the lists are the same [13] [, abc, Abjh45, ch1, 5662, ch2, ch3, ch4, ch5], abc ✘ expected: listes.PureListString@5b94b04d<[, abc, Abjh45, ch1, 5662, ch2, ch3, ch4, ch5, abc]> but was: listes.PureListString@8c3b9d<[, abc, Abjh45, ch1, 5662, ch2, ch3, ch4, ch5, abc]>  Here is my code of addLast() method     public PureListString addLast(String elt) {         PureListString newCell = new PureListString(elt);         PureListString head = new PureListString(this.first);         PureListString tmp = this;         if (tmp == EMPTY_LIST)         {             return newCell;         }         newCell = tmp.tail.addLast(elt);         head.tail = newCell;         head.size = tmp.size + 1;         return head;     }   and this is the constructor      public PureListString(String elt) {         this.first = elt;         this.tail = EMPTY_LIST;         this.size = 1;     }   this is my equals method     @Override     public boolean equals(Object obj) {         if (!(obj instanceof PureListString)) {             return false;         }         PureListString p = (PureListString) obj;         if (size() != p.size()) {             return false;         }         if (!isEmpty() && !p.isEmpty()){             if (getFirst() != p.getFirst())             {                 return false;             }             return removeFirst() == p.removeFirst();         }         for (int i = 0; i < size(); i++) {             if (get(i) != p.get(i))             {                 return false;             }         }         return true;     }  The test method     public final void testAddLast(PureListString self, String elt) {         assumeTrue(self != null);         // Invariant         assertInvariant(self);          // préconditions         assumeTrue(elt != null);          // Purity         saveState(self);          // Exécution         PureListString result = self.addLast(elt);          // Post conditions         assertNotNull(result);         assertNotSame(result, self);         assertEquals(result.getLast(), elt);         assertTrue(result.size() == (self.size() + 1));         for (int i = 0; i < self.size(); i++) {             assertEquals(self.get(i), result.get(i));         }         if (self.isEmpty()) {             assertEquals(result.getFirst(), elt);             assertTrue(result.removeFirst().isEmpty());         } else {             assertEquals(result.getFirst(), self.getFirst());             assertEquals(result, self.removeFirst().addLast(elt).addFirst(self.getFirst()));         }          // Purity         assertPurity(self);          // Invariant         assertInvariant(self);     }  Please Note that I cannot change the test methods.


Prove that $e^{x} \geq x^{e}$ for all $x \geq 0$.

I have been trying to prove that $e^{x} \geq x^{e}$ for all $x \geq 0$.   This is what I have gotten so far:  $$ f(x) = e^{x} \\ g(x) = x^{e} \\  f'(x) = \frac{d(e^{x})}{dx} = e^{x} \\ g'(x) = \frac{d(x^{e})}{dx} = e x^{e-1}\\ $$ Now for all $x \geq 0$, $f'(x) \geq 0$, so $f(x)$ is always increasing or is constant, and $g'(x) \geq 0$ so $g(x)$ is always increasing or is constant.   Thus across the interval $[0,e]$, the lowest $f(x)$ can be is $f(0) = 1$ and the lowest $g(x)$ can be is $g(0) = 0$. The highest possible value of $f(x)$ is $f(e) = e^{e}$ and highest value of $g(x)$ is $g(e) = e^{e}$.   Thus across the interval $[0,e]$, $f(x) \geq g(x)$.   I've got 2 questions. One, is what I did correct. If not, where did I go wrong and what is the right method. Two, if yes, how does one prove it for the interval $(e,\infty)$.


"save the changes" message after removing the protection from workbook Excel 2010

Some time ago I protected the Excel 2010 file from the path File > Protect workbook > Encrypt with password and gave it a password. Now that I removed that password via below method:  Open the workbook and use Save As In the lower right of the file window will be "Tools" Choose "General Options" Clear the password. Save over your old file.  the file is openable without wanting a password. But the problem is when I open it and close it immediately, even without moving the active cell, the message "Do you want to save the changes you made to 'test.lsx'?" appears. While there hasn't occurred any changes to that file so why I face this message any time I want to close the file?  Hasn't the file been corrupted?


I'm using the package pdfpages to join many PDF documents. Some of them are scanned. Is there an option to reduce quality of those documents in order to make the resulting file size smaller?


I browse from a shared IP address (my university gives no other option) and I, for the first time ever, decided to answer a question on Stack Exchange.  I have apparently been answer banned but I have no deleted answers or even deleted posts.  I have a reputation of 10, not very good but surely not answer ban worthy?  I read on the FAQ question  that this might have something to do with my IP address.   Are there any workarounds other than paying for a VPN?


Renaming "Acronyms" (glossaries package)

I'd like to rename the "Acronyms" section produced by the glossaries package because not all the terms I have included in it are actually acronyms but rather abbreviations.   The only way to change the name I have found so far is using babel to translate the name to another language. Is there a way to simply redefine the name and keep my document language?


Existence of points in a differentiable function

Let $g:\mathbf{R\rightarrow R}$ be a twice differentiable function.  a) Prove that if $a_1 < a_2$ and $g(a_1)=g(a_2)=0$, then there exists a point $m \in (a_1,a_2)$ such that $g'(m)=0$.  b) Prove that if $a_1 < a_2 < a_3$ and $g(a_1)=g(a_2)=g(a_3)=0$, then there exists a point $n \in (a_1,a_3)$ such that $g''(m)=0$.  I am just curious about how to prove this very rigorously. My intuition tells me that both parts are true, but I have a hard time putting it down in writing. Any general tips about how I can learn to do this better are also much appreciated!


Many of us know the   But the other day I was asked a variation of this riddle.  The answer of the original question is, of course, $ 66\% $ in favor of changing doors, but this is based on the fact that the game show host knows where the prize is.  Suppose he does not know where the prize is, and after you make your pick, he opens one of the other two doors and it happens to be a goat. Is it still better to change doors when he asks?   I believe it is. (After all it still leaves us with two chances instead of one.) But some of my friends think otherwise. We are not mathematicians, just a couple of riddle-likers, so we are not sure of the correct answer. So I thought to post it here.  Edit :   I read this on wikipedia and if I understand it correctly it seems to support my answer:  Morgan et al. (1991) and Gillman (1992) both show a more general solution where the car is (uniformly) randomly placed but the host is not constrained to pick uniformly randomly if the player has initially selected the car, which is how they both interpret the well known statement of the problem in Parade despite the author's disclaimers. Both changed the wording of the Parade version to emphasize that point when they restated the problem. They consider a scenario where the host chooses between revealing two goats with a preference expressed as a probability q, having a value between 0 and 1. If the host picks randomly q would be 1/2 and switching wins with probability 2/3 regardless of which door the host opens. If the player picks Door 1 and the host's preference for Door 3 is q, then in the case where the host opens Door 3 switching wins with probability 1/3 if the car is behind Door 2 and loses with probability (1/3)q if the car is behind Door 1. The conditional probability of winning by switching given the host opens Door 3 is therefore (1/3)/(1/3 + (1/3)q) which simplifies to 1/(1+q). Since q can vary between 0 and 1 this conditional probability can vary between 1/2 and 1. This means even without constraining the host to pick randomly if the player initially selects the car, the player is never worse off switching. However, it is important to note that neither source suggests the player knows what the value of q is, so the player cannot attribute a probability other than the 2/3 that vos Savant assumed was implicit.  What are your thoughts?


Combine two columns into a list of all possible combinations of entries

I have two columns such as:  a   1  b   2  c    and I need to combine them like:  a   1 a   2 b   1 b   2 c   1 c   2   Is it possible with a formula?


Can insecure algorithms be combined to form a secure algorithm?

This is hypothetical as I can't think of any reason to do this, but out of curiosity...  Could I, for example, take the MD5 digest of a message and concatenate it with the SHA-1 digest (not quite broken, but getting close), to form a secure concatenated digest? Intuitively, I would think the chances of finding a collision that crossed the two algorithms would be low enough to make this secure, but I'm not sure how to verify that.


HINT: $a^2+b^2=c^2$ cannot hold for $a,b$ odd and $c$ even. (using congruences)

Here is what I have: Suppose the contrary. Thus, (2k+1)(2k+1) + (2j+1)(2j+1) = (2p)(2p) Take mod 2 of both sides [1][1]+[1][1]=[0] [2]=[0] [0]=[0] No contradiction ... am I approaching this correctly? I want to figure this out myself but would like a small hint


Counting and rasterizing polygon overlaps in ArcGIS Desktop?

How do you take a vector layer with overlapping polygons and turn it into a raster where each cell counts the number of polygons containing that cell?    We are looking at polygons of fire burn areas between 1976 to 2000 and want to see how many fires would be contained in each raster cell.


If $\lim_{n \to\infty}a_n=a$ then $\lim_{n\to \infty}\frac{a_1+a_2+...+a_n}{n}=a$

If $\lim_{n \to \infty}a_n=a$ then $\lim_{n\to \infty}\frac{a_1+a_2+...+a_n}{n}=a$ I need to prove this, and was thinking to use some inequality related to the geometric and harmonic, but unfortunately my efforts did not pan out as hoped. Does anyone know how this would be proven?


How to make blurry background in photos?

I see many photos like this:    How it is done?


Strange behavior of Beamer overlay specification in RTL language

The famous [<+->] overlay specification is not working as expected in this very simple MWE right-to-left beamer presentation.  MWE    \documentclass[12pt]{beamer}  \usepackage{polyglossia} \setmainlanguage[numerals=mashriq,abjadjimnotail=true]{arabic} % Polyglossia package for more options \setotherlanguages{english} \newfontfamily\arabicfont[Script=Arabic,Mapping=arabicdigits,Ligatures=TeX]{Simplified Arabic} \setsansfont[Script=Arabic,Mapping=arabicdigits,Ligatures=TeX]{Simplified Arabic} % Bold sans used for sections \newfontfamily\englishfont{Arial}  \setbeamertemplate{frametitle}[default][right] \usetheme{Frankfurt}  \setbeamercovered{transparent} \title{مثال توضيحي}  \begin{document} \begin{frame}   \titlepage% \end{frame}  \section{مقدمة} \begin{frame}   \frametitle{الشريحة الاولى}    \begin{enumerate}[<+->]     \raggedleft%   \item هنا النقطة الاولى   \item الثانية حيث اكتب ١، ٢، ٣، ٤، ٥   \item الثالثة والاخيرة   \end{enumerate} \end{frame}   \end{document}   Output      In the first overlay, the first item is active and the second one is inactive so far which is good, but the third item text and bullet alike should be inactive as the second one. In this case only the bullet is inactive while the text is not.  By the second overlay, the second item becomes active as expected.  Finally, by the third overlay, the third item bullet and not the text is becoming active, the text has already been active right from the beginning. So could you please help me fix this abnormal behavior?


Is there a category of logical propositions and deductions?

I'm looking for a rigorous definition of the category defined (by handwaving) as such:   objects are "logical propositions" (first order formulas?), morphisms are "logical deductions" between them (inference rules?), composition is just concatenation of deductions (so I would say in general a morphism is a proof?).    Is it there some issue regarding the size of the objects collection? Can we speak of the "class" of all formulas about e.g. sets?


I got Ubuntu 14.04 and I want to remove it and get Windows 7. How do I do that?

Need to switch from Ubuntu 14.04 to Windows 7 on my laptop.  Help please. I need it ASAP for work. I got the ISO for Windows 7 but don't know how to get rid of Ubuntu.


Is it plagiarism (or bad practice) to cite reviews instead of source material directly?

My first source of information when preparing a manuscript are reviews. If up-to-date and comprehensive, I feel I can create most of my introduction by rephrasing and citing them. Nevertheless, reviews are based on citing other papers and, with the deluge of literature published these days, finding the source material for a single claim sometimes becomes a never-ending and time consuming play with a Matryoshka doll.  For example, in this review by , the following claim is made and supported citing three papers.     The recent development of methods to probe the physical association of   genome regions in a unbiased and genome-wide scale should lead to   rapid progress in our still-rudimentary understanding of the   functional significance of chromatin loops (Simonis et al., 2006;   Wurtele and Chartrand, 2006;Zhao et al., 2006).   I consider relevant to a point in my article that there are new roads being opened to study “the functional significance of chromatin loops”, To do so, I have three options:    Rephrase the sentence and cite Misteli, 2007, acknowledging that I extracted the citation from the review and depriving the authors of the source material of a citation; Rephrase the sentence and cite Simonis et al., 2006; Wurtele and Chartrand, 2006;Zhao et al., 2006  without reading the three source papers, which is kind of deceiving but at least acknowledges the authors of the research and not the author of the review; or  Read the original articles, rephrase and cite Simonis et al., 2006; Wurtele and Chartrand, 2006;Zhao et al., 2006, which is the most “honest” option but incredibly time consuming.   Sometimes, if I decide to do 3, I may find myself spending a lot of time reading, only to write something that was already said in the review.   Which option you would abide for? Am I somehow plagiarising the reviewers or primary authors if using any of my strategies? In terms of ethics and good scientific conduct, which is the best option? How deep and when should I look for source material?  I am not asking about which version of an article to cite, . I assume that versions cited in reviews are the most up to date. I am asking when it is correct to cite the review or the primary source found in such review.  Note: My strategy up to this days is a mix of 1 and 3: search and cite the source material only if the paper is relevant for the core of my article and cite the review when filling the generals.


I think i didnt explain this well, this is edited. {"code":200,"meta":"{item:{Title:'{\"text\":\"This is title.\"}', Description:['Description']}}","name":"Awesome Sword's Information","id":10442}  I want to get this object's meta. but I only could get {item:{Title:'{"text":"This is title."}', Description:['Description']}}. How can I convert this string to javascript object? Thanks.


Is a Cauchy sequence - preserving (continuous) function is (uniformly) continuous?

Let $(X,d)$ and $(Y,\rho)$ be metric spaces and $f:X\to Y$ be a function and suppose for any Cauchy sequence $(a_n)$ in $X$, $(f(a_n))$ is a Cauchy sequence in $Y$.  Is $f$ continuous?  Let $f$ be continuous, is it uniformly continuous?


How can i set permision folder in ubuntu

I have a Folder in /srv/beta in Server Ubuntu 14.04 to upload source code. How can i set permision all user in dev-team alow all permision only this folder like vim, upload, ....  Tks...


Prove that if prime $p$ divide $a_{2k}-2$, then $p$ divide also $a_{2k+1}-1$.

Sequence $a_0,a_1,a_2,...$ satisfies that $a_0=2,a_1=1,a_{n+1}=a_n+a_{n-1}$  Prove that if $p$ is a prime divisor of $a_{2k}-2$,then $p$ is also a prime divisor of $a_{2k+1}-1$    If $x_{1,2}={1\pm\sqrt{5}\over 2}$ then $a_k = x_1^k+x_2^k$ and $a_{2k}-2(-1)^k = (x_1^k-x_2^k)^2$.


I am trying to read a string from a keyboard and store it in a character pointer. But it doesn't seem to work. Can someone please help me out. Here is the code.  char *city = "Bangalore"; char *state; state = city;  printf("Enter your state : "); scanf("%s",state);   // I get Bad access here.   but doesn't crash when I use this.  char city[] = "Bangalore"; char *state = city; printf("Enter your state : "); scanf("%s",state);


How to block all the network traffic from my running user

How to block all the network traffic from one user? But other users are alive to the network that the blocked user is able to connect to other users who have the permission to the internet.


how to merge an end anchor point with a path

I tried to unit and join the end anchor point with the path shown in the picture but I either get the paths interlocked or part of the drawing just disappear.


Evaluating $\lim _{x\to 1}\left(\frac{\sqrt[3]{x}-1}{2\sqrt{x}-2}\right)$

I'm trying to evaluate the limit     $$\lim _{x\to 1} \frac{\sqrt[3]{x}-1}{2\sqrt{x}-2} .$$   I used  to find the result, which gives  $$\lim _{x\to 1} \frac{x^{\frac{1}{6}}+1}{2\left(\sqrt[3]{x}+x^{\frac{1}{6}}+1\right)}.$$  Then, plugging the value $1$ for $x$, you get $\frac{1}{3}$.  I don't see how did they reach that conclusion. This is how I tried to tackle it:  $$\frac{\sqrt[3]{x}-1}{2\sqrt{x}-2} = \frac{\sqrt[3]{x}-1}{2\sqrt{x}-2} \cdot \frac{\sqrt[3]{x}+1}{\sqrt[3]{x}+1},$$  which then yields  $$\frac{x-1}{(2\sqrt{x}-2)(\sqrt[3]{x}+1)},$$  and that becomes  $$\frac{x-1}{2\cdot(\sqrt{x}-1)\cdot(\sqrt[3]x+1)}.$$  That's  $$\frac{x-1}{2\cdot(\sqrt[6]{x}+\sqrt{x}-\sqrt[3]{x}-1)},$$  and this will still evaluate to $\frac{0}{0}$.  How did they solve this, exactly?


How to stay up-to-date on modern philosophy?

It is rather difficult to decide what to read, what is obsolete, and so forth.   How does one stay up-to-date on modern philosophical thought? Are there journal apps which show new essays, articles, studies, etc.?


range for integer values of chars in c++

I'm reading The C++ Programming Language and in it Stroustrup states that the int value of a char can range from 0 to 255 or -127 to 127, depending on implementation. Is this correct? It seems like it should be from -128 to 127.  If not, why are their only 255 possible values in the second implementation possibility, not 256.


This question pertains to L1 & L2 regularization parameters in Light GBM. As per official documentation:  reg_alpha (float, optional (default=0.)) – L1 regularization term on weights.  reg_lambda (float, optional (default=0.)) – L2 regularization term on weights  I have seen data scientists using both of these parameters at the same time, ideally either you use L1 or L2 not both together.   While reading about tuning LGBM parameters I cam across one such case: Kaggle official GBDT Specification and Optimization Workshop in Paris where Instructors are ML experts. And these experts have used positive values of both L1 & L2 params in LGBM model. Link below (Ctrl+F 'search_spaces' to directly reach parameter grid in this long kernel)      I have seen same in XGBoost implementations.  My question is why use both at the same time in LGBM/XGBoost.  Thanks.


Can I use my single entry Schengen visa to go to a different Schengen country than originally planned?

My friends and I planned to visit Germany, so I got a single entry tourist Schengen visa to Germany. However, my travel plans have changed since then, because my friends are going to Italy instead. I don't have time to apply for a visa to Italy, but I have been told that I can use my Schengen visa to enter Italy. Is that true?


Calculating absolute roll/pitch/yaw angle of falling objects

I am wanting to build a device with gyro, accellero, gauss (compass) sensors and barometric sensor.  This device will record all data from the sensors over a period of about 15 minutes where a person is in freefall (jumped from an airplane).  Fall velocity is easy, using the barometer, but I am not sure about the angle.  I want to know the absolute angle along all axises of the person. Due to the acceleration after the jump, decceleration after opening of parachute and (de/a)cceleration due to change in position in freefall and therefore air resistance all the accelerometer forces will constantly change among all axises.   How would I be able to calculate the absolute angle/rotation of the person in 3 dimensions (roll/pitch/yaw).  Right before the jump, the person is in an airplane and full of adrenaline. Because of this combined with tight space and high noise from the engines, I want to prevent having to use calibration on forehand where possible.


Through the following code, I am updating the data which is already stored in the database.  But when I click on my update button it's showing the following error:     "You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 're thinking a few times especially during the execution stage where things don't' at line 1".   I am unaware about why this error is showing only when there is apostrophe in my content(' or '). It is showing error for those words which has apostrophe like don't, you're, etc., during Inserting it is not showing but during updating,it is showing.  if(isset($_GET['edit'])){  $edit_id = $_GET['edit'];  $edit_query = "select * from blogs where blog_id= '$edit_id' ";  $run_edit = mysql_query($edit_query)or die(mysql_error());   while ($edit_row=mysql_fetch_array($run_edit)){       $blog_id = $edit_row['blog_id'];     $blog_title = $edit_row['blog_title'];     $blog_author = $edit_row['blog_author'];     $blog_image = $edit_row['blog_image'];     $blog_content = $edit_row['blog_content']; } } ?>  <form method="post" action="edit_blog.php?edit_form=<?php echo $edit_id; ?>" enctype="multipart/form-data">

Edit The Blog Here

         Blog Title:	         <input type="text" name="title" size="30" value="<?php echo $blog_title; ?>">

         Blog Author:	         <input type="text" name="author" size="30"value="<?php echo $blog_author; ?>">

         Blog Image:	                  <input type="file" name="image" >         <img src="../imaged/<?php echo $blog_image;?>" width="100" height="100">

         Blog Content:	         <textarea name="content" cols="30" rows="15"><?php echo $blog_content; ?></textarea>

         <input type="submit" name="update" value="Update Now">

  </form>       <?php  if(isset($_POST['update'])){  $update_id = $_GET['edit_form']; $blog_title1 = $_POST['title'];   $blog_date1 = date('y-m-d');   $blog_author1 = $_POST['author'];   $blog_content1 = $_POST['content'];   $blog_image1= $_FILES['image']['name'];   $image_tmp= $_FILES['image']['tmp_name'];  if($blog_title1=='' or $blog_author1=='' or  $blog_content1=='' or $blog_image1==''){  echo ""; exit(); }  else {   move_uploaded_file($image_tmp,"../imaged/$blog_image1");      $update_query = "update blogs SET blog_title='$blog_title1',blog_date='$blog_date1',blog_author='$blog_author1',blog_image='$blog_image1',blog_content='$blog_content1' where blog_id='$update_id' ";      if(mysql_query($update_query) or die(mysql_error())){      echo "";      echo "";      }     }  } ?>


"The product key entered does not match any of the Windows image"

I have a HP with Windows 7 installed. I want to do a clean installation of Windows 8 from a bootable DVD.   I purchased my Windows 8 32-bit core from the Microsoft store and I received my product key. I then burned the .ISO file to a blank DVD using imgburn. When I restart and change my BIOS to boot from internal CD/DVD and then boot from my internal DVD, I start the installation process.  After I pass the screen where I select the language and location, and click Install it stays there for a minute and then it says:     The product key entered does not match any of the Windows image   I did my research and learned that I need to add a PID.txt file to my source file containing the Windows 8 .ISO but the thing is: I do not know how to add files to the .ISO. The guide I researched is for a bootable USB and I am using a DVD.


How to convert fixed point binary numbers to BCD?

I am trying to make a calculator that can do fixed point calculations but I don't know how to display them in decimal (BCD). People have told me to use reverse double dabble but I am looking for another solution. How can I convert fixed point binary numbers to BCD without using reverse double dabble? Help is very appreciated.


How can I change media volume when no media is being played?

Sometimes I want to play games in (near) silence, and don't like the background music to disturb people. If I use the volume buttons, the ringtone volume is changed instead of media volume. When I'm already in the game, the volume buttons do change the volume of background music, but it's kinda too late.  Is there a way for me to change the media volume to a level I like, from the home screen, before starting apps/games?


How to remove the right launcher border?

How to remove the launcher border?  The orange border (my background image is orange):


Is it possible for the program to output the entire name of data type or ?  For eg. (int, double ...)  #include <iostream> #include <typeinfo>  using namespace std;  int main(){      auto a = 5.34;     auto b = 3 ;     auto c = a * b ;      cout << typeid(a).name() <<  endl; //output d     cout << typeid(b).name() <<  endl; //output i     cout << typeid(c).name() <<  endl; //output d         return 0; }


Extracting usernames from the /etc/passwd file

What command(s) would you use to extract all of the usernames from a database called /etc/passwd and then sort this output alphabetically in reverse order?


Are there any significant plot elements in Fantastic Beasts that will be missed if I haven't seen the Harry Potter films?

I have read all seven Harry Potter books, and The Cursed Child1, but I've only watched the first two movies.  Do I have to watch all eight movies in order to fully understand the significant plot points found in Fantastic Beasts and Where to Find Them?  Is there anything that I'll miss by not having seen them?    1 Waste of money, that.


Selecting faces on object from UV editor window

I can't see this as an option so is there a way to select faces or islands and have them show up as selected faces on the object in 3D view.  In programs such as maya it is possible to work from either view and makes selection and mapping a little more user friendly.  I suspect it isn't possible in Blender but welcome your feed back.  Edited as flag as already answered, although the question was not asked in the other post in a way that showed in my search.  I was looking for face and island selection to show in both views. The other asked about unselected vertices this obviously did not appear in the results.


Thinking of upgrading my 550D, should I go for 7D or 5D?

Yep, I think this question has been asked quite a number of times, just thought I should ask based on what I need. I'm currently using a (close to) 4 year old 550D, so I was thinking it was time for me to upgrade. I am now choosing between upgrading to either a 7D or 5D mark II (mark III is pretty out of my price range for now, so hopefully no one suggests the mark III instead).  I'm leaning quite heavily towards the 7D, because I'm really very happy with how my current crop lens is serving me quite well for basically every single purpose I use it for, be it portraits, landscapes or even the occasional sports photography like the cheerleading competition I did last week. And also I just bought a cropped aspherical lens which I haven't really gotten around to playing around with, and I'm rather reluctant to sell it without using it much. Upgrading to another crop body like the 7D would allow me to keep all these and save me the trouble of upgrading lenses together with the camera. But there's the issue of the 7D and 550D having the same sensor, I feel like I will be upgrading just for better functionality and build.  On the other hand, the 5D mark II obviously will have better image quality, but it's the thought of upgrading my lenses together with the camera that turns me off, it just feels like extra cost on top of the already more expensive 5D mark II, which I don't think be able to afford (the lenses, not the body). The only EF lens I own is the 50mm f1.8, which isn't flexible enough for my needs.  For the record, I do mainly travel-type photography and some cosplay portraits whenever there are conventions. Anything else is based on what I feel like shooting at that time. My current main lens is the Sigma 18-200mm, which I really love due to its versatility, I feel like there's nothing I can't take with this lens.  One of my ideas was to upgrade to the 7D first, then slowly phase out my crop lens and introducing FF lenses to my inventory, then make the jump to FF when I think I need another upgrade. Do you guys think this is a good idea, or should I make the direct jump to FF? My priority right now is actually cost, because I'm not really working as of now so I have no income, but its the allure of higher image quality in the 5D II that's giving me a headache. Any advice would be welcome here. Thanks a lot in advance.


Can I store Dark Elixir Clan War winnings if don't have a Dark Elixir storage?

I'm in a Clan War and I see a little mini dark elixir storage at the top of my Clan Castle, but I don't have an actual dark elixir storage.  Will the dark elixir stay in the Clan Castle until I can claim it?


Sometime in early 2000, I applied for student visa to study in the US with a wrong birth date on my admission letter and my freshly procured passport.  The agent that assisted in the admission brought forward my DOB to make it look like I am much younger. I complained to him, but I was so naive....I believe what he said that it won't affect anything.  I went for the interview three times within three years from year 2000 and was refused visa.  I didn't apply again until 2010. Meanwhile, the process and standard of procuring passport in my country changed from normal to e-passport.   I applied for it using my real DOB because I don't see why I should have a passport that would carry wrong info about me for life.  By 2010, I applied at the US embassy for a visa to visit siblings, not knowing the implications of using a different DOB. I was denied - no reason given.  I applied again and again four times in the next three years after 2010, But on the last appointment in 2013, the interviewer asked me for the first time why I used two different DOB. I told him I was ill-advised and was naive to know the implications.  He said he couldn't trust me and denied my application, and that was the last time I applied knowing why I have been refused all the years.  My question is: what are the implications? Does it mean I have been barred from entry into the US?


Samsung galaxy S3 GT-I9300 4.3 Jelly Bean to 5.0-lollipop

I would like to know if it is possible to update my Samsung Galaxy S3, which is in 4.3 Jelly Bean, to 5.0-lollipop. And in this case, I would like to know :   If it is a good idea ; Will my phone support it ;  What benefits it might bring me if it is possible.   I also would like to know the best way to proceed, to update my phone.  Thank you in advance.    Edit : I have a friend that has the same phone, and his phone updated itself. Why not mine?


C++ - Expected primary expression before '(' token AND missing template arguments before ‘(’ token

I define   typedef std::map< int, std::set<int> > SparseMap;   Then I try to insert a pair in that way:  pair<SparseMap::iterator,bool> result; result = sparseBlue.insert(SparseMap::value_type(row, set(col)) ); //errors    if(result.second)          cout << "Inserted" << endl;    row and col are integer matrix coordinates sparseBlue is declared as SparseMap sparseBlue;   Why do I get those errors at the line in which I .insert?


I was messing around on Wolfram Alpha's summation calculator and when I plugged in the summation $$\sum_{i=1}^n\sin\frac{i\pi}{180}$$ and it gave me the value $$\frac12\left(\cot\frac\pi{360}-\csc\frac\pi{360}\cos\frac{(2n+1)\pi}{360}\right)$$ I don't understand... how does it arrive at this formula? And how do I verify this? If I wanted to, how could I find similar formulas in the future?


Proving a semidirect product of two groups is isomorphic to the direct product of the same groups

I am wondering if there is a relation between semidirect product of two groups and the direct product using the same groups? For example, if a group $H$ is isomorphic to $\mathbf{Z}_{26} \rtimes \mathbf{Z}_{5}$ for some homomorphism from $\mathbf{Z}_{5}$ to Aut$(\mathbf{Z}_{26})$. How can I prove that $H$ is also isomorphic to the direct product $\mathbf{Z}_{26} \times \mathbf{Z}_{5}$? I have no clue where to start. Can someone please enlighten me how to approach this? Thanks in advance!


How do I increase or maximize the size of a figure in python

In general I used this code:  But instead of using plt.show() I save the plot with the following code: plt.savefig('Example.png') The plot I have saved is much smaller then the plot I get from plt.show() On the one hand I would like to increase the general plot in size but further more I want to increase the window size of the 2 subplots.


The "add comment" text in case of a question with bounty crosses boundaries

When a question has an open bounty and no one has commented on the question yet, you see the notice for the status of the bounty and the text/link for "add comment".  You can see it in effect in the following screenshot:        As you can notice that the ds and the t of "add comment" are cutting in the notice's borders and invading privacy.  Can this be fixed?


Proof the maximum function $\max(x,y) = \frac {x +y +|x-y|} {2}$

I want to prove the maximum function max: $\mathbb{R} \rightarrow \mathbb{R}$, which is defined by  $$\max(x,y) = \begin{cases}x,  \text { if }  x \geq y , \\ y,  \text { if }  x < y \end{cases}$$  I want to prove this for  $\max(x,y) =   \frac {x +y +|x-y|} {2}$.  I have no idea on how to start, I just read over my search over the internet that the modulus function could be a way. I really appreciate your help!  UPDATE  I want to prove that $\max(x,y) =   \frac {x +y +|x-y|} {2}$.


What are the pros and cons of coursework at the doctoral level?

This is a debatable issue given for me to make inquires on: some people said that coursework should be introduced at the doctoral level while others insist that it should not be introduced, as a PhD student is already a Master in the area of study.  What are the arguments for and against introducing coursework for PhD students?


What seemingly innocuous results in mathematics require advanced proofs?

I'm interested in finding a collection of basic results in mathematics that require rather advanced methods of proof. In this list we're not interested in basic results that have tedious simple proofs which can be shorted through more advanced methods but basic results that necessarily require advanced methods.   I appreciate the question asked here is very similar to another question asked on this website: . Thank you for pointing this out. However, in my opinion, it does differ significantly (this is debatable). The main goal of the this discussion was to find examples that are easily digestible to non-advanced students of mathematics and related disciplines. This, I hope, will spur discussion of the dichotomy between what is considered trivial from a mathematics perspective and what may be considered intuitive. Quite often less experience students tend to gloss over fairly intuitive results under the assumption the proof follows easily. This I hope will be a good resource to show it is not the case.   In particular,  I was hoping to find a list of problems that may seem intuitive on inspection, but are out of the reach of elementary methods. The statement of the theorem should be able to be understood by junior undergraduate students but the proof rather inaccessible. Can you also mention why elementary methods fail to shed any light on the problem.   Many thanks


How to stop "Do you want to scan and fix drive" message in Windows 7?

I use my USB flash (thumb) drive quite often to move data between several computers (Macs and PCs.) When I plug in this flash drive into Windows 7 it shows this message:     "Do you want to scan and fix ...?"     If I click "Scan and fix" the message goes away for a little while only to come back again.  Is there a setting in Windows to make this message go away because it is very annoying to click through this window every time I plug in my drive?  PS. I run this same flash drive on a Mac computer and it never tells me that there's an issue with the drive.  PS2. I have other flash drives that keep showing this same message on Windows 7. They all cannot have the same issue, can they :)


How to fix a constant IO error cause by a Non-Readable file?

So, Basically when I open my media drive, I get an annoying error message from nautilus 'IO Error Can't read 2 files (songs actually)' and same goes with the ls -l command. I believe the file ain't there but somehow it's index is. I have Root access so there is no privilege problem here.  Can somebody help me?


How to approach proving $f^{-1}(B\setminus C)=A\setminus f^{-1}(C)$?

Let $A,B,C$ be sets such that $C\subseteq B$. Let $f: A \to B$ be a function.  Prove that $f^{-1} (B\setminus C)=A\setminus f^{-1} (C).$   I really need help with this proof problem. I'm not sure where to begin or what strategy to consider using.


If $G/Z(G)$ is cyclic then $G$ is abelian – what is the point?

The theorem "if $G/Z(G)$ is cyclic then $G$ is abelian" is a popular exercise.  But what is the point of this theorem if $G/Z(G)$ can only be cyclic if it is trivial?  Does "$G/Z(G)$ is cyclic" actually appears in other proofs or is it just a popular exercise?


How to fix corrupted GUI on Ubuntu Xenial Xerus

I've been using Ubuntu for a while, A few days ago, I installed a system update and right after the installation, the Unity started flickering. I've tried several solutions on the web but nothing fixed my problem. I would be grateful if you could help.  Note: Please enable captions while watching the video.  Video Related to the Problem   Hardware Device: Dell Latitude E6410 Processor:  Intel® Core™ i7 CPU M 620 @ 2.67GHz × 4 Graphics:   Intel® Ironlake Mobile  Software OS:         Ubuntu 16.04.3 LTS GUI:        Unity 7.4.0 Kernel: Linux 4.10.0-42-generic Architecture:   x86-64    Solutions I’ve Tried     I've also tried dpkg and fsck under Linux 4.10.0-42-generic (recovery mode)


What exactly is TLP doing that default system config wouldn't?

All the info about TLP on the surface looks more like advertisement and marketing to me, I can't see any detailed comparison to default configurations. What are the precise differences compared to default (K/L)Ubuntu installs under the hood, are they really effective?  Update: And if they really are, why aren't they a part of a default config?


Access Paragraph fields programmatically in custom module

I have a Product content type with these fields; title, body, and one entity reference revisions(Paragraph: field_select_module). I am creating a custom REST API(custom module) to export the fields in the JSON. I am able to print the title and body. Could someone help me to print the paragraph fields which have title and image(Media) and title and image will repeat 3 times. It should be inside this array 'product_list' => array(), Here is my controller. <?php  namespace Drupal\drupalup_json_api\Controller;  use Drupal\Core\Controller\ControllerBase; use Drupal\node\Entity\Node; use Symfony\Component\HttpFoundation\JsonResponse; use Drupal\paragraphs\Entity\Paragraph;  /**  * Controller for export json.  */ class JsonApiController extends ControllerBase {    /**    * {@inheritdoc}    */   public function data() {     $json_array = array(       'data' => array()     );     $nids = \Drupal::entityQuery('node')->condition('type','product_main_categories')->execute();     $nodes =  Node::loadMultiple($nids);      foreach ($nodes as $node) {       $json_array = array(         'id' => $node->get('nid')->value,         'title' =>  $node->get('title')->value,         'content' => $node->get('body')->value,         'product_list' => array(                      ),       );     }     return new JsonResponse($json_array);   } }


I calculated a likelihood ratio on two likelihoods from my research (LhRatio = 2 * (Time Slice Lh – Normal Lh)). I'm testing a model which is a special case of my null meaning my likelihood ratio should be equal to a chi square statistic. I therefore tested my LR with the Chi Square Dist formula on excel (CHISQ.DIST(B7,2, TRUE)). What do my output values tell me? Some example values i've received are 0.3 and 0.9.


Add the ability to hide vote counts by clicking anywhere

I think a small improvement would be to have the ability to hide  by clicking anywhere on the page or clicking again on the total number.  Currently, they only seem to disappear if I vote on the post, which doesn't happen on every post. Like I said, it's a small improvement, but I think it'll be a nice cosmetic one. What do y'all think?


Prove that two sequences converge to the same limit.

I encountered this question in my homework:  $$a_1=x, b_1=y, \\  a_{n+1} =\frac{a_n+b_n}{2}, b_{n+1}= \sqrt{a_nb_n}, n\in \mathbb{N}$$  Given $x,y$ positive constants. I have to prove that they both converge to the same limit $L$.  I know that in order to prove that a sequence converges, it has to be (for example) Monotonically increasing and that $|a_n|<K$  I'm having difficulties proving with induction that either of the sequences is monotonic... how do I do so when the first sequence depends on the other? I know that by using the average inequality I get that $a_{n+1} > b_{n+1}$. How do I continue from here?  Thank you for your time and help!


'one and one is two' is correct as you know. I wonder there should be whether 'am' or 'is' between 'he and I' and 'a monster.' 'he and I am a monster' or 'he and I is a monster?' I mean a group of him and me is a monster. For example, after you or I, verb 'am' is correct. I think 'he and I am a monster' is correct as 'or' and 'but'.


Can a Minor Illusion be placed around someone's eyes to blind them?

Wizard A wants to cast Minor Illusion on Target B, specifying black discs in front of the eyes. Does it work?  In other words, are status effects something Minor Illusion can inflict?


Prove these two elements are not associated in $\mathbb Q[x,y,z]/(x-xyz)$

So the full problem was:      Consider $R=\mathbb Q[x,y,z]/(x-xyz)$. Prove that $x$ and $xy$ divide each other in $R$ but that they are not associates. In other words, there is no unit $u\in R$ so that $x=xyu$.    I already proved they divide each other but I need to prove no unit exists.


\definecolor{}{}{} why this value work 0,255,255 and this 26,160,224 not?

I'm wondering why, my line 1 works (and produce a cyan color) and line 2 doesn’t. the value (26, 120, 224) are RGB value that I've picked wit GIMP, so I think they're correct.   \definecolor{beamer@blendedblue}{rgb}{0,255,255} \definecolor{beamer@blendedblue}{rgb}{26,160,224}


Unity Mobile: How can we safely store our API key?

We're making an app in Unity. We're building it for Android and iOS. We also have a server. In order to use our server you need to present our api key for the server. So, we need to store that key in the build somewhere (eg. APK file) But how can we put it anywhere where people wont be able to get it? Eg. they can get the APK and decompile it. SDKS for unity for facebook and so on, store an api key in the client. What do they do?


Do Proficiency Bonus apply to enemies/monsters/NPC?

I'm reading the basic books but this doesn't get explained. Let's have an example: a PC is attacking an AC16 orc with a sword (he's proficient in swords). He rolls a 13 + STR bonus (+ 2) + Proficiency bonus (+ 2) = 17, it's a hit. Now it's the orc's turn, he rolls a 10 (+ 2) STR bonus + ...proficiency bonus??


How do I move my My Documents, My Pictures, and My Videos to a different hard disk

My 1 TB system disk (C:) is getting really full, and this is due to lots of pics and videos in my User folders.  All this is being stored on C:, but I have just installed a new 2 TB hard drive, and I would like to have Windows move all this stuff to the new drive (K:).  I know I can't just highlight, cut and paste, but how is this supposed to be done?


Why does the ks.test function give a p-value of 0 for these two samples?

I have two numeric data vectors: NA_Sales and EU_Sales, which are really similar. When I plot their ECDFs like this:  plot(ecdf(dataset$NA_Sales)) lines(ecdf(dataset$EU_Sales), col="red")   Then I get this diagram:     Which shows they are really similar. But when I run the Kolmogorov-Smirnov test like this:   ks.test(dataset$NA_Sales,dataset$EU_Sales)   or  ks.test(dataset$NA_Sales,dataset$EU_Sales)$p   Then I get a p-value equal to zero. Why? The diagram shows they are similar distributions. Isn't ks.test() supposed to tell this by their CDF? I should get a p-value higher than 0.05.


Diffeomorphism $f:U\to V$ then $Df:\mathbb{R^n}\to\mathbb{R^m}$ will be linear isomorphism hence $n=m$

${\large let \ U\subset \mathbb{R^n,}V\subset \mathbb{R^m}}$  be open subsets. map $f:{\large U }\to{\large V }$  is called a diffeomorphism if is bijective and both $f$ and $f^{-1}$ are continuously differentiable.   once there is diffeomorphism $f:{\large U }\to{\large V }$  then $Df:\mathbb{R^n}\to\mathbb{R^m}$ will be ${\large linear \ isomorphism  }$ hence $n=m$. how is this a linear isomorphism??. i know $Df(a)$ is a linear map , but why this is one one and on to ??


Typescript - How do I remove a value from a hashmap?

I found this post about implementing a hashmap in typescript, and I've got that working, except for removing something from the hashmap.    I add something by doing Input.keys[event.key] = event.keyCode; to add a key to my abstract Input class's keys field that is a hashmap. How can I remove something from it?


I'm an  visiting a  where the punishmnent for  may be .  Is it possible for an ISP to see the websites I might browse or what kind of  I might have with others over MSN/Yahoo, etc. (which may be related to the forementioned activities).   Is it something I should be concerned about, or is there a negligible chance of this happening? Is there anything I can employ to 'mask' this?


How particles can be found in classically forbidden regions?

If the total energy of the particle is less than the height of potential well. What could be interpretation that the particle can be found outside the well.


"Last seven years" or "Past seven years"

Regarding time, years, which of these two words — last or past— should be used to state tense of time passed?     Sister Esther and her family have been members of our church for the last/past seven years.   In this particular sentence which word would work best? And what would their respective meanings convey?


What is a proper way to clean a 35mm negative film stripe before scanning?   What chemicals can remove fingerprints, dust that does not come off by blowing, or strains of glue? What type of cloth does minimal damage when rubbing off dirt?


I am making an open source solar battery shield for the Arduino Uno, would this circuit work? It's pretty basic but I think it would do the trick. Also,the power from the solar cell will come into the AMS1117-5.0 for positive and gnd for negative. PS: Yes, I know that I'm supposed to connect the EN pin of the 3.3V reg to Vin.


How do I delete secure search (AVG virus) malware?  I am using Firefox as my browser. I am able to bypass it when it appears on start up, but I cannot find and completely remove this irritation?


Is support for Markdown tables on Stack Overflow planned?

I've found a  asking if they are supported, and answers saying that it isn't, but there are suggestions about several different hacks. And even though the question is relatively old, it seems to still hold true.   But I'm wondering if this functionality is planned for any time soon?  And is there an actual reason they didn't want to support tables?


Select query mysql results 'û' appears when I search for 'u'

My query is:   SELECT * FROM enwiki.page where title_text = 'drug';   One of the results I got has the tilte_text = 'Drûg'. How can I prevent that?


I have a oracle linux 7 running Pentaho (an java application).  This machine has 23 GB of ram and improve pentaho performance I'm trying to configure java to alocate 10 GB of RAM to pentaho ( -Xms10240m ). But after I start pentaho I get this.  biserver-ce]# free -g                total        used        free      shared  buff/cache   available Mem:             23           4           0           0          18          18 Swap:             9           0           9   The math don't match (4GB used memory + 0 free memory isn't equal to 23G).  The swap memory is unused and I don't understand why of 18G of data in cache. In another machine with the same config but for test this not happening.  The java process running       root     12409     1  2 Jul26 ?        00:21:16 java -     Djava.util.logging.config.file=/opt/pentaho/server/biserver-ce/tomcat/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Dserver -Xmx10240m -Xms10240m -XX:MaxPermSize=1024m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dsun.jnu.encoding=utf-8 -Dfile.encoding=utf-8 -Djava.awt.headless=true -Djava.endorsed.dirs=/opt/pentaho/server/biserver-ce/tomcat/endorsed -classpath /opt/pentaho/server/biserver-ce/tomcat/bin/bootstrap.jar -Dcatalina.base=/opt/pentaho/server/biserver-ce/tomcat -Dcatalina.home=/opt/pentaho/server/biserver-ce/tomcat -Djava.io.tmpdir=/opt/pentaho/server/biserver-ce/tomcat/temp org.apache.catalina.startup.Bootstrap start   limits config  #ulimit -a core file size          (blocks, -c) 0 data seg size           (kbytes, -d) unlimited scheduling priority             (-e) 0 file size               (blocks, -f) unlimited pending signals                 (-i) 190821 max locked memory       (kbytes, -l) 64 max memory size         (kbytes, -m) unlimited open files                      (-n) 1024 pipe size            (512 bytes, -p) 8 POSIX message queues     (bytes, -q) 819200 real-time priority              (-r) 0 stack size              (kbytes, -s) 8192 cpu time               (seconds, -t) unlimited max user processes              (-u) 190821 virtual memory          (kbytes, -v) unlimited file locks                      (-x) unlimited   EDIT:  After clear the cache with   echo 3 > /proc/sys/vm/drop_caches   I can start the service with 10Gb of RAM, but if I stop the service the cache grow up again. Is there a way to avoid manually clear the cache every time I stop/start the service?


Getting the wrong answer when I try to find max value of the array in C

I have the following code which is supposed to find the maximum value in a preset array. However, the result that I print out is 32766. Could anyone assist me with understanding what I did wrong?  #include <stdio.h>  int main() {     int input[] = { 3, 2, 5, 4, 1 };     int result;     int index = 0;     int tempmax = input[0];      for (index = 0; index < sizeof input; index++) {         if (tempmax < input[index])             result = input[index];     }      printf("The largest number in the array is %d\n", result);     return 0; }


macOS standard keyboard shortcuts for tabbing between windows

Are there any key combinations standards for tabbing between windows within an application?  For example, in the Safari web browser: CTRL-TAB will cycle through the open tabs.  It would be nice if this was     If not, I am wondering if there is a clever technique to implement such a feature (automator?).


Equation number is not coming in end line of equation in two-column document class

\documentclass[aps,twocolumn]{revtex4} \usepackage{epsfig} \usepackage{amsmath} \usepackage{epsfig} \renewcommand{\baselinestretch}{1.45} \begin{document} \begin{multline} 2F_1(a,b,c,y){=}\frac{\Gamma(c)\Gamma(c-a-b)}{\Gamma(c-a)\Gamma(c- b)}~_2F_1(a,b,a+b-c+1,1-y)+\\    \frac{\Gamma(c)\Gamma(a+b-c)}{\Gamma(a)\Gamma(b)}(1-y)^{c-a- b}~_2F_1(c-a,c-b,c-a-b+1,1-y) \end{multline} \end{document}   In two column document class,Equation number is not coming on the line where equation ends, instead it comes in next line,  please help ??


What could be the reasons that making validation loss jumping up and down?

I am building some image classification model with reasonable size data (~3K) images in both training and validation set. However, I noticed the performance on validation set is not stable. For example, here are outputs over 10 epochs (acc means accuracy binary classification on balanced data) epoch [1]: training loss: 2.27 - acc: 0.50 - val_loss: 3.29 - val_acc: 0.49 epoch [2]: training loss: 1.55 - acc: 0.50 - val_loss: 0.92 - val_acc: 0.50 epoch [3]: training loss: 1.07 - acc: 0.51 - val_loss: 1.43 - val_acc: 0.53 epoch [4]: training loss: 0.87 - acc: 0.58 - val_loss: 1.85 - val_acc: 0.61 epoch [5]: training loss: 0.59 - acc: 0.72 - val_loss: 0.58 - val_acc: 0.61 epoch [6]: training loss: 0.52 - acc: 0.79 - val_loss: 2.30 - val_acc: 0.50 epoch [7]: training loss: 0.38 - acc: 0.85 - val_loss: 0.17 - val_acc: 0.86 epoch [8]: training loss: 0.32 - acc: 0.88 - val_loss: 1.52 - val_acc: 0.60 epoch [9]: training loss: 0.21 - acc: 0.91 - val_loss: 0.14 - val_acc: 0.88 epoch [10]: training loss: 0.34 - acc: 0.88 - val_loss: 2.81 - val_acc: 0.49  We can see that in training, it seems fine, but for epoch 6 and 8 validation loss was very high, and the final epoch 10, the validation loss got so high that the model become useless. What could be the reason causing this? If it is overfitting on training data, why we are not seeing steady increase on validation loss?


I have a table in latex like:  \begin{table}[h]    \centering   \setlength{\tabcolsep}{.5\tabcolsep}%   \begin{tabular}{ l @{\qquad} ccc }    \toprule    & \makecell[b]{\textbf{A}} & \textbf{B}       \\    \midrule   p1 & False &  True\\     \bottomrule  \end{tabular} \caption{test} \label{table_example} \end{table}   I want to add a foot note for False. Something like False* and in the footnote of the (bottom of the) page a small description  Thank you


I am confused about using the word 'so'.  Here is an example.      I had a fever so I did not go to work.    Question is, in the above sentence, do I really need a comma before 'so'?


If nothing can escape a black hole, where does Hawking radiation come from?

is a form of electromagnetic wave travelling at the speed of light. Hawking radiation is radiated from a black hole. If nothing can escape the gravitational pull of a black hole, how can Hawking radiation do so?


Is there a transparent way to automatically abbreviate journal names?

I have a BibTeX file containing many references, where the journal titles are (for the most part) written out in full. I would like to replace these in my reference list with the standard abbreviated titles.  Searching the web I can find many suggested solutions to this problem. These all seem to involve maintaining either maintaining your own database of search-and-replace strings, using a GUI reference manager (Jabref), or editing the whole .bib file so that every journal name is a macro call.  My .bib file has 171 entries (it was originally the references for my thesis and I've kept adding to it since then, using the same file for every paper), so creating and maintaining my own database of journal abbreviations would be a huge undertaking. While I will just start using Jabref if I have to, it doesn't seem right that I should have to use a GUI package to solve such an inherently text-based problem.  What I really want is a script (or even better, a LaTeX package) that will just go through my .bib file and replace every full journal name with an abbreviation looked up in one of the many standard databases that exist for this purpose. (Of course there will probably be some that get missed, but I don't mind fixing one or two by hand.)  I'm guessing that such a painless, transparent solution doesn't exist, but it can't hurt to ask here. It seems to me that this must be a very common thing to want to do, and I'm kind of surprised that the functionality isn't just built into BibTeX in the first place.


Is it possible for users to view a post's up and down vote history?

Is it possible to view a graph showing a post's up and down votes over time?   Not who voted for it, just "vote received at [timestamp]". I know if a user has enough rep they can see the total up and down votes their post has received so far, but I'm not aware of being able to see the history of votes on a post.


Using Inclusion/Exclusion to solve $x_1+x_2+x_3=15$ with $x_1,x_2\leq 5$ and $x_3\leq 7$ for non negative integers $x_1,x_2,x_3$

I want to solve for:     Number of integers solutions to the equation $x_1+x_2+x_3=15$ with $x_1,x_2\leq 5$ and $x_3\leq 7$ for non negative integers $x_1,x_2,x_3$   How can this be done using the principle of inclusion/exclusion?


JavaScript, Why does function name have no significance in function literals?

I had some doubts for function literals   Why does the function name in function literals have no significance? Why aren't they important? Why doesn't the function get invoked when we try to call using the function name in case of function literals?  var a = function b(){         //some code         } b(); //Doesn't work    Why does the name b have no significance but a does?  I am new to JavaScript and a beginner so any help would be appreciated!


Will be Dragon Age II on XBox 360 available to all console users?

I want to buy DA2 for X360 from Marketplace. I wonder if when I buy it on my user, can other console users play this game?  Notice, I do not mean playing simultaneously just if the game will be available to play to other users.  Update:  Not necessary a duplicate - I have various experiences depending on actual game, publisher, etc. I am looking for confirmed experiences with Dragon Age II bought digitally for Xbox 360.


How can I "squeeze" a game object when it is pressed between two others?

I am trying to "squeeze" a game object when it's pressed between two other objects (e.g., "squeezer 1" and "squeezer 2," below) that continue to move towards eachother.  I wish to reduce width of the object so that total area of the game object is maintained while still being between the two squeezers.            How can I achieve this effect?


How to find the number of bytes rewritten to a folder hierarchy?

I want metrics for how much writing and reading have been done to a folder.  vmstat -d gives metrics at the whole disk level. iotop will give per process rw stats.  But how can I find out how much writing has been done to a folder or file?


How can I set up password-less SSH login?

I want to be able to login to a remote via ssh without having to enter the password all the time.   How do I set it up? Is a different command required to execute a password-less session?


I have been reading some tutorials and documentation on Rawtherapee software, specifically its exposure compensation.  I am curious how exposure is correctable after the RAW image is captured?  For example, if I take a photo of clouds that is overexposed and there is a white clipped area, how can rawtherepee correct that clipped area if all it know is that there is a bunch of white pixels. How can it restore the white pixels to non-white?  Is exposure  just a post process value that is contain in the raw file, but not a characteristic of the actual raw sensor data? If this is the case, why even apply exposure in a RAW image and not just always after the fact?  If my question seems unclear it is probably because my conceptions are unclear to begin with.


Use NOLOCK hint when calling table valued function

Suppose the following function:  CREATE FUNCTION [dbo].[ufnTest]() RETURNS TABLE AS RETURN SELECT 1 AS Nr   My actual function will select actual data from many different tables. I (mostly) understand the risks of using nolock hints, and decided that in this case I actually want them. So I try to call above function like this:  SELECT * FROM [dbo].[ufnTest]() WITH(NOLOCK)   However,  with the following message:     Incorrect syntax near the keyword 'with'. If this statement is a common table expression, an xmlnamespaces clause or a change tracking context clause, the previous statement must be terminated with a semicolon.   The tips for fixing this error are not relevant. Perhaps this table hint isn't available for table valued functions then?  There are several alternatives I'd consider. One is to use the hint on all tables in my select query, but I'd prefer not to as (a) I'll have to remember this whenever I change the function around and (b) it's repetitive. Another alternative would be to SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED, but a downside is that I don't quite know how to set it back to wat it was before (and statements after the select from my TVF should have the original isolation level).  So, I'd prefer to make WITH (NOLOCK) for a select from a table valued function work. Is this possible?


How can I check the status of a moderator chat flag?

I just raised a custom mod flag on a chat message and was wondering if there was a way to see that status of this flag, or if it was marked as helpful or declined.


Ubuntu 20.04 hangs on reboot to runlevel 3

I'm helplessly trying to boot my machine to runlevel=3. Whether adding ad-hoc via editing command line during grub session or offline, via updating /etc/default/grub: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash 3" (then grub-update), once rebooted, machine hangs and stops with: `overlayfs: missing 'lowerdir'`   above there is also: `aufs aufs_fill_super: ...`  I can boot to recovery mode, remove "3" and reboot to normal use with ease, but cannot boot to runlevel 3. Any hints are appreciated. Thanks in advance, P.


Book about a water planet (not earth) with people living off slow moving air bubbles

It was about an all water world, where people were living under water.   They'd manage by catching air bubbles that would float slowly under water by catching them in contraptions they'd wear on their head.   If I remember correctly, the planet was created by some sort of portal from Earth, to dispose of extra seawater.  The people that live on this planet couldn't surface because it's too close to (a) sun, so they would die if they did.   A thing I also remember is the core of the planet was this 'being' that had mind controlling abilities.


Can I travel to the UK one day before my visa starts?

I am planning to travel to the UK with my mother. Her visa is valid from 15th June and my visa's validity starts on July 1st.   I will be leaving from Chennai on June 30th, with a transit in Mumbai, but the arrival in the UK is late on the 30th of June. Will I be permitted to travel or will I be prevented from boarding because of the July 1 validity?   Do I need to apply for a vignette transfer? I'm confused about it, as some sites say it is only for those with a new passport. If I do need a vignette transfer, what is the procedure and what documents are required?


Why do I need to know the current of the other device when using transistor

I have a LED lamp (it already HAS a power adapter), all I'm trying to do is turn it on using a NPN transistor (2N3904):    Someone told me that I will burn my transistor or controller attached to the base if I don't know how much current the device (the LED lamp) is using.   I can only understand that I need to know this, so I can be sure that the transistor can handle that much current, but I don't understand what does it has to do with base and burning down the controller or whatever is attached to the base? Do I need to know the current of the device because extra current might come into the base? I'm completely lost..  My question: "Under what conditions can extra current come into the base?"  UPDATE: I measured the current for the LED, and it uses 150mA, does that mean I can safely use 2n3904?


NullPointerException in a collection of MongoDB for dates

I have tried the following code, it displayed the date values for the first two times of the run, but later started throwing a nullpointerexception, any idea why  this is happening?  DBCursor c=test.find(); while(c.hasNext()) {     DBObject dbc=c.next();     Date n=(Date)dbc.get("time");     System.out.println(n);      Calendar cal = new GregorianCalendar();     cal.setTime(n);     System.out.println(cal.get(Calendar.DAY_OF_MONTH));  }


What does Lijun Wang's experiment about supraluminal speed of light in a medium mean?

This is a summary from Physics World of the paper: L J Wang et al. 2000 Nature 406 277-- "Wang and colleagues begin by using a third continuous-wave laser to confirm that there are two peaks in the gain spectrum and that the refractive index does indeed change rapidly with wavelength in between. Next they send a 3.7-microsecond long laser pulse into the caesium cell, which is 6 centimetres long, and show that, at the correct wavelength, it emerges from the cell 62 nanoseconds sooner than would be expected if it had travelled at the speed of light. 62 nanoseconds might not sound like much, but since it should only take 0.2 nanoseconds for the pulse to pass through the cell, this means that the pulse has been travelling at 310 times the speed of light. Moreover, unlike previous superluminal experiments, the input and output pulse shapes are essentially the same."   I realise that the velocity of light in a medium is comprised of the phase velocity, the group velocity, and the front velocity. While the group velocity can exceed the value of c in a vacuum, the front velocity is not supposed to. The way this sounds, the front velocity is exceeding c in a vacuum by 310 times.    blue dot=phase velocity, green=group, red=front (wiki)  The wavepacket seems to exit the cell well before it enters, but the negative refractive index "forward shifts" the leading edge of the pulse. It is argued that although this is superluminal, information cannot be transmitted faster than c.  introduced a jump discontinuity into the waveform.Its max speed was c Here is a popular account from  . What if you used one photon? What if the photon itself were the information and not a carrier?


I am very beginner, I want to upgrade Ubuntu 19.04 to 20,  I do command below: $ sudo apt update  $ sudo apt upgrade $ sudo apt dist-upgrade $ sudo apt autoremove $ sudo apt install update-manager-core  source repository is   and upgrade behavior is normal. I think the above commands are run without problems. result after any command is: 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.  but after run do-release-upgrade , I can not upgrade and display : Checking for a new Ubuntu release Your Ubuntu release is not supported anymore. For upgrade information, please visit: http://www.ubuntu.com/releaseendoflife  Get:1 Upgrade tool signature [1,554 B] Get:2 Upgrade tool [1,337 kB] Fetched 1,338 kB in 0s (0 B/s) authenticate 'focal.tar.gz' against 'focal.tar.gz.gpg' extracting 'focal.tar.gz'  Reading cache  Checking package manager  Can not upgrade  An upgrade from 'disco' to 'focal' is not supported with this tool. === Command terminated with exit status 1 (Sun Jul 19 03:33:35 2020) ===  What should I do?


Convenient way to cd into a frequently-used dir?

A dir I cd into a lot has a really long path. I'd like to reduce keystrokes.  I have tried this...  sudo ln -s /mnt/c/Users/me/ho/hum/bin /mybin   It works, but something about it seems wrong.  Is there a better way?  I currently use bash, but a solution that would still work if I switched shells would be nice.  System info  Running Unbutu on Windows Subsystem for Linux.  $ uname -a Linux Hostname 4.4.0-17763-Microsoft #253-Microsoft  \     Mon Dec 31 17:49:00 PST 2018  \     x86_64 x86_64 x86_64 GNU/Linux


I'm trying to learn rigging, so I started with very very simple character model. But when I weighted head vertexes and tried to rotate bone, the head became deformed as top of the head had lower weight then the bottom part of head.  Weights:   Head bone rotated to front site:   Any idea what did I do wrong? I tried to follow video tutorial on youtube, where it worked correctly right away, but with a bit complicated character model.  Thanks a lot for all help!


Type of cycle for losing weight and staying fit for a beginner

Over a year ago I was diagnosed with a collapsed arch in my left foot and despite trying many times I have not been able to get back on the treadmill. I have been thinking of getting a bicycle to start losing the weight that I have put on. I currently weight 240 lbs. I have a couple of questions:   Should I get a hybrid bike or a mountain bike or a road bike? I have read conflicting views on what is better for weight loss and general fitness. Should I buy a geared or a non-geared bicycle?   I am not looking to become an expert rider and would probably only ride 3-5 times a week. I just need something that will get me a bit of fresh air and help me loose a bit of fat.


I'd appreciate any help, I know it has something to do with the geometric series but I still can't figure out how. I thought about integration but couldn't find a way to do it. $$\sum_{n=1}^\infty \frac{1}{2^nn(3n-1)}$$  Thanks.


Just wondering if anyone has an example of a (complex) function sequence $(f_n)$ which is uniformly convergent, but the sequence of cubes $(f_n^3)$ is not uniformly convergent?


Can I use "lest" in the following sentence?

I am not a native English speaker/writer, but I am working on a technical thesis written in English. To me, for some unknown reason, it feels natural to write the following:     However, the simplicity of the theory implies that it is not possible in reality, lest someone would surely have already done it.   Googling for the definition of lest seems to imply that this is not a correct usage.  So, can I use lest like I do, and if not, do any of you also feel there is any merit to my spontaneous feeling that it actually is ok to use it here? The first answer of  post () seems to support my case, but i am not sure.


Why White Blood Cells (WBCs) do not react to foreign bodies like sperm?

Why do the white blood cells allow foreign bodies like sperm to exist inside body cavity without any reaction?   White blood cells function is to fight against foreign bodies (from the text books).


Can't log into chat with the "HTTPS Everywhere" plugin

I know that HTTPS isn't officially supported, but it works well enough for me on StackExchange most of the time.     Recently something changed with chat so that I can't login to it with the HTTPS Everywhere plugin (in Firefox) enabled.  My use case:   I'm on  (using HTTPS) From the "StackExchange" menu I select "chat" to get to the Pro Webmasters chat rooms I go to chat (also on HTTPS), but it is a list of chat rooms that are not specific to the webmaster site.  I also notice that I'm not logged in. I click the "login" link and I get get the message Please log in to any StackExchange site first, or log in via StackExchange.com. Firefox pops up the security warning: Although this page is encrypted, the information you have entered is to be sent over an unencrypted connection and could easily be read by a third party. Are you sure you want to continue sending this information? (I hit "Continue") The chat server gives me the error No referer was present - this may be due to a browser setting   Up until a week or two ago I was able to access chat even when using the HTTPS Everywhere plugin.  Something changed recently.


I want OSM administrative boundaries from . I can get the geodata in different formats there, but the attribute data always is a separate JSON file. I want them both in just one file, or to be able to merge the information.   I haven't found a solution to merge the GeoJSON.   What's the workflow to get the two files joined and saved as a shapefile, for example?


Im 19 years old and is buying a $45k car with it?

Im 19 years old and share rent with someone. I make $2,320 a month before tax. My rent is $750 a month and i don't pay for anything else. Would it be a good idea or will i go into crippling debt if i buy a $45k 2014 ford mustang shelby gt500? I am in no rush to buy it. Tax returns will be in sometime soon ish and i can just save for a while. Im thinking about a 10%-15% down payment and a 60 month term. I have no credit at all so idk if i can even get the car. My mother has good credit and can probably co sign. I also understand my insurance would be quite high. Should i go through with it in the next say 6 months or so?


Seeing what Linux kernel compile options where used

Is it possible to tell what compile options a running Linux kernel has been built with?  I am particularly interested in those that impact on preemptive behavior, such as  CONFIG_PREEMPT_VOLUNTARY.  Thanks Pete


When running in strict mode, SELinux would not let me start HTTPD since my mod_jk.so module was copied from an external server.  I copied mod_jk.so externally since I couldn't find the package to install it.  But, now, in order to run HTTPD, I need to put SELinux in Permissive mode.  I read on the  that I could add a custom policy to allow this mod_jk.so to be used.  Is this the recommended way so that I can use my external mod_jk.so file?


How to remove sogou as default startpage?

In Firefox I currently have as startpage 123.sogou.com, but I am not able to remove the website as my startpage. Every time I am changing the default page in Firefox back to Google, it automatically turns back to sogou after a restart. Any idea how to remove this?  I also tried the steps from , but it has not changed anything.


Does there exist $\tau \in \mathbb{R}$ such that $a_n - n\tau$ is bounded?

Suppose that $\lbrace a_n \rbrace_{n=1}^{\infty}$ is a sequence in $\mathbb{R}$ and that there exists a $D>0$ such that $$\vert a_{n+m} - a_n - a_m \vert \leq D$$ for all $n,m \in \mathbb{N}$. Must there exist $\tau \in \mathbb{R}$ such that the sequence $a_n - n\tau$ is bounded? I believe that the answer is yes, but I'm having difficulty proving it. I can prove the (apparently) weaker fact that $\displaystyle\lim_{n\to\infty}\frac{a_n}{n}$ exists.


Shield Master - Can the shield push be taken before an attack?

Can the shield push from the Shield Master feat be taken before an attack? i.e. Push prone, follow up with an attack while they're down.     Shield Master      You use shields not just for protection but also for offense. You gain the following benefits while you are wielding a shield:      If you take the Attack action on your turn, you can use a bonus action to try to shove a creature within 5 feet of you with your shield.


I've an error with installing steam;   Reading package lists... Done Building dependency tree        Reading state information... Done You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies:      gcc-5-multilib : Depends: libc6-dev-i386 (>= 2.11) but it is not going to be installed      libc6-dev-x32 : Depends: libc6-dev-i386 (= 2.23-0ubuntu5) but it is not going to be installed      steam:i386 : Depends: libstdc++6:i386 (>= 4.3) but it is not going to be installed           Depends: libx11-6:i386 but it is not going to be installed           Depends: libudev1:i386 but it is not going to be installed           Depends: libxinerama1:i386 but it is not going to be installed           Depends: libtxc-dxtn0:i386           Depends: libgl1-mesa-dri:i386 but it is not going to be installed           Depends: libgl1-mesa-glx:i386 but it is not going to be installed   E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).  here  If I'm typing; sudo apt-get -f install there comes this:   Reading package lists... Done  Building dependency tree         Reading state information... Done  Correcting dependencies... Done  The following packages were automatically installed and are no longer required:       libstdc++-5-dev x11-apps xinit xorg-docs-core Use 'sudo apt autoremove' to remove them. The following additional packages will be installed: libc6-dev-i386 The following NEW packages will be installed: libc6-dev-i386 0 upgraded, 1 newly installed, 0 to remove and 310 not upgraded. 3 not fully installed or removed. Need to get 0 B/1262 kB of archives. After this operation, 6936 kB of additional disk space will be used. Do you want to continue? [Y/n] y (Reading database ... 203569 files and directories currently installed.) Preparing to unpack .../libc6-dev-i386_2.23-0ubuntu5_amd64.deb ... Unpacking libc6-dev-i386 (2.23-0ubuntu5) ... dpkg: error processing archive /var/cache/apt/archives/libc6-dev-i386_2.23-0ubuntu5_amd64.deb (--unpack): trying to overwrite '/usr/include/fpu_control.h', which is also in package libc6-dev-amd64:i386 2.23-0ubuntu5 Errors were encountered while processing: /var/cache/apt/archives/libc6-dev-i386_2.23-0ubuntu5_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)


Scale tikzpicture with axis and xbar to the "real" textwidth

So, whenever I create a xbar plot with long labels it happens to me that the tikzpicture is scaled too wide because (I guess) textwidth only applies to the axis but not the labels. So I thought I substract the width of the longest label from textwidth, but then the width is too small. My question is:   how can I get the "real" textwidth? if possible, how can I get that automatically without entering the longest label by hand     \documentclass[12pt,a4paper]{scrreprt}  \usepackage[utf8]{inputenc} \usepackage[english]{babel}  \usepackage[T1]{fontenc}  \usepackage{tikz} \usepackage{pgfplots} \usepackage{pgfplotstable} \usepackage{filecontents} \usepackage{lipsum}  \begin{filecontents*}{species.dat} species,no_dbh Fagus sylvatica,0.746478873239437 Pinus sylvestris,0.633802816901408 Quercus petraea,0.563380281690141 Pseudotsuga menziesii,0.126760563380282 \end{filecontents*}  \begin{document} \lipsum[1-1]  \begin{figure}[hpbt]      \pgfplotstableread[col sep=comma]{species.dat}{\steigi}     \centering     \begin{tikzpicture}         \begin{axis}[             xbar,             x tick label style={font=\footnotesize},             y tick label style={font=\scriptsize},             height=5cm,             width=\textwidth,             xmajorgrids=true,             major grid style={dotted, very thick},             axis x line*=bottom,             axis y line*=none,             bar width=5pt,             symbolic y coords={Fagus sylvatica,Pinus sylvestris,Quercus petraea,Pseudotsuga menziesii},             ytick=data,             xticklabel={\pgfmathparse{\tick*100} pgfmathprintnumber{\pgfmathresult}\%},             y dir=reverse,             enlarge y limits=0.2,             xmax=0.85,             xmin=0,             nodes near coords,             every node near coord/.append style={anchor=west,font=\scriptsize},             nodes near coords align={horizontal},             point meta=x*100,             nodes near coords=\pgfmathprintnumber{\pgfplotspointmeta}\%             ]                          \addplot[fill=gray]  table [x=no_dbh,y=species]{\steigi};         \end{axis}     \end{tikzpicture}     \caption{Tree species probability} \end{figure}  \lipsum[2-2] \end{document}   My solution is too use width=\textwidth-width("Pseudotsuga menziesii") but then it's scalled too small.


Install programs without an internet connection on Debian

So I've been battling with my debian install lately, it doesn't have the firmware for either eth0 or wan0 NIC's. However, I got a firmware.zip file that I need to extract to /lib/firmware. The problem is, since I have no connection from the computer, I can't just apt-get what I want.  Here's my question, I don't know a huge amount about the natural dependencies of Linux (Debian specifically), so I need to know a way to get them installed without internet. I can't even unzip this firmware file I have to get internet because as far as I can tell there is no default unzipping program. If I were to download the package and transfer it over on my USB drive, then it wouldn't run, because it needs libbz2-1.0, libc0.1, libc6, libc6.1, and libgcc1. It also suggests a program called zip. libc6 requires libc-bin and recommends libc6-i686, and suggests debconf.libc0.1.  Without being able to unzip anything who knows if I'll even be able to install these things. Do you guys know if there's just a very basic package that will install all these standard packages for me?    I'm going to put some of the errors I'm getting now even though I think that I installed the drivers.  ping google.com ping: unknown host google.com  ping 192.168.10.101 connect: Network is unreachable   dmesg | grep wlan0 [ 5.348890] udev [432] : renamed network interface wlan0 to wlan1   dmesg | grep Broadcom [ 1.028800] eth0: Broadcom 44xx/47xx 10/100BaseT Ethernet 00:15:c5:b8:79:75 [ 5.127449] b43-phy0: Broadcome 4311 WLAN found (core revision 10) [ 5.309856] Broadcom 43xx driver loaded [ Features: PMLS, Firmware-ID:FW13 ]   ifup wlan1 Ignoring unknown interface wlan1=wlan1.   ifconfig -a eth0      Link encap:Ethernet  HWaddr 00:15:c5:b8:79:75             BROADCAST MULTICAST  MTU:1500  Metric:1           RX packets:0 errors:0 dropped:0 overruns:0 frame:0           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000            RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)           Interrupt:17   lo        Link encap:Local Loopback             inet addr:127.0.0.1  Mask:255.0.0.0           inet6 addr: ::1/128 Scope:Host           UP LOOPBACK RUNNING  MTU:16436  Metric:1           RX packets:0 errors:0 dropped:0 overruns:0 frame:0           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:0            RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)  wlan1     Link encap:Ethernet  HWaddr 00:18:f3:85:99:07             BROADCAST MULTICAST  MTU:1500  Metric:1           RX packets:0 errors:0 dropped:0 overruns:0 frame:0           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000            RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)   This is where I get really confused:  ifconfig wlan1 192.168.10.111 b43-phy0 ERROR: Firmware file "B43/ucode5.fw" not found b43-phy0 ERROR: Firmware file "B43-open/ucode5.fw" not found b43-phy0 ERROR: You must go to blah blah blah and get the firmware SIOCSIFFLAGSS: No such file or directory   So despite the fact that my dmesg says that the 43xx driver is loaded, ifconfig says it's not. What do I do at this point? I'll post a bit more data in one minute.    So I guess I didn't run firmware-b43-installer_4.150.10.5-4_all.deb. I just did it by typing this:  dpkg -i firmware-b43-installer_4.150.10.5-4_all.deb (Reading database ... 14006 files and directories currently installed.) Preparing to replace firmware-b43-installer 4.150.10.5-4 (using firmware-b43-installer_4.150.10.5-4_all.deb) ... Unpacking replacement firmware-b43-installer ... Setting up firmware-b43-installer (4.150.10.5-4) ... ...   However at this point it tries to access a mirror (). Holy crap is there any way possible to just get files that don't require an internet connection?


Professor X introduces professor Y to me. Should I CC prof X when emailing prof Y?

I email to prof X to ask about a PhD student vacancy. He refuses because of his retirement, but kindly introducing prof Y to me. When emailing to prof Y, should I CC prof X?  I do this because at the end of the letter he says that he wants me to get him informed of my work. But more importantly, even without this saying, I think CC to someone when they has introduced me to another person is a good etiquette. It shows that I'm transparent.  But what if they are not really close? They may know each other through the work of each other, but hasn't had any conversation? Would this make things become awkward? And if he didn't say anything about informing him, would CC him simply annoying him?  While you can say that this question is a continue of , the names have been rearranged completely. For the sake of your understanding, please assume that the two questions have no relation to each other.


Can I mix sources from different ubuntu versions?

As we know that we are using  for installing packages and repositories configuration file located at /etc/apt/sources.list.  I am using Ubuntu 12.10 (Quantal Quetzal) which reaches . That means no updates or support. So, the question is, can I use sources.list file from another version, say Ubuntu 12.04 LTS, and will it negatively affect the system.


I have misplaced my iPhone 6s password and it is saying it's disabled due to too many tries.


Since I installed Ubuntu 20.04 the printer "has no connection" although it shows to be as chosen


Two term free resolution of an abelian group.

This is probably a very easy question but I think I am missing some background regarding free abelian groups to answer it for myself.  In Hatcher's Algebraic Topology, the idea of a free resolution is introduced in the section on cohomology.       A $\textbf{free resolution}$ of an abelian group is an exact sequence $$F_2 \to F_1 \to F_0 \to H \to 0$$ such that each $F_i$ is free.    Let $f_0:F_0 \to H$ and choose a set of generators of $H$. Let $F_0$ be the free abelian group with basis in one-to-one correspondence with this set of generators.   Then we can easily form the two term free resolution   $$\to 0 \to Ker(f_0) \to F_0 \to H \to 0$$  Why is $H$ an abelian group a necessary condition so that there necessarily exists resolution of the form $0 \to F_1 \to F_0 \to H \to 0$?   For what non-abelian group does such a free resolution not exist?


libGDX: dealing with platform specific code

I'm using AndroidStudio with libGDX and want to share the score I got in my game to social networks (WhatsApp, Facebook, E-Mail, ect.). I even succeed in doing so, but I have a fatal problem. As help I used that article on GitHub:   I brought everything of that article in my code   and added this in my main Activity:   Leaderboard leaderboard;  public PlayState(Leaderboard leaderboard) {     super(nplatform);      this.leaderboard = leaderboard;      leaderboard.shareScore(); }   But I want to call the method, when clicking on a button in gameover-screen, so in update method not in constructor. But trying to do so   @Override public void update(float dt, Leaderboard leaderbord) {  leaderboard.shareScore();   // The code behind that isn't important  }   I got that error:  E/AndroidRuntime: FATAL EXCEPTION: GLThread 1152               Process: com.demo.game, PID: 29103               java.lang.NullPointerException: Attempt to invoke interface method 'void com.demo.game.NativePlatform.shareScore()' on a null object reference                   at com.demo.game.PlayState.update(PlayState.java:245)                   at com.demo.game.states.GameStateManager.update(GameStateManager.java:32)                   at com.demo.game.RiskyDemo.render(RiskyDemo.java:37)                   at com.badlogic.gdx.backends.android.AndroidGraphics.onDrawFrame(AndroidGraphics.java:459)                   at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1553)                   at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1253)   the links are all bringing me to the part where "leaderboard.shareScore();" is.  If there is a way to bring the code in update method, I would be very grateful  Thanks for helpful answers! :)


get SObject field name using the field label?

When I google I find a lot of answers on how to get field label using field name.  For example:  SObjectType type = Schema.getGlobalDescribe().get('Account'); Map<String,Schema.SObjectField> mfields = type.getDescribe().fields.getMap();   Is it possible to do it like using a label to get the Field Name?   If I have a 'String Label' and I want to use this label to get the field Name from Some SObject. How should I do it?  Thanks for Helping!


Automatically colour previously defined strings of text (for strings with spaces &/or punctuations)

Main question  Answers to the question  show how to colour pre-defined strings of text, but all those pre-defined strings are without spaces and punctuation marks.  I would like to ask if it were possible to design a MWE with (more or less, but without specificities such as; I quote; "only the endings of words") analogue function, but which additionally is functional also for strings with spaces and/or punctuation marks.  I am sorry if this is a duplicate. If so, I would be happy to be shown the way (to the duplicate).  Suggested MWE strings, colouring rules and trial text  Since it was suggested (in the comments) for me to propose some strings, colouring rules, and a piece of text to test the MWE, I have created the following poetic piece:  \documentclass{article}  \begin{document}  {\huge Strings to be coloured red} (regardless of how they are formatted, this should e.g. work both for bold and for not bold text) \vspace{3em}  \begin{itemize} \item \textbf{old, you} \item \textbf{... and when} \end{itemize}  \vspace{3em} {\huge Strings to be coloured blue} (regardless of how they are formatted, this should e.g. work both for bold and for not bold text) \vspace{3em}  \begin{itemize} \item \textbf{you don't} \end{itemize}  \vspace{3em} {\huge Suggested poem to be automatically coloured (according to text strings and rules predefined above):} \vspace{3em}  \textbf{When you are old, you know that.}\\ When you are old, you know how the story ends without reading.\\ Or maybe you don't know, but you know that the story will end.\\ When you are old, you know what you did wrong.\\ Or maybe you don't know, but you know that you did wrong.\\ You realize that what you have liked is just what you have known.\\ And that you like so much more than you have known.\\  When great surgeons undergo surgeries ...\\ ... and when great writers read a book ... \\ ... and when great lovers are loved ...\\ Then what?\\  Don't be mistaken: it is not because you are dead\\ that you will not do wrong!\\ People might stumble over your bones and get terribly injured.\\ Getting older never stops.\\ So donate your body to science, and grow old well.  \end{document}


How would I underline an equation with a curly brace and an explanation?, like I've pictured below?   I've tried to use the amsmath package, but the \underline directive does not produce the brace and creates ugly space between the A, B and =.


Three spheres of diameters 2,3&4 cm's respectively formed into a single sphere.Find the diameter of the new sphere assuming that the volume of  a sphere is proportional to the cube of its diameter


It shows error like file size is too large, I am using through my institution Internet connection its limited access. so I need help to how could install the spark???   My system is Ubuntu 12.04 32-bit version.  Reply me even whatever mistake in my communication don't mind that...


Add property to anonymous type after creation

I use an anonymous object to pass my Html Attributes to some helper methods. If the consumer didn't add an ID attribute, I want to add it in my helper method.  How can I add an attribute to this anonymous object?


Will ImgBurn -> ISO -> new DVD make an identical copy of a Windows 7 install DVD?

I'm wanting to buy Windows 7 Ultimate but in case the DVD gets scratched I want to immediately make a backup.  What I want to be sure of is that I don't lose anything in the backup.  If, when I get the DVD, I do the following in :   Create image file from disc Write that image file to new DVD disc from ImgBurn   ... will it create me a truly identical copy of the install DVD?  I'm planning to actually install from the newly-burnt DVD to make 100% sure it is not missing anything.  Will I lose some kind of copy-protection information in the copy process that would make the backup not work?  Also, how large a backup DVD will I need to write to?


Writing a character N times using the printf command

I found the following command to repeat a character in Linux:  printf 'H%.0s' {1..5000} > H.txt   I want, for example, H to repeat 5000 times. What does %.0s mean here?


I got an error when I try to create new class (that defined in the parent class) from a static method (in the parent class).     error: non-static variable this cannot be referenced from a static context   public class ParentClass {     public class ChildClass {         ...     }      public void method () {         // Compiles         ChildClass childClass = new ChildClass();     }      public static void static_method () {         // error: non-static variable this cannot be referenced from a static context         ChildClass childClass = new ChildClass();     } }   Of course I can creat the ChildClass class as new individual class but I couldn't understand why this wouldn't work.  ------- Edit -------  Making the inner class (ChildClass) static would make the class work as separate class (), as it was in different class, which is exactly what I needed.      public static class ChildClass {   ------- Edit #2 -------  Just to make it clear non-static class, as in the first code example, when used and created from non-static method like in method(), can access and use the ParentClass's functions and vriables.


I know that someone already asked pretty much the same but I cannot solve the problem of centering my table after using threepartatble command for the notes.  Here it is:  \begin{table}[h!tb]  \centering \begin{threeparttable}[b] \caption{Table1} \label{one} \begin{tabular}{l r r r}  \toprule \hline \multirow{2}{*}{country} & region & county & village \\ North Africa & 13.0 & 11.0 & 7.0 \\ Central and South Africa & 2.0 & 5.0 & 7.3 \\ Middle East & 5.3 & 3.0 & 3.0 \\ Asia & 19.0 & 24.0 & 16.7 \\  Southern Europe & 10.6 & 4.0 & 3.0 \\ ACP countries & 43.6 & 43.0 & 46.0 \\ Unallocated & 6.5 & 10.0 & 17.0 \\ \bottomrule \end{tabular} \begin{tablenotes}\footnotesize \item Source: book \end{tablenotes} \end{threeparttable} \end{table}


Graph Algorithm To Find All Connections Between Two Arbitrary Vertices

I am trying to determine the best time efficient algorithm to accomplish the task described below.  I have a set of records. For this set of records I have connection data which indicates how pairs of records from this set connect to one another. This basically represents an undirected graph, with the records being the vertices and the connection data the edges.  All of the records in the set have connection information (i.e. no orphan records are present; each record in the set connects to one or more other records in the set).  I want to choose any two records from the set and be able to show all simple paths between the chosen records. By "simple paths" I mean the paths which do not have repeated records in the path (i.e. finite paths only).  Note: The two chosen records will always be different (i.e. start and end vertex will never be the same; no cycles).  For example:       If I have the following records:         A, B, C, D, E      and the following represents the connections:          (A,B),(A,C),(B,A),(B,D),(B,E),(B,F),(C,A),(C,E),         (C,F),(D,B),(E,C),(E,F),(F,B),(F,C),(F,E)          [where (A,B) means record A connects to record B]   If I chose B as my starting record and E as my ending record, I would want to find all simple paths through the record connections that would connect record B to record E.      All paths connecting B to E:       B->E       B->F->E       B->F->C->E       B->A->C->E       B->A->C->F->E   This is an example, in practice I may have sets containing hundreds of thousands of records.


How can I become more akin to my "Mary Sue" Player?

I've been playing for about 3 years with this guy on my group. He's a very nice and encouraging person and I actually appreciate him as an individual; however I just can't come to enjoy his presence as a Player.  His characters make me feel quite uncomfortable, since he always makes them way too virtuous and likes to steal the scene. His characters are either made to "troll" or lecture villains, and are also made without a trace of negative traits; they're shining examples which can get very obnoxious since he just likes to think about them as undefeated heroes, and gets quite upset when a monster or villain stomp on him...  I actually think I make my best effort to kill his characters and render them useless, since he often outshines the rest of my players and talking to him isn't working. He likes to aid the party members, but takes every chance to lecture them or make a display of heroism and concern so he can steal the spotlight and start talking.  All of us, the remaining 4 (including me) on the table dislike this, however none of us want to kick him out not only because he's a good friend, but because we had an incredibly hard time getting together to roleplay since we're not on a country in which roleplaying is even remotely popular, specially with our favorite system (Anima: Beyond Fantasy).  We agreed to talk to him, TWO TIMES, but twice, my players shied away and I was left alone to talk to him without results.  This guy wants to have a one player role playing game with him, and I don't know what to do. I haven't played in a while and I'm craving to do so, however I don't know how to actually like the characters he makes.