I'm selling my home just one year after purchasing it (to move into a home with my husband).  I might make as much as $6,000 profit.  I intend to use this money for improvements on the new home.  Will that be considered rolling over to a new home, thereby allowing me to avoid capital gains tax, or is the tax unavoidable?

I am in the United States, in Colorado.  I purchased a house in July of 2013.  It was in poor condition, so I spent the first two months repairing things before moving in.  Now, 11 months after moving in, I'm ready for a change.  Here's the plan.  I'm wondering what the tax implications will be?  Current house:   Purchased July, 2013 Purchase price: $72,000 Down payment / closing costs: $20,000 Materials and permits for repairs: $20,000 Sell in September, 2014 for $150,000, taking away ~$75,000 in cash.   Basically, I'll make $35,000 on the current house after all expenses.  How much do I need to put toward my next house to avoid taxes?  I have my eyes on a house for $130,000.  Ideally, I'd put $50,000 down, use $10,000 toward repairs/upgrades, and use the remaining $15,000 to pay off debt.


Just look at what happened here, very simple question:

Subtitle:  Should beginner's questions be off-topic strictly because they are beginner's questions? The sorts of questions that newbie programmers ask has come up before many times in side discussions, and comes up constantly on the main site.  Here are two examples from today:   Both of the above questions are well-formed, specific, answerable definitively, not open to opinions and are otherwise directly on-topic for StackOverflow. However both questions were downvoted and closed by users who said they were off-topic because they were too basic in nature.  To quote one particularly pointed comment:  This question appears to be off-topic because it is trivially answerable by reading a beginners' language tutorial.  That pretty much sums it up. Here's another case posted yesterday:  This is another beginner's question.  The topic is fairly elementary.  The answer can likely be found in Strustrup's book, or any number of other books that we recommend.  Considering only that it is a beginner's question of a fundamental nature, should the question be considered off-topic? Lots of questions are posted from lazy people who are just looking to be spoon-fed answers.  Those questions should all be closed because they never meet the quality guidelines.  That's not what I'm asking about here.  What I'm asking about is just the elementray nature of the question.  If the question is elementary, but otherwise meets our quality and topical requirements, is it off-topic? I have always thought that .  But enthusiasts come in all shapes and sizes, from the bright-green newbie writing their first program to the grizzled veterans who have seen and done it all a million times before.  I have always felt that SO's stated audience does not, or should not, discriminate based on the expertise of the asker. Some  that newbie questions are off-topic because they aren't interesting enough for the answerers.  But this seems highly subjective to me.  After all, every question is a "no-duh softball" to someone.  Just today I provided what I thought was a  to a problem, only to learn a few minutes later that KonradRudolph and Yakk had come up with the  over a year before.  No-duh. It seems to me that this has been coming up much more recently.  Sometimes I'll chime in with a comment to the downvoters and close-voters suggesting that the level of expertise is not a parameter in deciding if a question is topical.  The downvoters will often agree.  But we don't have a difinitive resource to point to that says this is so -- it doesn't say it in the FAQs, and I've not found anything difinitive in meta. So what says meta?  Can a question about basics be on-topic for Stack Overflow?  If it can be off-topic, how do we know where to draw the line?


How can ı fix this?  "when ı approach the object,camera is slowing"   (Sorry i didnt upload the example video to this website)

I often find that I can zoom in to a point, but then cannot zoom any more, even when there is a lot of room to zoom to the meshes on the scene.   This is particularly annoying in the following scenario:  I often land up left clicking on the scene and the 3D cursor shifts there. I use Shift+C to shift the 3D cursor back to the origin. However, this also centers the view on the cursor and shifts the view to show all objects, and sometimes this zooms things way out – at this point, if I try to zoom in, I can zoom in to a point (using the pinch/zoom on trackpad), but then it stops zooming in.   How do I zoom in after that? Is there anything else I am doing wrong in this case?


He will go bananas if you so much as scratch the car. Can you please explain to me the meaning of the phrase "so much as" in the context of the sentence? Does it mean that s/he is so cautious about the car that in case you scratch it, s/he will go mad?

"I hate wizards. If he so much as points a finger at me, you stick him, Hook." "Remind me to find out the name of that flooring company so I can be sure never to buy so much as a carpet tile from it." "I didn’t listen so much as survive the conversation."


Suppose I have a y vs. x data as in x,y 1, 14.75 2,11.18 3,21.72 ... 19,71.17 20,73.10  Using Matlab's cftool, and a linear fit model, I get $y=ax+b$ where $a=a_0+\Delta a$ and $b=b_0+\Delta b$. The $y=a_0 x+b_0$ function fits nicely to this data (red curve in the image). But I am interested in plotting a fit to this data which also takes into consideration the error of the parameters $a$ and $b$, namely $\Delta a$ and $\Delta b$. Is it correct to say that the error of the fit are the lines $y=(a_0+\Delta a)x+(b_0+\Delta b)$ and $y=(a_0-\Delta a)x+(b_0-\Delta b)$ (black in image)? These two lines are the extreme case when we are on the end of the error (in the + and - direction) for both $a$ and $b$. I guess that answer is no, and I would like to have an explanation why. If no, then what is the correct way to mark up graphically the error of this fit? More generally, how would I establish this method for a more complicated fit function, such as a Lorentzian ($\frac{A^2}{(x-u)^2+\gamma^2}$) which has 3 parameters - $A_0+\Delta A$, $u_0+\Delta u$ and $\gamma_0+\Delta \gamma$?

I am trying to understand the origin of the curved shaped of confidence bands associated with an OLS linear regression and how it relates to the confidence intervals of the regression parameters (slope and intercept), for example (using R):  require(visreg) fit <- lm(Ozone ~ Solar.R,data=airquality) visreg(fit)     It appears that the band is related to the limits of the lines calculated with the 2.5% intercept, and the 97.5% slope, as well as with the 97.5% intercept, and the 2.5% slope (although not quite):  xnew <- seq(0,400) int <- confint(fit) lines(xnew, (int[1,2]+int[2,1]*xnew)) lines(xnew, (int[1,1]+int[2,2]*xnew))     What I don't understand are two things:   What about the combination of 2.5% slope & 2.5% intercept as well as 97.5% slope and 97.5% intercept? These give lines that are clearly outside the band plotted above. Maybe I don't understand the meaning of a confidence interval, but if in 95%  of the cases my estimates are within the confidence interval, these seem like a possible outcome? What determines the minimum distance between the upper and lower limit (i.e. close to the point where the two lines added above intercept)?    I guess both questions arise because I don't know/understand how these bands are actually calculated.   How can I calculate the upper and lower limits using the confidence intervals of the regression parameters (without relying on predict() or a similar function, i.e. by hand)? I tried to decipher the predict.lm function in R, but the coding is beyond me. I'd appreciate any pointers towards relevant literature or explanations suitable for stats beginners.  Thanks.


This question is related to the fact that Stack Overflow has a great community that gives insightful answers. Quick.  For many programming topics, I believe the set of all answerable/relevant questions is finite. Because of this the amount of duplicate questions will only increase with time.  It could happen that some day, it will be very difficult to ask a question that has not been answered before.  I don't know what is the influx of users into Stack Overflow, but I assume it is more or less constant, or even exponential. Nevertheless people are born every day, many of them will become programmers, and will end up here searching for knowledge.  One could argue that programming languages get created all the time, and that the problems to solve by programming are endless. Although those two premises are correct, for existing languages acquiring reputation points is still going to be harder.  What I'm trying to say is that reputation points are a finite resource and there's not enough RP for everyone.

It seems that all good questions that could be asked have been already asked. Also it seems all good answers that could appear have already appeared. Existing questions/answers base probably covers most of the programming topics. And, therefore, it is more difficult to ask an interesting question that bothers everybody than, for example, couple of years ago when SO was comparatively empty. Do only I get this feeling or not? Are there any metrics for proving/disproving that it is more difficult to get more reputation on SO as time passes? I want to get rid of the feeling that all questions have been asked and answers have been already answered.  UPD: Maybe Jon Skeet would be great candidate for the experiment of getting statistical data about SO reputation dynamics? We can track dynamics of his reputation over the last (two) year(s). Maybe it could tell us much. Is there any right way to get such data easily?  UPD2: Here is some info about Jon Skeet dynamics:


I'm new in Linux and I don't know what I need to do in this screen or if it's an error.

On every bootup it's the same:  /dev/sda1: clean, 908443/38690816 files, 44176803/154733312 blocks   Is it some kind of option Ubuntu uses to ensure filesystem consistency or is there something wrong with my HDD? fsck takes up to 30s while booting and so about triples the time needed otherwise.  Full output (partly in German):  Begin: Loading essential drivers ... done. Begin: Running /scripts/init-premount ... done. Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done. Begin: Running /scripts/local-premount ... done. Begin: Running /scripts/local-bottom ... done. done. Begin: Running /scripts/init-bottom ... done. fsck von util-linux 2.20.1 /dev/sda1: sauber, 908443/38690816 Dateien, 44176803/154733312 Blöcke udevd[623]: unknown key 'SYSFS{idVendor}' in /lib/udev/rules.d/45-libticables.rules:6  udevd[623]: invalid rule '/lib/udev/rules.d/45-libticables.rules:6'   * Starting mDNS/DNS-SD daemon                                                 [ OK ]  * Starting Reload cups, upon starting avahi-daemon to make sure remote queues are populated                                                                   [ OK ]  * Starting configure network device security                                  [ OK ]  * Starting bluetooth daemon                                                   [ OK ]  ####* Starting all other stuff


Every times I look at this formula I get astonished: $$\frac{1}{\pi} = \frac{2 \sqrt 2}{99^2} \sum_{k=0}^\infty \frac{(4k)!}{k!^4} \frac{26390k+1103}{396^{4k}}.$$  Can someone give me an idea of the reasoning behind that formula?

The following formula for $\pi$ was discovered by Ramanujan: $$\frac1{\pi} = \frac{2\sqrt{2}}{9801} \sum_{k=0}^\infty \frac{(4k)!(1103+26390k)}{(k!)^4 396^{4k}}\!$$   Does anyone know how it works, or what the motivation for it is?


I am to use mathematical induction to prove:  $\sum_{i=1}^n$ $(i \times i!) = (n+1)! - 1$  my base case is n = 1  $RHS: (1 \times1!) = 1$  $LHS: (1+1)! - 1 = 1$  If I am not mistaken the next step is to assume n=k so  $=(k+1)! -1$  then I need to show k+1  $((k+1)+1)-1$  or $(k+2)!-1$  now I'm a bit confused on where to go from here. I THINK my next step is:  $(k+1)!-1 + (k+1  \times  k+1!)$  Is this the correct next step? if it is how do I algebraically show that it is equal to $(k+2)!-1$  Any help is appreciated guys! Thanks!

Use induction to prove that    $\displaystyle\sum_{r=1}^n r\cdot r! =(n+1)! -1$   I first showed that the formula holds true for $n=1$.  Then I put n as $k$ and got an expression for the sum in terms of $k$.  I then found the sum till the $(k+1)$th term by adding the $(k+1)$th term to both sides of the equation and compared it to the sum expression I get by plugging $k+1$ into the sum expression given in the question - they don't match.


I'm looking at D&D 5e to homebrew a specific item and I'm debating what would be better: advantage or raw bonus? The item is a coin that you toss before an ability check or an attack roll. If the coin lands heads, you gain a boon. If the coin lands on tails, you get a penalty. I was considering making the boon a raw bonus of +3 to the subsequent roll if it's a boon or -3 if it is a penalty. But it was brought to my attention that giving advantage/disadvantage could potentially be more balanced. So here's my question, what would be better mechanically for the player?

D&D 5E has an "advantage" concept where instead of rolling 1d20, you roll 2d20 and take the higher. Likewise, disadvantage means rolling 2d20 and taking the lower.  How does this affect the expected average outcome of the roll?


I want to upload an image with transparent background to a textured wall. How do I do this? My image is a hieroglyphic inscription, which has a transparent background edited in Adobe Photoshop. The wall is a mesh that has a Sandstone Texture added onto it. I want to add my image on top of this wall, without taking away the wall's texture. Pretty much like a graffiti. The issue I have is this: when I add my image to Blender, the background isn't transparent, as it should be. How should I proceed?

I'm designing this animal-type creature, and want to add a transparent .png image to its face with the face features (object has a subsurf). On the left is the image with the features, on the right is the part of the object where I want it to be.    I tried to import the image as a plane, but matching the shape of the plane with the face didn't work, and the lines of the face left shadows on the head, and could be seen as a different object from some angles (although it's the closest I've gotten yet). It looked like this:    So , I tried selecting the faces of the head that the features should go over, and create a new material for it. Unfortunately, since the .png is transparent, the result produced was this:    (where it's impossible to tell the transparency from a black background default color, and where I wouldn't know where to start to adjust size and position).  I also tried UV mapping, but then the whole object became black with the features repeated all over.   Is it something I have to go into Nodes for? I'm kind of stuck here. Creating a new material and applying it is simple, but applying a material that is an image is a bit more complex it seems... Ideally, I would reproduce the same technique for the adhesive bandage on its arm (seen on the right of image 1).


If a player run behind a wall, use Hide (as an action), then comes out, they will still be "hidden"?  I'm the DM at this table (Lost Mine of Phandelver, 5e), and our Halfling Rogue, is doing that to gain the advantage attack from .  His actions goes like following:   Run behind a wall (in the corner or behind the stairs for example). Use  to Hide as a bonus action. On his next turn, move 5 feet (just to get out of the wall) and attack (with a bow) the enemy with advantage from . repeat.   When he uses the hide action, I ask him for a Stealth check, then I compare with the enemies Passive Perception.   Because he is a Rogue with +7 stealth, is very hard to actually detect him.  Are we using Hide correctly? Should I keep letting he have the Unseen Attackers advantage?

One of my players is a rogue and has been, on his turn, using Cunning Action to hide as a bonus action and immediately afterwards attacking. I have been ruling that this does work to grant him advantage as an unseen attacker as I believe that is the RAW, but it seems a little strange. Is he really, in the span of 6 seconds, ducking behind a corner and popping back out and this completely disorientates his target? I guess I just wanted to make sure I was ruling correctly.


I often follow your suggestions on this forum. Now I have an issue with Datatable plugin.  On my website, I have created a food table. This table takes all data from mysql database and use DataTable to have some additional plugins. The issue is that DataTable doesn't encode correctly some characters showing some "??". I saw that mysql encode is base on latin1 and not on utf8. How can I force the  utf8 encoding?  Below the code for database access:  <?php $link = mysqli_connect ("XXXXXXXX",  "XXXXX", "XXXXX", "XXXXX");   if (mysqli_connect_error()) {      die ("Problemi di connessione con il server. Riprovare più tardi");  }; ?>   Below the code created for the table:

                     Nome	                     Categoria	                     Kcal	                     Carbo (g)	                     Prot (g)	                     Gras (g)

                   <?php                      $query = "SELECT * FROM databaseAlimenti";                      if ($result = mysqli_query($link, $query)) {                          while($row = mysqli_fetch_array($result)) {                              echo "
";                         echo "" . $row['Nome'] . "	";                             echo "" . $row['Categoria'] . "	";                             echo "" . $row['kcal'] . "	";                             echo "" . $row['Carboidrati (g)'] . "	";                             echo "" . $row['Proteine (g)'] . "	";                             echo "" . $row['Grassi totali (g)'] . "	";                             echo "
";                          }                       };                     ?>

      Thanks in advance

I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1.  Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache, MySQL, and PHP to do this — is there some standard checklist I can follow, or perhaps troubleshoot where the mismatches occur?  This is for a new Linux server, running MySQL 5, PHP, 5 and Apache 2.


I purchased some old software that was made for Windows Vista. Will they work on Ubuntu? Will they work on Windows 7 or 8?

Can .exe and .msi files (Windows software) be installed in Ubuntu?


I have a long list of sections and subsections like so  \chapter{Thin Lenses} \section*{Aim} \section*{A. Types of Lenses} \subsection*{Prediction} \subsection*{Observation} \subsection*{Explanation} \section*{B. Image Formation} \subsection*{B1. The lens and the image and the object position} \subsection*{B2. Partial lens} \subsection*{B3. Eyeballing the image} \section*{C. Focal Length of a Converging Lens} \subsubsection*{Question 1} \subsection*{C1. Estimating the focal length: Eyeballing the image} \subsubsection*{Prediction} \subsubsection*{Observation} \subsubsection*{Explanation} \subsubsection*{Focal length estimation 1} \subsection*{C2. Estimating the focal length: Parallel rays} \subsubsection*{Prediction} \subsubsection*{Observation} \subsubsection*{Explanation} \subsubsection*{Focal length estimation 2} \subsubsection*{Question 2}   etc. which just run off the bottom of the first page and disappear. Why is this? It doesn't happen if I include some text in the sections.

If I only input the section title but no body text, Latex can not start new page automatically. The following is my minimal work.  \documentclass{book}  \begin{document}  \part{Title of Part I} \chapter{Title of chapter a} \section{section-1} \section{section-2} \section{section-3} \section{section-4} \section{section-5} \section{section-6} \section{section-7} \section{section-8} \section{section-9} \section{section-10}  \section{section-11} \section{section-12} \section{section-13} \section{section-14} \section{section-15} \section{section-16} \section{section-17} \section{section-18} \section{section-19} \section{section-20}  \end{document}


I have a SQL query that extracts data from the source system, and the data is formatted in CSS format so it contains text along with things such as < p > blah blah < / p >  Is there any simple way to remove all of these?  Thank you for any help :)

I've got data in SQL Server 2005 that contains HTML tags and I'd like to strip all that out, leaving just the text between the tags. Ideally also replacing things like &lt; with <, etc. Is there an easy way to do this or has someone already got some sample T-SQL code? I don't have the ability to add extended stored procs and the like, so would prefer a pure T-SQL approach (preferably one backwards compatible with SQL 2000). I just want to retrieve the data with stripped out HTML, not update it, so ideally it would be written as a user-defined function, to make for easy reuse. So for example converting this: Some useful text&nbsp;      &gt;&nbsp;more text
  to this: Some useful text > more text


Hey I’m an Dual citizen and my question is I’m going to Mexico in July but I don’ have a current us passport but I do have a Mexican passport. I can’t get MY us passport renewed since I owe Child  support. Can I fly from Chicago to Guadalajara using my Mexican passport and retrurn through Tijuana San Diego using my sentri card ?

Suppose I am a naturalized citizen of the US, but also a citizen of another country, "XYZ". I then boarded a plane and left the US to another country (maybe not necessarily to XYZ), without first getting a US passport, but using my old, but valid XYZ passport.   In this case what would be the best documents to have for me to gain entry back into the US as a US Citizen without a passport?  Would I need to contact the US Embassy for help in order to be able return?  If the airline does let me aboard to return to the US, even without the US passport, what are the best documents could I show at the border to prove I am a US citizen but that I just don't have a passport, for whatever reason?


Let $\Lambda$ be a uncountable set and let $\{a_{\alpha}\}_{\alpha\in\Lambda}$ be such that $a_{\alpha}>0$ for all $\alpha \in\Lambda$ proof that,    $$\sum_{\alpha\in\Lambda}a_{\alpha}$$   diverges.

Claim: If $(x_\alpha)_{\alpha\in A}$ is a collection of real numbers $x_\alpha\in [0,\infty]$ such that $\sum_{\alpha\in A}x_\alpha<\infty$, then $x_\alpha=0$ for all but at most countably many $\alpha\in A$ ($A$ need not be countable).  Proof: Let $\sum_{\alpha\in A}x_\alpha=M<\infty$. Consider $S_n=\{\alpha\in A \mid x_\alpha>1/n\}$.  Then $M\geq\sum_{\alpha\in S_n}x_\alpha>\sum_{\alpha\in S_n}1/n=\frac{N}{n}$, where $N\in\mathbb{N}\cup\{\infty\}$ is the number of elements in $S_n$.  Thus $S_n$ has at most $Mn$ elements.   Hence $\{\alpha\in A \mid x_\alpha>0\}=\bigcup_{n\in\mathbb{N}}S_n$ is countable as the countable union of finite sets. $\square$  First, is my proof correct? Second, are there more concise/elegant proofs?


This is from a c# .net (.aspx.cs) file associated with an aspx file. Why is "this" ok but "this" (in another method) is not? i included a snapshot image  to show the red line in the second method to show that the compiler does not like what does not show an error in the first method.

I'm trying to use the this keyword in a static method, but the compiler won't allow me to use it.  Why not?


I have two mp4 video files(shot with a Nokia Lumia Phone) that cannot be played. While recording, the memory card got completely filled and it went in accessible from the phone. So I removed the card from it and connected to my PC and copied the file to PC. But opening the file in KM player shows the following warning:  audiodg.exe KMPlayer.exe -------------------- PLAYBACK INFO -------------------- [Video Info] Decoder -No codec [Audio Info] Decoder -No codec [Basic Video DSP] Internal brightness: 100% [Advanced Video DSP] +PictureProperty(S/W Process)   -LumGain: 128   -LumOffset: 0   -Gamma: 100   -HUE: 0   -Saturation: 64 +Video Plugin [Audio DSP] +Pre amplification: Main: (100%) +Auto Volume Control +3D Effect: 5000 +Audio Plugin [Subtitle Settings] +Draw Mode(Selected): Overlay +Draw Mode(In use): On Overlay +Text Rendering Method: Window(GDI) [KMPlayer] +Version: 3.9.1.135(11,786,048, 3/27/2015 9:38:30 AM) +libcodec.dll: (4,548,096, 1/18/2013 1:17:48 PM) +libmplay.dll: (538,112, 10/31/2012 2:29:32 PM) +PProcDLL.dll: 1.0.0.1(1,769,472, 2/25/2008 11:37:04 AM) +LibDTS.dll: (178,174, 12/5/2008 1:12:20 PM) +liba52.dll: (73,063, 12/5/2008 1:11:10 PM) +libfaad2.dll: (335,155, 12/5/2008 1:07:06 PM) +libmad.dll: (123,036, 12/5/2008 1:12:30 PM) +libmpeg2.dll: (154,644, 12/5/2008 1:12:42 PM) +theora.dll: (200,864, 12/5/2008 1:13:32 PM) +OggVorbis.dll: (1,165,312, 2/25/2008 11:37:00 AM) +xviddll.dll: (758,319, 12/5/2008 1:28:36 PM) +Old_QUARTZ.DLL: 6.01.05.0319(770,048, 2/25/2008 11:37:00 AM) +AboutDll.dll: (105,472, 10/3/2005 10:42:18 AM) +DTView.dll: (98,304, 2/21/2012 2:57:36 PM) +ImLoader.dll: (856,064, 2/25/2008 11:35:22 AM) +MediaInfo.dll: 0.7.72.0(3,910,480, 1/7/2015 8:23:00 PM)     Opening it with VLC does not play anything but the traffic cone.When opened in Media Player Classic, it says Cannot render this file(haven't tried GOM Player yet). When I tried to convert it with Format Factory, it says the format is not recognized, media infor by Format factory showed the following:  General Complete name                    : [path]\WP_20150708_12_54_17_Pro.mp4   Format                           : MPEG-4   Format profile                   : Base Media / Version 2   Codec ID                         : mp42   File size                        : 179 MiB     How can I recover this video file?  UPDATE: I tried the solution given , but got the following output:

I took a video from my Android phone (Sony Xperia P, if you need to know), and before I could stop recording it, the phone memory got full and the phone got hanged too. I rebooted the phone, the video was there, but I couldn't play it from any media player on Android. It's in mp4 format.    So I tried to open it on PC and Mac with different video player, like VLC, quick Time, Windows Media Player etc., but none of them can play it. I know that the video is corrupted, but I believe it's repairable, since it got more than a GB in size. Is there anything that I can try  to repair the video file? The video is really important.


my son turned 3 on january 28th. We have started to toilet train for the last 5 days. I dont use the potty and placed him straight onto the toilet. He had a small toilet seat to fit on top but as he is quite capable we dont even need to use this anymore and sit straight onto the toilet.  I have recently had another child on february 26th, and i have previously tried twice unsuccesfully to toilet train before my second child was born.  Both times before i gave up as he would completely refuse to use the toilet and i had to literally pick him up and take him and it was turning into a power struggle and even when he sat he would not do anything no matter how long we sat there so i thought he was probably not ready and gave up both times after a few days.  This time however we have been succesful in getting him to the toilet and actually weeing. However, he will not go on his own accord or let me know. I have to take him every 20-30 mimutes and if i get distracted he has an accident on the floor. He knows he has done something wrong because he will freeze in his place and tell me.   Also because i know he is having alot of accidents i part use pull ups and part try to keep him just in knickers (I use pull ups when i need to cook or i know i will be busy and cant take him every so often, also for naps, going out or to sleep in). I have read alot that pull ups confuse him but i cant afford for him to have an accident all the time when i am busy with something else.  Any suggestions of where i might be able to improve the situation and any advice on how to get him to let me know he needs the toilet instead of having to take him myself all the time.   I know its early days but its really such a strain i just feel so tense all the time because if i forget or get too busy then we have an accident to deal with.  One final thing he has been holding in his bowel movements, and im worried he is going to cause himself some harm with constipation.

I have been potty training my daughter over the past few days and its not going to well.  How can I figure out if she is just not ready for it or I should try other techniques.  We came up with a sticker chart to give her motivation and prizes for going but no luck so far.    She is 2 1/2 years old and she seems to comprehend what we are saying but its not triggering when she has to go.  Any advice would be great.  What is interesting, she seems to have the pooping part down but for some reason doesn't recognize peeing.


I am working on a Team site inside SharePoint server 2013. And on the list views I am showing the Description field, which is of type enhanced rich text. Currently we are facing these problems:-   If users add long text inside the Description field the whole list view will became not very user friendly. On small sized screens the Description field will expand vertically instead of horizontally , also causing the whole list view to be out of layout.   So can anyone advice, on how to find a solution. I was thinking if this is possible or not:-   To force the Description field to show only the first n characters (let say the first 200 characters) and without any images when it is being displayed inside the lists’ views. And if the user click on the list item or edit the item then the full Description will be shown? I am using an on-primise deployment so I have full control over the farm

I am relatively new to SharePoint and have a few questions.  I was wondering if someone could help me with some custom settings in a SharePoint list.  I have a column that is set to a "Multiple lines of text".  I am wanting to find a way to have it only show the first line of text and then have a link or something similar to click and show all the text only when it is needed.  This will make the list look cleaner and have the rows not be so spread out.    I have been researching online and can mostly only find results for 2007/2010.  I am working in SharePoint 2013 and I have also downloaded SharePoint Designer.   I would appreciate any suggestions or a direction to be pointed in.   Thanks!


I have two lists in excel, let's call them B and A. if there is an email in list A that matches an email form list A I need to delete it. I could do this manually but that would be weeks of work. There's got to be a way to get excel to do it for me.   EDIT/UPDATE    I know nothing about Excel, so the first thing I would like to do is to remove any duplicates from within the lists themselves. but then I would also like any contacts/emails from list B that has a duplicate in list A to be removed. for example, if the email John@John.com is in list B and there is also a John@john.com in list A, I want to remove John@john.com from list B

I know nothing about Excel, so the first thing I would like to do is to remove any duplicates from within the lists themselves.  But then I would also like any rows from list B that has a duplicate row in list A to be removed.  For example, if the email John@John.com is in list B and there is also a John@john.com in list A, I want to remove John@john.com from list B.


Basically what the title says:  Can there be a real solution to the square root of $-1$ (or any negative number in fact) or is it defined to be unreal?  Because of this: $$ \begin{align} \sqrt{-1} & = (-1)^\frac 12 \\[6pt] & = (-1)^\frac 24 \\[6pt] & = \sqrt[4]{(-1)^2} \\[6pt] &= \sqrt[4]{1} \\[6pt] &= 1 \end{align}$$

I know there is something wrong with this but I don't know where. It's some kind of a math fallacy and it is driving me crazy. Here it is: $$-1= (-1)^3 = (-1)^{6/2} = \sqrt{(-1)^6}= 1?$$


I am a UI team lead.   I detected that the topic of "how do you want the graphics?" is a very hot topic in my company. And I find myself always giving the same explanation.   I would like to give like a "checklist" for the PMs and the designers we work with to make the work more efficient and fun.   Currently there's this constant ping-pong in emails between us and PMs. I would like to get rid of that..   Thought about the following list (several of the items I gathered so far..):   The design should be web and mobile friendly. (yes - sometimes we get some crazy design that require us to use mostly images even with all the power of CSS today..) Flat design is good. - obviously a recommendation.  Images should have transparent background.  Formats:   The original PSD file Each layer in PNG with transparent background.  Icons and flat images should be in SVG, and if possible - as a font. (we usually convert to font ourselves).   General guideline of the design should be attached.   color palette and the purpose for each color: Title, subtitle, text, disabled items, actions items.. etc..  important alignments guidelines - sometimes we miss the need for things to align whereas the designer feels they based the entire design on that. This usually affects the HTML structure as well - so it is very important to have common grounds on this ASAP.  Error messages display (ALWAYS MISSING! no one designs the errors..)    And then a whole different section for emails :P  We usually develop web design, but non-web might be required too in the future.   Seems to me like someone probably already made such a list and I am reinventing the wheel.   What is the standard for passing the grail from the designer to the dev team?  Edit  This question is technical.   What is the standard way of getting deliveries from the designer?   or if you'd like - as a designer - what is my checklist for delivery?   I assume almost every HiTech company with GUI has this process, so it must have grown into a written standard I can simply send to my designers, and make sure they follow it.   Like a checklist the designers will check, and my team will validate to avoid back and forth correspondence like "we need this in png" , "can you also get jpg?" etc.. which consumes a lot of time, and is just not right as I want to allow the designers to move forward and forget this project.   Especially since the design step happens way before the implementation, and by the time we reach that phase, we start to discover we are missing some artifacts from the designer.   I expect people to publish their checklist, or reference me to a checklist they are using.   The first answer that hits the spot will be accepted. Opinions like "whether this checklist or that checklist is better" has no room here.   If there is no such standard checklist, I think there should be, and I also think this question has a great potential to start one right here.   The workflow is known, the motivation is very high, the communication between us and the designer is great. This part of the process is understood, but the content is always questioned, and I can't understand why.

While working together, how can I discuss my ideas and objections without killing the other person’s motivation?  I want to do a design project with a friend, for study purposes, but I experienced some obstacles I don’t know how to deal with:   We didn’t learn yet how to deal with objections or dislikes from the other. As a result our meetings are inefficient, either because we let the other do whatever they want, or because someone gets into a bad mood and instead of thinking, they try to put on an unaffected face. My friend has a habit of letting their attention stray away, and they do it at the most unexpected times.   I know that being sincere is needed and inevitable, but I would like to learn a method to keep the attention and motivation even in these situations. My problem is that I don’t know what to say or do to keep our task looking interesting and fun to do.  As a possible solution I thought of inserting a 5 minute period where we shouldn’t say any good things, not even a word, but have to point out the bad parts of our own work.  But I fear this one won’t be enough, that’s why I would like to hear ideas and tricks that could make our sessions going.


You should read the book and see what he means/meant by...... Question: Do we use present or past tense for a book? And does it matter if it's fictional books (Shakespeare) or fact (political/religion)

I am trying to find the right words for the sentences.     (1) The book ____ "Suffering has been stronger than all other teaching".      (2) Charles Dickens writes/wrote in his book: "Suffering has been stronger than all other teaching".   Questions:  (1) The quote is just an example; I want to know how to refer to exact words written in the book, and I need to explicitly quote them as above.  Obviously, "says" fits here. But I am looking for a word whose meaning is closer to "write".  (2) I am curious whether to use the present or the past tense. Does it matter whether the author is still alive?


I need a Regex for all URLs:  I'm using:  (((http)s?(:\/\/)(w{3})?)|(w{3})| (http)s?)((.))[A-Z a-z 0-9]*.([A-Z a-z]){0,3}   The result should be:   www.demo.com (OK) http://foo.co.uk/(Not OK bad .uk) http://foo.com/foo.html?q=bar (OK) https://www.lol.lol  (OK) http://www.foo.foo.fr( Not OK bad .fr)

How can I check if a given string is a valid URL address?  My knowledge of regular expressions is basic and doesn't allow me to choose from the hundreds of regular expressions I've already seen on the web.


I am using Ubuntu with Ubuntu 64-bit -VMware Workstation 15 Player. A few days ago, while I was running Ubuntu, I had to log out of my windows user due to an error, which led to a crash (everything froze) in the virtual machine. I 'fixed' that by clicking on the pause sign (top left corner of the added pictures) and restarted the machine, now it is running again. But ever since I cannot use commands such as 'll' anymore.   I noticed the change in the terminal, which usually had my hostname in the headline and the name itself highlighted in every line, so I created a new sudo user (those commands work) for test purposes and when l switch the user to it, it looks the way it did before just, so I assume I accidentally changed something concerning my old user I cannot undo myself.  Those are the differences in appearance:     Besides, merry christmas ( : .

I have followed the instructions  and in the  that is provided there. However nowhere does it appear to say how I can change the colours of the different parts, because currently I set it to:  PS1='${debian_chroot:+($debian_chroot)}[\t] \u@\h:\w\$ '   But the text is still all white, how could I perhaps make the numbers for the time green, and my username and computer name light blue? I am running Ubuntu GNOME 15.04.


Let, $f$ : $\mathbb{R}$$\rightarrow$$\mathbb{R}$ be a twice differentiable function such that $f$($\frac{1}{2^n}$)= $0$ $\forall$ $n$ $\in$$\mathbb{N}$. Show that, $f'(0)=0$=$f''(0)$.   Help me how to proceed. from definition of $f'$ I am unable to do anything!

Let$f:\mathbb{R} \to \mathbb{R}$ be twice differentiable function such that $f(\frac{1}{2^n})=0 \forall n \in \mathbb{N}$. Show that $f'(0)=f''(0)=0$ Applying mean value theorem on $(\frac{1}{2^n},\frac{1}{2^{n-1}})$ we see that $\exists c_n$ st $f'(c_n)=\frac{f(\frac{1}{2^{n-1}})-f(\frac{1}{2^{n}})}{\frac{1}{2^{n-1}}-\frac{1}{2^{n}}}$ , thus $f'(c_n) =0$ $\implies$ $\lim_{n\to \infty}f'(c_n)=0 \implies f'(0)=0$  But I can't use similar argument for $f''$ since it is not known whether it is continuous or not!


Whenever i am painting bump maps, it paints on the color map. I read on one of the other thread and made sure of these five things.   Even though, I have the bump map selected in image editor, when i paint in texture paint mode, it still paints on the color map. What am i doing wrong?

Okay, so I've seen the other answers to this here in Blender Exchange. However, as far as I can figure out those textures were not saved when created in texture paint mode. I added an external texture to my object:   ...then I switched to texture paint mode and the texture changes to a complete black texture:   However if I switch back the texture while in texture paint mode it still keeps my object black:     Is this a lighting problem? Or am I not importing the external image correctly? I have tried packing/saving the image after importing it and putting it on my UV Map and then switching to texture paint mode, but it still occurs.


Processor: Intel(R) Pentium(R) M processor 1.70GHz 1.70GHz  32 bit operating system   36.3 free of 55.7 GB   Windows 7 HP Home Edition  HP pavallon dv1000.                    ( can i get the latest Ubuntu? )

I'm thinking about installing Ubuntu Desktop, but I don't know what flavor is the best for my system. What are the minimum and recommended hardware requirements? What kind of CPU? How much memory? Should I have Hardware Acceleration? What flavor should I use?  This is an attempt of a canonical answer. My answers have the "official  requirements", the recommended are a mix of official sources and opinion based (along with the answer it's told the source). You can comment or edit if you feel that the information is obsolete or incomplete. It is a good rule of thumb that any system capable of running Windows Vista, 7, 8, x86 (Intel) OS X will almost always be a lot faster with any Ubuntu flavor even if they are lower-spec than described below.


I am trying to prove the following assertion: Let $V$ be a smooth vector field on a closed manifold. Then the differential equation $x'=V(x)$ has a solution for all time. My idea is to use local existence around each point, and by compactness pick a subcover of the open cover formed by these neighborhoods and "patch" them together. Is this correct?

I would like to know if my proof of the following statement is correct     If $M$ is a compact manifold, then every vector field $X$ over $M$ is complete.   Proof:  I take $p\in M$ and $(\gamma_p,I_p)$ a maximal integral curve through $p$. $I_p$ is open and non empty so if $I_p$ is closed, it is equal to $\mathbb{R}$.  So take $s\in \text{Adh}(I_p)$. There exists $t_i\rightarrow s, t_i\in I_p$. Define $q$ as $\text{lim}(\gamma_p(t_i))$ and take a maximal integral curve passing by $q$ as $(\gamma_q,I_q)$. Then since the vector fields are $C^\infty$, $\gamma_q(I_q)\cap\gamma_p(I_p)$ is nonempty (intuitively, this is clear but don't really know how to show it).  On the intersection, $\gamma_p$ and $\gamma_q$ coincide. So we can extend the maximal curve $\gamma_p$ to include $\gamma_q$. This implies that $q\in\gamma_p(I_p)$ and is actually equal to $\gamma_p(s)$  I think the main idea is there even though it probably lacks a bit of rigour.


I've been reading about Cosmic Background Radiation (CMBR) lately.  My understanding so far is that this is the "Noise"/"Flash" from the big bang.  Assuming that information is correct, how far away is it traveling in order to reach us?  The way it was described to me makes it sound as if it should be coming from the "end" of the universe.  Or is it omnipresent?

If the big bang was the birth of everything, and the big bang was an event in the sense that it had a location and a time (time 0), wouldn't that mean that our universe has a center?  Where was the big bang? What is there now? Are we moving away from the center still? Are these even valid questions?


Can anyone tell how to install  on Ubuntu?

How can install Desktop Toggl on Ubuntu 13.04? I try type:  sudo add-apt-repository ppa:official-toggl/ppa sudo apt-get update sudo apt-get install desktop-Toggl    But getting information desktop-Toggl not found.


i read that there is no visa needed for a short layover in japan just want to make sure because what i read was posted few year ago. my parents will be having their layover in japan for 3 hours, going to Dallas Texas the same day. thanks

I will be transferring between two international flights at Tokyo Narita airport. I'm scheduled to depart the same day I arrive. I am planning to stay within the airport during the layover. Does anyone know if I will require a transit visa at Narita?


One key element is left unresolved in Series 2 of the BBC radio series (the Secondary Phase), originally aired in 1980.  At the end of this Phase, Zarniwoop reveals to Zaphod Beeblebrox that at some point the starship Heart of Gold has entered the pocket universe which exists within Zarniwoop's office on Ursa Minor. But it is never made clear at what point this occurs.   As none of the events which happen within the pocket universe have really happened, an element of confusion exists as to how much of Series 2 really took place, and which parts of that series didn't really occur.  It seems certain that Zaphpod's visit to the headquarters of Megadodo Publications, in episode 1 (Fit the Seventh), must have happened in reality, because he is given details there about Zarniwoop being on an inter-galactic cruise in his office: logically, Zarniwoop and the cruise must be real, as when Zaphod meets Zarniwoop in episode 6 (Fit the Twelfth) the latter admits to being on such a cruise.  Ford is present with Zaphod in episode 6, at the meeting with Zarniwoop, so Zaphod's rescue of Ford and Arthur must also have been real.  As Zaphod does not return to the starship Heart of Gold between fleeing Zarniwoop's office and arriving on the Frogstar, that incident - and hence his being plugged into the Total Perspective Vortex - must also be real events. This is logical, as these events preceed the rescue of Ford and Arthur.  So at what point do Zaphod, Ford and Arthur become unwitting guests in Zarniwoop's pocket universe?  And do they ever leave it? The Ruler of the Universe, in episode 6 (Fit the Twelfth), seems to be aware that there is some doubt as to whether the universe he rules is real or not. This occurs after the meeting with Zarniwoop, such that Series 2 ends on an ambiguous note: have they actually exited the pocket universe -- or not?  Note to interested parties: I am (reasonably) well aware that many strange occurrences occurred in the 2nd novel written by Douglas Adams, which he based (loosely) on the 2nd radio series. But that novel has a radically different plot to the original radio show. What I'm asking about is the radio show, not the impenetrable plot of the novel.  EDIT - This question is not the same as the question it supposedly duplicates, which talks mainly about the novels. But I am asking about the radio show -- there are enormous differences of plot between the second novel and the 1980 radio series it is (loosely) based on. Also, the other question only deals with when he entered the pocket universe, but my question is asking also about the point at which he got out, and, indeed, is asking whether - on the radio- he ever did get out, since the "Man in the Shack" says things in the radio episode which imply that they are still trapped in the artificial universe, after Zarniwoop has supposedly released them from it.

In the book The Restaurant at the End of the Universe, it's very clearly explained how Zaphod gets into the simulated universe; he's in it from the moment he enters Zarniwop's office, and a big deal is made of him leaving via the window rather than the door so that he stays in it.  In the radio series, however, this doesn't happen. At the end of Fit the Seventh, Zaphod asks "How do we get to this universe, then?" and Roosta replies "I'm afraid it looks like we don't...", pointing out that the building is splitting down the middle, preventing them reaching the office.  Later, in Fit the Twelfth, Zaphod finally meets Zarniwoop in the lounge of the slightly-delayed spaceliner and reacts with astonishment at learning he's been in the artificial universe all this time. "How did we get into it? I mean like where, when?"  Zarniwoop only replies enigmatically: "You didn't notice? Well, I'll let you work it out for yourself."  So, how did he get in? As noted, he never actually entered Zarniwoop's office. My only thought is that it happened during the "body debit" incident with the disco, but there's no particular indication that that should be the case. Is there any other possibility?


I created a c++ code for binary to Decimal conversion #include <cmath> using namespace std;  int binaryToDecimal(long int n){ int decimal=0,i=0; while(n>0){ decimal+=(n%10)*pow(2,i); n/=10; i++; } return decimal; } void main(){     long int num;     cout<<"Enter a binary number:";     cin>>num;     int d= binaryToDecimal(num);     cout<<"\nDecimal number:"<<d; }  However I am getting the error :main() must have int return type Why should I have my main as int return type when it does'nt need to return anything? What's wrong with having a void return type?

What is the correct (most efficient) way to define the main() function in C and C++ — int main() or void main() — and why? And how about the arguments? If int main() then return 1 or return 0?  There are numerous duplicates of this question, including:       — For C++, with a very good answer indeed.     Related:


I have been using this for a long long time, but I couldn't find clear explanation on when it is not guaranteed unique. Here are my comments, please correct as you see fit.  Value is guaranteed to be unique(ly created) on the machine it is created. So GUIDs generated by .net app on a machine will never conflict with those that are created by SQL Server on the same machine.  In all other cases there is no guarantee. Theoretically it is always possible that if there are multiple creation sources(say applications on different computers) for the unique identifier field in a db on a different computer, there can be duplicates that'll be inserted.   EDIT: Apologies for not forming the question properly. I guess I wanted to know the probability of conflicts when generated on the same machine vs different machines, if c#'s Guid.NewGuid(), SQL Server's newid(),newsequentialid() functions or any other functions by different applications are used. The 'already answered' link has one of the replies where it says he actually encountered a case where that happened. Makes you wonder how frequently that can happen.   If I have a table with a uniqueidentifier field as the pk, should I have to worry about checking for uniqueness each time I do an insert by creating a new value either by different apps or SQL Server's functions?

Is a GUID unique 100% of the time?  Will it stay unique over multiple threads?


I have script that I run quite regularly in the python window of Arcmap 10.2.2 and am in the process of converting it to a toolbox script so that others can use it more easily.  It uses select layer by location a number of times, for example:  arcpy.SelectLayerByLocation_management(Contours_G_1m, "CONTAINS", peakpoints)   It worked fine in the python window but now that its in a tool it fails with     Parameters are not valid. ERROR 000368: Invalid input data   This is not at all surprising because this tool works on a layer and the script does not add a layer to the map when it creates a new feature class.   Is there any way of selecting the feature in a shapefile rather than a layer by location, or a workaround for using this tool in a script?

I am attempting to iterate over all the feature classes in a folder and I'm getting the error 000368. The other solutions in on SE were not helpful to me unfortunately, so I'm posting a separate question. search_grids is a list of point feature classes and searches is a another point feature class.   The points never actually intersect with each other, but I'm using the Select by location tool to select points within a specified distance of each other. This isn't the reason for the error though as I was able to get this to work in the python window in ArcMap.   My code is the following  arcpy.env.workspace = r"C:\workspace" search_grids = arcpy.ListFeatureClasses() searches = r"C:\workspace\search" for grid in search_grids:     arcpy.management.SelectLayerByLocation(grid,"INTERSECT",searches,"97.5 meters","NEW_SELECTION","INVERT")     arcpy.management.SelectLayerByLocation(grid,"INTERSECT",searches,"2.5 meters","ADD_TO_SELECTION","NOT_INVERT")   Why am I getting this error?       arcgisscripting.ExecuteError: Failed to execute. Parameters are not valid.   ERROR 000368: Invalid input data.   Failed to execute (SelectLayerByLocation)


How to show this equation is true.  $$\sum_{n=1}^{\infty}\frac{H_{n}}{n^{2}}=2\zeta (3)$$  where $H_{n}=\frac{1}{1}+\frac{1}{2}+\frac{1}{3}+\cdots+\frac{1}{n}$

I found the following formula   $$\sum_{n=1}^\infty \frac{H_n}{n^q}= \left(1+\frac{q}{2} \right)\zeta(q+1)-\frac{1}{2}\sum_{k=1}^{q-2}\zeta(k+1)\zeta(q-k)$$  and it is cited that Euler proved the formula above , but how ?  Do there exist other proofs ?  Can we have a general formula for the alternating form   $$\sum_{n=1}^\infty (-1)^{n+1}\frac{H_n}{n^q}$$


I know it is possible to output a render as a video in mp4/h264 (as well as mkv, etc) however, it does not appear as an option for me.    This is blender 2.64.2, on linux (FC17), ffmpeg version 0.10.7:   $ ffmpeg -codecs|grep 264 D V D  h264            H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 D V D  h264_vdpau      H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (VDPAU acceleration)  EV    libx264         libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10  EV    libx264rgb      libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 RGB   $ ffmpeg -formats|grep mp4  D  mov,mp4,m4a,3gp,3g2,mj2 QuickTime/MPEG-4/Motion JPEG 2000 format   E mp4             MP4 format   The file /usr/share/blender/2.64/scripts/startup/bl_ui/properties_render.py has the following lines (snipped for brevity):   class RENDER_PT_encoding(RenderButtonsPanel, Panel):      return rd.image_settings.file_format in {'FFMPEG', 'XVID', 'H264', 'THEORA'}      layout.menu("RENDER_MT_ffmpeg_presets", text="Presets")      if ffmpeg.format in {'AVI', 'QUICKTIME', 'MKV', 'OGG'}:     elif rd.ffmpeg.format == 'H264':   which leads me to believe that it should give me at least those options. How do I enable them? I've looked all over the place and cannot find the solution online.    edit:  This is the official fedora build, blender-2.64a-3.fc17.i686.rpm   installed from the fedora updates repo.

I'm trying to render a video using blender, it have some images and sound, if I render it using just the default options I get no sound.  Searching on internet I found that I need to use other format than AVI JPEG to set some codecs options, I just have "AVI JPEG", "AVI RAW" and "FRAME SERVER". I'm keep looking but I can't found any information to solve my problem.  Im using fedora and actually I have  xvidcore-1.3.2-5.fc20.x86_64 ffmpeg-2.1.7-1.fc20.x86_64 packages installed.  EDIT: When I had the problem I had the last version of blender installed from , I also tried installing blender from dnf, also tried with , so  didn't solved my problem.


I was wondering if there is any combinatorial proof of $$\sum_{i=0}^n {n \choose i}^2={2n \choose n}$$ It is obvious that the RHS of the equation counts the number of binary strings of length $2n$ with exactly $n$ 1's, but how about the LHS?

I was hoping to find a more "mathematical" proof, instead of proving logically $\displaystyle \sum_{k = 0}^n {n \choose k}^2= {2n \choose n}$.  I already know the logical Proof:  $${n \choose k}^2 = {n \choose k}{ n \choose n-k}$$  Hence summation can be expressed as:  $$\binom{n}{0}\binom{n}{n} + \binom{n}{1}\binom{n}{n-1} + \cdots + \binom{n}{n}\binom{n}{0}$$  One can think of it as choosing $n$ people from a group of $2n$  (imagine dividing a group of $2n$ into $2$ groups of $n$ people each. I can get $k$ people from group $1$ and another $n-k$ people from group $2$. We do this from $k = 0$ to $n$.


I have a view model that is shared between several actions. Is it possible to get the name of the action that is being called and, if so, how do I achieve that. I need the name of the action inside a custom validator function.

I wanted to set a CSS class in my master page, which depends on the current controller and action. I can get to the current controller via ViewContext.Controller.GetType().Name, but how do I get the current action (e.g. Index, Show etc.)?


I am running Ubuntu 14.10 server  I'm getting this icon in the notification bar over the last days, even though Software Center is running updates properly and I have no new updates available.  I have run sudo apt-get update && sudo apt-get upgrade and still have this problem. The output after running sudo apt-get update is:  W: Failed to fetch cdrom://Ubuntu-Server 14.10 _Utopic Unicorn_ - Release i386 (20141022.2)/dists/utopic/main/binary-i386/Packages  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs  W: Failed to fetch cdrom://Ubuntu-Server 14.10 _Utopic Unicorn_ - Release i386 (20141022.2)/dists/utopic/restricted/binary-i386/Packages  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs  E: Some index files failed to download. They have been ignored, or old ones used instead.   How can I fix this issue?

When updating I got this error message:  W:Failed to fetch cdrom://Ubuntu 11.10 _Oneiric Ocelot_ - Release amd64 (20111012)/dists/oneiric/main/binary-i386/Packages  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs W:Failed to fetch http://ppa.launchpad.net/synce/ubuntu/dists/your_ubuntu_version/main/source/Sources  404  Not Found   What to do?


FIXED WITH THIS COMMAND: sudo apt purge firefox-locale- *  I deleted Firefox and then I deleted everything that had mozilla and firefox on my system and the following text appears everytime I "sudo apt get install something". How do I fix the problem?   package has no files currently installed dpkg: warning: files list file for package 'firefox-locale-ru' missing; assuming  package has no files currently installed dpkg: warning: files list file for package 'firefox-locale-zh-hant' missing; ass uming package has no files currently installed dpkg: warning: files list file for package 'firefox-locale-en' missing; assuming  package has no files currently installed dpkg: warning: files list file for package 'firefox-locale-es' missing; assuming  package has no files currently installed dpkg: warning: files list file for package 'firefox-locale-pt' missing; assuming  package has no files currently installed dpkg: warning: files list file for package 'firefox-locale-zh-hans' missing; ass uming package has no files currently installed dpkg: warning: files list file for package 'firefox-locale-de' missing; assuming  package has no files currently installed dpkg: warning: files list file for package 'firefox-locale-ja' missing; assuming  package has no files currently installed dpkg: warning: files list file for package 'firefox-locale-ar' missing; assuming  package has no files currently installed dpkg: warning: files list file for package 'firefox-locale-it' missing; assuming  package has no files currently installed```

I tried to install a package and it did, and it appears to work just fine. However when I installed it I got several warnings about packages being missing.  dpkg: warning files list file for package '...' missing, assuming package has no files currently installed.   Since it is just a warning and it appears to work anyway, I assumed that it doesn't matter, but I would like someone to confirm that.   The packages that are missing are ones that I uninstalled on purpose because they were non-essential and took up a lot of room.  EDIT: Package is tzdata. Using dpkg -i on a .deb file to install. And the above is essentially the entire warning. Just instead of ... it lists packages. python2.7-minimal, libsqlite3-0, libaprutill-dbd-sqlite3, python-minimal`  EDIT: "What exactly did you do?" I ran the command   dpkg -i tzdata_2017b-2_all.deb   to install the package tzdata.  "What did you want to achieve?" I wanted the package to install.  "What happened instead? Did you encounter any warning or error messages?" The package installed and worked fine. However, the above warning appeared for the above packages.  I cannot copy and paste since this is occurring on a separate server. But I will rewrite it here:  dpkg: warning files list file for package python2.7-minimal missing, assuming package has no files currently installed. dpkg: warning files list file for package libsqlite3-0 missing, assuming package has no files currently installed. dpkg: warning files list file for package libaprutill-dbd-sqlite3, assuming package has no files currently installed. dpkg: warning files list file for package python-minimal, assuming package has no files currently installed.   I am not looking for a fix. I am just curious if dpkg giving me a warning in this type of situation actually matters. Again the program works anyway and nothing else on my system needed those packages.


Somehow I find it really hard to create a RegEx on my own and I am sure one of you does know how to work with them. My question: I want users, who register, to only be able to enter an email address of this format: ?.????@example.com.   To clear up, my RegEx should look for if there is only one character in the first position, followed by a dot, an infinite number of characters, an at-symbol, followed by "example.com".  Is it even possible to allow RegEx to look for full strings (example.com in this case) and if so, what would that RegEx look like? (I'd like an full example).  EDIT: By characters I mean alphanumeric characters (^[a-zA-z]$)   Thanks in advance!

I don't really understand regular expressions.  Can you explain them to me in an easy-to-follow manner?  If there are any online tools or books, could you also link to them?


I've decided to pursue introductory quantum mechanics as an independent study next year at my high school, and I am looking for a good textbook. Specifically, I would like a book that does not limit the math it uses to describe concepts. I'm familiar with multivariable calculus, differential equations, and linear algebra, as well as some basic concepts of abstract algebra. With that in mind, I'm looking for a book that rarely, if ever, sacrifices the formality and mathematical rigor of the topics covered for the kind of intuitive, conceptual presentation that glosses over important subtleties. The ideal book would also not require extensive prior understanding of physics; I have only learned as much as is taught in AP Physics C, and I plan to study pertinent material, like waves, that was not part of the curriculum but is essential to quantum mechanics. So let's suppose my experience by the time I start quantum will be at most all of the material covered in a sizable first-year physics textbook with calculus (specifically, University Physics by Young and Freedman).  In short, I am looking for a book that will cut me some slack with prior physics knowledge but not with prior math knowledge. Any ideas?

I'm interested in quantum mechanics book that uses high level mathematics (not only the usual functional analysis and the theory of generalised functions but the theory of pseudodifferential operators etc, certainly the modern mathematics). If there isn't something similar please give me a reference to the book that is strictly supported by mathematics (given a set of mathematically descripted axioms author develops the theory using mathematics as a main tool).


How do I disable the activities overview screen from popping up when I hit the top-left corner of my screen in Ubuntu GNOME 17.04?

I have been searching for a way to disable the "hot corner" feature of the Activities button in Gnome Shell. I would prefer it to require a click such that I don't keep accidentally activating it upon mouse over.


Let $\varphi: \mathbb{C}[x, y] \rightarrow \mathbb{C}[t]$ be a homomorphism that is the identity on $\mathbb{C}$ and sends $x \rightsquigarrow x(t)$ $y \rightsquigarrow y(t),$ and such that $x(t)$ and $y(t)$ are not both constant. Prove that the kernel of $\varphi$ is a principal ideal. This comes from Artin Second Edition, page 357. The only way I know to prove someting is a principal idea is division with reminder. But this doesn't work since there're two variables. Many thanks!

I have been having trouble with an exercise in my abstract algebra course. It is as follows:     Let $f: \mathbb{C}[x,y] \rightarrow \mathbb{C}[t]$ be a homomorphism that is the identity on $\mathbb{C}$ and sends $x$ to $x(t)$ and $y$ to $y(t)$ such that $x(t)$ and $y(t)$ are not both constant. Prove that the kernel of $f$ is a principal ideal.


I have a list of arbitrary length, and I need to split it up into equal size chunks and operate on it. There are some obvious ways to do this, like keeping a counter and two lists, and when the second list fills up, add it to the first list and empty the second list for the next round of data, but this is potentially extremely expensive.  I was wondering if anyone had a good solution to this for lists of any length, e.g. using generators.  I was looking for something useful in itertools but I couldn't find anything obviously useful. Might've missed it, though.  Related question:


Disney World has a promotion offering tickets for half price on all rides for the day. John buys tickets for him and his girlfriend and imagines having a wonderful day. Although when he arrives as Disney world they have to spend an additional half and hour in queue at every ride because of the additional number of people in the park.   This wanted/unwanted expectation where the wanted has a direct relationship with the unwanted that follows it is called [...]     Sally spends 2 hours in the morning to make herself look beautiful as she want to impress the jocks at school. However she finds herself attracting the attention of not just the jocks but the geeks and when the geeks stare at her it makes her uncomfortable.   This postive/negative outcome where the negative the follows it has a mutual relationship with the preceding positive ...  The negative effect might also not be obvious to the original user who benefits as it could be another person who suffers the causal effect.  I can think of causal effect or symbiotic relationship but both sound to scientific for the above examples and the context of what I want to say.

What is a single word, or phrase, for something that necessarily causes both harm and benefit? For example, a coal-fired power plant will harm human health through air pollution, but will bring electricity and economic development to a poor area.


To compare how short circuit evaluation logical operators, for example &&, perform compared to bitwise evaluation logical operators, i.e. &, I wrote this example and ran it:  package examples1;  import java.util.Scanner;  public class ShortCircuitOperatorsVSBitwiseOperators {     public static void main(String[] args) {         Scanner scanner = new Scanner(System.in);         System.out.print("Enter A: "); boolean a = scanner.nextBoolean();         System.out.print("Enter B: "); boolean b = scanner.nextBoolean();         long startTimeShortCircuited = System.currentTimeMillis();         boolean resultShortCircuited = true;         for(long i = 0; i < 10000000000L; i++) {             resultShortCircuited = a && b;         }         long endTimeShortCircuited = System.currentTimeMillis();         System.out.println(resultShortCircuited + " in " + (endTimeShortCircuited - startTimeShortCircuited) + " milliseconds, short-circuited");          long startTimeBitwise = System.currentTimeMillis();         boolean resultBitwise = true;         for(long i = 0; i < 10000000000L; i++) {             resultBitwise = a & b;         }         long endTimeBitwise = System.currentTimeMillis();         System.out.println(resultBitwise + " in " + (endTimeBitwise - startTimeBitwise) + " milliseconds, bitwise");         scanner.close();     } }   An example run shows the following:  java examples1/ShortCircuitOperatorsVSBitwiseOperators Enter A: false Enter B: true false in 4829 milliseconds, short-circuited false in 3276 milliseconds, bitwise   This doesn't make sense. I would expect the short circuit evaluation to be faster since it doesn't evaluate the right side of the && in this case if the left side was false. What is the reason for the counter-intuitive results?

How do you write (and run) a correct micro-benchmark in Java?  I'm looking for some code samples and comments illustrating various things to think about.  Example: Should the benchmark measure time/iteration or iterations/time, and why?  Related:


Serial number is F5065423 there's also another number is fw22107 I can't find it on the Internet. Need to know what year was it made.  Thanks

I have a bike I'm trying to sell because it's just been sitting in my basement. It looks as if someone primered it and the only thing I found was a serial number. Is there like a website I can look up more info on the bike using just that number?


This is a repost with additional info of an older question that was never answered. I have stumbled upon this old question while also trying to find the name of the book series myself, as I dearly wish to read it again but for the life of me, I can't remember the name of it.      This is a long shot but I'm really in need of help for this because      it was an amazing book. It was either a kid's or YA book. A guess      from what year it was published would be 90s-mid 2000s, as I read it      around 2008-2011.         The book cover was in first person view, with the main character   holding a weapon, and was a 3D rendered image inside a dungeon or   cave (that was very reminiscent of early 90s CGI animation), though   there may be variants.    It would have been set around when computer   games were mainstream (maybe around the same time as when it might've   been published) It's about a teenage boy who is bored at home, so he   looks through an old family computer to play a game and finds one   that he has never seen before. When he plays it he gets transported   into the game which is a fantasy-medieval setting.    All that I can   remember about the game and story is that the main character is on a   quest, he rides horses a lot, (to the point where he can ride horses   perfectly in real life), at one point he eats food at an ingame   tavern/restaurant? and he tosses the ingame coin currency at the   server because he's in a hurry, (don't know why I remember that bit   specifically haha), and he meets a gnome/dwarf character who is   helping him on his journey, who has a home in an ingame mountain, and   that time goes faster in the game. (For example, if he spent 5   minutes in the real world, 3 in-game days would have passed)   Sometimes as he's playing something stops him from being able the   play the game for a few weeks, maybe a concerned parent because he's   playing too much or there's a family vacation. I remember during the   time when he's not playing the game he's on a farm and knew how to   ride the horses there.    There was a character in the real world who   was the main character's sibling, relative or friend. They were like   a rival and was also very whiny (to some extent). They were on the   farm as well with him and questioned how the main character knew how   to ride a horse when he had never done it in real life.   This is all I can remember but if you need more specific information I can try and answer. It is definitely not Space Demons or Demons Don't Dream. If anyone knows anything remotely similar please mention it, I would really appreciate it. Thank you!!            Additional info:    It is not an online game or virtual reality game. It was a normal PC game, and all other characters are (I think), just NPCs.  He woke up for the first time in a field/farm and was super confused about what happened and where he was, as he had never played the game before. He is asked a super serious question before starting the game up for the first time, like "are you sure you wish to play ___?", and then he is transported into the game.  He frequently exited the game, to continue his IRL life. And sometimes, he would lose access to the family desktop PC for a couple of days at a time, and when he went back everyone in the game (NPCs), thought he had disappeared because he was gone for ages. I think once, his family when on holidays and he couldn't take the PC, for example.  It was a book series, not a single book. In later books he would play the game again months later in the real world, and years and years would have passed in the game world.  The plot involved 2 main warring sides/factions/countries of humans, but there were fantasy/magical races and characters involved. I vaguely remember something about each side having official colours, one red and one blue. I think the main character was on the blue side.   The original question was never correctly answered, so I'm posting again to see if anyone can remember.   Books that were ruled out in original post: Eden's Gate & Heir Apparent.


Short version: where did the Reinstall without erasing option go?  A friend's machine has been running 14.04 for almost a year. Some time in the last week or so the keyboard and mouse stopped working. I have tried both PS/2 and USB types and neither work with his current setup. However, it's clearly not a hardware issue because if I put in a Live CD everything works great.  I tried using the "Install Ubuntu" icon on the desktop top, but the only options it offers appear to be Erase the existing install, including /home and all of the installed software.  I have found references on the net (e.g. ) that show pictures where the first option is to reinstall and preserve home directories and installed programs, but an ISO downloaded this morning does not give me that option.  I'm sure I'm missing something obvious.

I would like to install Ubuntu 14.04.02 LTS on my machine which currently has Mageia 4.1.   So, I have the following partitions: One for /, one for swap and one for /home.   I have some important data on /home which I wouldn't like to lose (I have backed them up, but I would prefer to keep them) after a clean install. I plan to reformat partitions one and two as above and keep the /home one.   Will I be able to tell Ubuntu to do so during an installation? By this I mean: Will it be able to recognize the /home partition and keep all its data intact while formatting the rest? And one more question: Will it be able to keep the users as they are our will I be forced to change them too? (I have the bad feeling that it won't be able to keep the users as they are...)


Could you please tell me if it is okay to speak this way:   I have 12 hundred dollars left in my pocket. There are 10 hundred words in the text.   I've taken this from the TV series "The 4400".

In German, we often use "Elfhundert" (literally, "eleven hundred") for 1100 or "neunzehnhundert" ("nineteen hundred") for 1900; but is this correct in English?


I'm trying to remove from a datatable the duplicated lines, but without taking into account a column into the duplication filter.  Example :  | Name | Region | | Toto |   5    | | Toto |   2    | | Toto |   1    | | Gege |   2    |   What I'm searching for if to filter it as the following  | Name | Region | | Toto |   5    | | Gege |   2    |   Thank for your help.

I am playing with LINQ to learn about it, but I can't figure out how to use Distinct when I do not have a simple list (a simple list of integers is pretty easy to do, this is not the question). What I if want to use  on a list of an Object on one or more properties of the object?  Example: If an object is Person, with Property Id. How can I get all Person and use Distinct on them with the property Id of the object?  Person1: Id=1, Name="Test1" Person2: Id=1, Name="Test1" Person3: Id=2, Name="Test2"   How can I get just Person1 and Person3? Is that possible?  If it's not possible with LINQ, what would be the best way to have a list of Person depending on some of its properties in .NET 3.5?


For all $(x,y)\in\mathbb{R}^2$ a function $f$ satisfies $f (x+y)=f (x)\cdot f (y)$. If $f$ is continuous  at a point $a$, then show that  $f$ is  continuous  on $\mathbb R$ and  $f (x)= b^x$ for some constant  $b$.  My approach $$f (1)=f (1+0)=f (1)\cdot f (0)$$ Thus $f(0)=1$ and $$f(x+h)-f (x)= f(x)\,(f (h)-1)$$ I can prove the continuity  of the function. How can I prove that $f (x)=b^x$ for any $x\in\Bbb R$?

This is part of a homework assignment for a real analysis course taught out of "Baby Rudin."  Just looking for a push in the right direction, not a full-blown solution.  We are to suppose that $f(x)f(y)=f(x+y)$ for all real x and y, and that f is continuous and not zero.  The first part of this question let me assume differentiability as well, and I was able to compose it with the natural log and take the derivative to prove that $f(x)=e^{cx}$ where c is a real constant.  I'm having a little more trouble only assuming continuity; I'm currently trying to prove that f is differentiable at zero, and hence all real numbers.  Is this an approach worth taking?


In Saints Row IV, there is this achievement:   Minty Fresh Lick the candy cane barricade all the way through in 'The Fight Before Christmas'.   Which requires you to lick down the candy cane door (as in press E and watching a "licking" animation many times) instead of going to the waypoints to disable the mechanical reindeers instead to eventually enter the factory through the wrapping area, in the mission "The Fight Before Christmas" in the "How the Saints Saved Christmas" DLC.  I was wondering: How long (in terms of time^ or times E is pressed) does it take to lick down the door? I can't really time it as I am unable to keep a constant (more than 20FPS) framerate, and I forgot to count. ^Obviously while on a stable framerate... EDIT: I guess 100 times.

In the ‘How the Saints Save Christmas’ DLC mission, “The Fight Before Christmas”,  an objective gives me the option to 'Go to Stables' or 'Lick Door'.    I tried licking the candy cane which bars the door, but it seems that this will take forever (although the progress bar appears to move when I mash the E key).       I opted to just go to the stables.  I would like to know if it is possible to finish licking the candy cane. If yes, what will happen afterwards? Also, how long will it take? (I'll take an approximation.)


Please see my code below. I have a functional interface IFace with a method. I'm creating an implementation using Method reference from a class instance of Test. Can anyone tell me how the interface still refers to the instance method even if the reference is nullified? or reference is changed...?  public class Test {     private int intVar;      public Test() {         intVar = 123;     }      public Test(int intVar) {         this.intVar = intVar;     }      public void myInstanceMethod() {         System.out.println("Hello from instance: " + intVar);     }      public static void main(String[] args) {         Test t = new Test();          IFace i = t::myInstanceMethod;         i.method();  // Hello from instance: 123          t = null; // Nullifying the reference         i.method(); //  Hello from instance: 123                     // Why still executing the method if reference is nullified?????          t = new Test(456);         i.method(); // Hello from instance: 123                     // Why not Hello from instance: 456 ??????     }      static interface IFace {         void method();     } }

I always thought Java uses pass-by-reference. However, I've seen a couple of blog posts (for example, ) that claim that it isn't (the blog post says that Java uses pass-by-value). I don't think I understand the distinction they're making. What is the explanation?


I work on qgis plugin, and I say why not not work with GDAL, it'll be too useful. it is possible to integrate the GDAL library to develop QGIS plugin?

i've been working on my project to create QGIS plugin for raster analysis purpose.  It will be easier if we use gdal library.  Are we able to use gdal library to develop QGIS plugin?   If so, how do we set up the gdal package inside the qgis2 plugin environment?


I have this piece of code:  int i = 0; foreach(var tile in lib.dic.Values) {     var ii = i;     var t = tile;     Button b = new Button( () = > { MainStatic.tile = t; } );     Checkbox c = new Checkbox( () = > { lib.arr[ii].b = !lib.arr[ii].b; } );     i++; }   While the above code works as it should, this piece below:  int i = 0; foreach(var tile in lib.dic.Values) {     Button b = new Button( () = > { MainStatic.tile = tile; } );     Checkbox c = new Checkbox( () = > { lib.arr[i].b = !lib.arr[i].b; } );     i++; }   …will always execute the delegates with the last values of i and tile variables. Why does this happen, and why do I have to make a local copy of those vars, especially non-reference type int i?

I met an interesting issue about C#. I have code like below.  List<Func<int>> actions = new List<Func<int>>();  int variable = 0; while (variable < 5) {     actions.Add(() => variable * 2);     ++ variable; }  foreach (var act in actions) {     Console.WriteLine(act.Invoke()); }   I expect it to output 0, 2, 4, 6, 8. However, it actually outputs five 10s.  It seems that it is due to all actions referring to one captured variable. As a result, when they get invoked, they all have same output.  Is there a way to work round this limit to have each action instance have its own captured variable?


I am a citizen of Mexico (where I was born) and of the United States. Is there any way that I could travel without my passport either by land or air? Only documents I have on me are my state ID and my social security card. Are there any other options I should consider?

I'm Mexican and a US Permanent Resident.  I'm going to fly into Mexico from the United States, and I want to know if I can use my Mexican voter's card to check in at the airport, or will I need my Mexican passport?  I'm asking because I don't have a Mexican passport, and I will need to apply for one, but it would be much easier if I could just use my Mexican voter's card.


I have the following MWE:  \documentclass[a4paper,11pt,Times]{article} \usepackage[english]{babel} \usepackage{amsbsy} \usepackage{sectsty} \usepackage[scaled=1]{helvet} \usepackage{titlesec} \usepackage{xcolor} \usepackage[font=small]{caption} \usepackage{sectsty} \titleformat{\section}                                        {\normalfont\sffamily\bfseries\color{black}}   {\thesection}{1em}{} \titleformat{\subsection}                                      {\normalfont\sffamily\slshape\color{black}}   {\thesubsection}{1em}{}  \title{The title} \begin{document} \maketitle \section {\sffamily \textbf{Main Section}} Main section text here \subsection {\sffamily \textbf{Subsection}} Subsection text here \end{document}   Kindly help me on how to put a "period" next to the section Numbering. Presently, the code returns as:  "1  Main Section"  whereas I want  "1. Main Section"  Thanks

I wonder is there any way to change the format of section numbering from 1.1 to 1.1. ? I know this is trivial, but I really need to add one more dot after the section number. Does anybody know how to do that?  Thanks a lot


A spaceman was modified by a group that threw him out of the program before the final stage. He was a thief and soldier. He needs metal in his diet. When he is near a fully modified man, he gets a speed and power boost.

Back in the 70's I read a series of books featuring an enhanced man that was on the run from mysterious greatly enhanced agents. the enhancement was via implants for the hero whereas the agents had cybernetic augmentation of the skeleton and musculoskeletal system hence their greater power. the hero and the agents were created by the same agency and his augmentation may have been a development stage.  When the hero was near an enhanced he could power up using their energy against them. One example was pushing an enhanced out of a tower block window and riding the agent down to the ground where the agent's legs pistoned through his torso, but the hero was alive.  Anyone?


Sometimes I want a lot of highly-random data, for example to overwrite a file or even a whole hard disk. Should I use  or ? What are the advantages or disadvantages of each? Is there a better alternative?

I am not quite understanding the difference between /dev/random and /dev/urandom on Linux systems.  What does it mean to run out of “entropy” and how does the system get more?  What does it mean when people say /dev/random “blocks” if there isn’t enough entropy?  Which one should I use for what scenarios?


When going onto recent views on Safari Mobile I saw it says there were 5 reviews in the suggested edit queue.  Yet. In the users reviews today list there were only two:    Also for close votes:    And low quality posts:

Very funny: on the stats page for 'suggested edits', it says there is 1 user with 1 review so far today. However, the counter for 'reviews today' says there are 11. Similar issues exist in other review queues of other Stack Exchange sites, e.g. for first posts. . Checkout these stats to see it at work.  I would not be surprised if the counter has not been reset last night at the start of a new day ... smells like a bug (or yet another undocumented feature ...).


Was wondering if anyone has built an iSCSI server on current AMD hardware. I ask because i am slowly implementing ccdisk on a 28 machine internet cafe. Now i am starting to question my build. I assembled a 6 core AMD FX6300 with 16 gigs of RAM controlling a hardware RAID 6 ; 4 x 2tb WDre drives array. The initiator teams so i purchased a quad pro NIC from Intel.   Is this going to be sufficient to run 28 machines or should i pop for a more robust AM3 cpu ?

This is a  about  Related:      I have a question regarding capacity planning. Can the Server Fault community please help with the following:   What kind of server do I need to handle some number of users? How many users can a server with some specifications handle? Will some server configuration be fast enough for my use case? I'm building a social networking site: what kind of hardware do I need? How much bandwidth do I need for some project? How much bandwidth will some number of users use in some application?


I am trying to throw command output to file plus console also. This is because i want to keep record of output in file. I am doing following and it appending to file but not printing ls output on terminal.   $ls 2>&1 > /tmp/ls.txt

In bash, calling foo would display any output from that command on the stdout.  Calling foo > output would redirect any output from that command to the file specified (in this case 'output').  Is there a way to redirect output to a file and have it display on stdout?


The motive is to evaluate the following limit:  $$\lim_{n\to \infty}\sum_{r=1}^{n} \frac{r}{n^2 + n + r}$$  I wrote it as   $$ \lim_{n\to \infty}\sum_{r=1}^{n}\frac{r/n}{1 + 1/n + r/n^2} \approx ^{?} \int_{0} ^{1} x \, dx  = \frac{1}{2}$$  Now is this correct? Doesn't seem very correct to me. Thanks for your thoughts :)    Oliver Oloa gave a hint on Sandwich theorem but removed answer.  $$\sum_{r=1}^{n} \frac{r}{n^2 + n + n} \le \sum_{r=1}^{n} \frac{r}{n^2 + n + r} \le \sum_{r=1}^{n} \frac{r}{n^2 + n + 1}$$  Using this I think we get $1/2 \le L \le 1/2$ so limit is $1/2$.

Evaluation of $$\lim_{n\rightarrow \infty}\sum^{n}_{r=1}\frac{r}{n^2+n+r}$$   $\bf{My\; Try::}$ Let $$L = \lim_{n\rightarrow \infty}\sum^{n}_{r=1}\frac{r}{n^2+n+r} = \lim_{n\rightarrow \infty}\sum^{n}_{r=1}\frac{\frac{r}{n}}{\frac{r^2}{n^2}+\frac{1}{n}+\frac{r}{n^2}}\cdot \frac{1}{n}$$  I want to convert into Reinmann Integral, But it is not possible here.  So How can I solve it  Help me  Thanks


I tried to login today using my blogger custom domain account, but I kept getting a 404 error. Here are the steps I tried using both Chrome and a Internet Explorer, both with cache and cookies cleared:  Visit any Stackexchange site (SO, DIY, English, etc) Click login button and select More OpenID options Enter my custom domain into the box:  Press login and browser is redirected to the blogger login page (as expected) Login with my blogger credentials Credentials are accepted, but browser is then redirected to a 404 error page.  Depending on the browser I was using the URL that it was directed to would appear different: IE displayed:  Chrome displayed (redacted): https://www.blogger.com/loginz?d=%2Fopenid-confirm.g%3Fidentity%3Dhttp%253A%252F%252Fblog.theg2.net%252F%26realm%3Dhttp%253A%252F%252Fenglish.stackexchange.com%252Fusers%252Fauthenticate%252F%26openIdSetupToken%3Doidrp.identity%253Dhttp%25253A%25252F%25252Fblog.theg2.net%25252F%2526oidrp.return_to%253Dhttp%25253A%25252F%25252Fenglish.stackexchange.com%25252Fusers%25252Fauthenticate%25252F%25253Fs%25253D8820be50-xxxx-xxxx-xxxx-da58db477401%252526dnoa.userSuppliedIdentifier%25253Dblog.theg2.net%252526dnoa.op_endpoint%25253Dhttp%2525253A%2525252F%2525252Fwww.blogger.com%2525252Fopenid-server.g%252526dnoa.claimed_id%25253Dhttp%2525253A%2525252F%2525252Fblog.theg2.net%2525252F%2526oidrp.trust_root%253Dhttp%25253A%25252F%25252Fenglish.stackexchange.com%25252Fusers%25252Fauthenticate%25252F%2526oidrp.assoc_handle%253D&a=ALL&pli=1&auth=DQAAAHwxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxx........ I also noticed that a new login option for "StackExchange Account" was listed. I tried entering in my email account, but it said there was no account associated with it. Update: See blog post about new  UPDATE: I was finally able to login by adding a second OpenID to my account (a Google account or ) and then login using that OpenID. It appears either blogger changed their OpenID system and/or StackExchange is no longer comparable with blogger open id accounts. It also works if you login to  before trying to login to a StackExchange site (see answer below). Trying to login to StackExchange first using a blogger OpenID with custom domain still generates a 404 error.

NOTE: Signing up or Logging in via OpenID is no longer officially supported from any of our sites. Currently,  is still on the internet, but we are in the process of completely removing it.    Stack Overflow was an early and strong supporter of . We built our sign up/log in flow around it. We were idealistic and had , but these hopes weren't realized. Over the years people have wondered if  is . We've had to remove support as OpenID providers  or .  The time has come to part ways. The reality is OpenID support has created a ton of complexity in our codebase and the number of users actively using OpenID simply don't justify that cost. Users have spoken with their actions. You prefer Google, Facebook and Stack Exchange (aka email/PW) based account auth.     Of our 9,813,747 accounts around one-tenth of a percent are actively using OpenID (defined as having visited a site in the past 12 months). If you include all the inactive accounts it is still less than 2.9% of all accounts.  So, what is the plan?   DONE - Remove the ability to create a new account with most OpenID providers DONE - Add the ability to  DONE - Convert Launchpad (used on  ) to OAuth DONE - Remove creating new accounts with Steam from  (Steam removed support for OAuth. Only 454 accounts that use Steam have visited Arqade in the past 6 months.) DONE - We will email all users that rely on deprecated OpenID credentials and request that they  DONE - Run an announcement banner for any user who signs in with deprecated OpenID credentials urging them to  DONE - End support for logging in via OpenID  In progress - Remove  (note: only 0.2% of authorized sites in the last year have been non-Stack Exchange sites.)   Obviously, if your account relies on OpenID, then make life easy and go now and .   If you've forgotten what you credentials you use to login, then  to refresh your memory. If you don't see one of the three account types shown in the image below (Google, Facebook or Stack Exchange) then click the "add more logins" button to add one of them to your account.    Remember, SE OpenID accounts are really email/pw accounts handled through complicated OpenID code path. They will be migrated to a simpler email/pw only code path as a part of this change. No extra work required on your part.


We consider the problem  $$ \begin{cases} x^2 y''+ x\, y'+\lambda\, y = 0 \\ y(1)=y(e)=0 \end{cases} $$  The question is to find the eigenvalues and eigenfunctions for this problem.  I try to put $y(x)=x^r$ and plug it in the equation, then we obtain the characteristic equation  $$ r^2 + \lambda = 0 $$  In the case $\lambda > 0$ we put $\lambda = \alpha^2$ where $\alpha \in \mathbb{R}^\star_+$. Then the characteristic equation is  $$ r^2 + \lambda = 0 $$  Case 1. If $\lambda > 0$ We put $\lambda = \alpha^2$ where $\alpha \in \mathbb{R}^\star_+$.  Then the general solution of the equation is  $$ y(x)=C_1 \cos(\alpha\, x)+ C_2 \sin(\alpha\, x). $$  We have $y(1)=0 => C_1=0$ and $y(e)=0 => C_2 \sin(\alpha\, e)=0$  $\sin(\alpha\, e)=0 => \alpha\, e = \pi + 2\, k\, \pi, \ k \in \mathbb{Z}^\star$  Then the eigenvalues are $\lambda= \alpha^2$ where $\alpha= \dfrac{\pi}{e}+ \dfrac{2\,k\,\pi}{e}$ My solution is correct?

we consider the problem $$ \begin{cases} x^2 y''+xy'+\lambda y\\ y(1)=y(e)=0 \end{cases} $$ The question is to find the eigenvalues and eigenfunctions for this problem.  I try to put $y(x)=x^r$ and plug it in the equation, then we obtain the caracteristic equation $$r^2+r+\lambda =0$$ In the case $\lambda >0$ we put $\lambda= \alpha^2$ where $\alpha \in \mathbb{R}^\star_+$. Then the caracteristic equation is  $$ r^2+\lambda=0 $$  Case 1. If $\lambda >0$ We put $\lambda = \alpha^2$ where $\alpha \in \mathbb{R}^\star_+$.  Then the genral solution of the equation is  $$ y(x)=C_1 \cos(\alpha x)+ C_2 \sin(\alpha x). $$ We have $y(1)=0 => C_1=0$ and $y(e)=0 => C_2 \sin(\alpha e)=0$  $Sin(\alpha e)=0 => \alpha e = \pi + 2 k \pi, \ k \in \mathbb{Z}^\star$  My solution is correct?


How can I create QR codes in Ubuntu 16.04?

I saw a  reading a book, but I don't have a smart phone to check it.    So I just took a picture of it and saved my PC. And I downloaded libdecoderqr0, libdecodeqr-dev, libdecodeqr-examples for reading it. But I don't know how to use it.    What do I do next, or is there a nicer way to read QR codes?


If I have $1$ jar of $20$ balls with $10$ red, $5$ blue and $5$ yellow, $1$ jar of $30$ balls with $10$ red, $10$ blue and $10$ yellow and $1$ jar of $50$ balls with $15$ red, $20$ blue and $15$ yellow, but I can only pick three from each jar. How many permutations of balls can I get if the order is important?  As shown in this rough sketch    Attempts: $\frac{20!}{(10!\times5!\times5!)} + \frac{30!}{(10!\times10!\times10!)} + \frac{50!}{(15!\times20!\times15!)} = 7.31\times10^{21}$

I am trying to find the total number of signals that can be created from $3$ pink, $3$ white and $2$ black flags when arranged in a straight line. But, only $5$ flags are allowed in a signal.  I know how to find permutations in this situation when all are taken at a time i.e. a signal has $8$ flags, which would be $\frac{8!}{3! \cdot 3! \cdot 2!}$, but cannot see how to start solving a scenario where all are not taken at the same time.  Formula when all are taken at a time with some like objects  $$\frac{n!}{a! \cdot b! \cdot c! \cdot d!...}$$  Question  Is there a modified formula that will give permutations of $n$ objects taken $r$ at a time when some of these objects are alike and $r < n$?