I have a very simple question, I see advance level programmers do not store values in any variable before returning.  They simply use the return statement.  public static decimal GetChargesF(int selectedUnitType, int insuranceTypeId) {         return GetMoveIn(selectedUnitType, insuranceTypeId); }   Now my question is, how does it help during debugging. If I had one variable to store the return value before actually returning then I would have debugged much faster. As of now the only way for me is to go to the calling function and see the values returned. Is this expected or there is some way to know the values without storing in any variable. Is there any way to put the breakpoint on the return statement and see the values.
Take the following function:  DataTable go() {     return someTableAdapter.getSomeData(); }   When I set a breakpoint in this function, is there a possibility to inspect the returned value? go() is directly coupled to a datagrid in an .aspx page.  The only way to inspect the returned datatable is to use a temporary variable. However, that's a bit inconvenient. Isn't there another way?
How to appeal to undelete an answer deleted by moderator? How can someone make an appeal to un-delete an answer that was deleted by a moderator?    There should at least be an appeal/vote process, if the deletion was unfair. Moderators are humans like rest of us, and they can be unjust. Merging two SQLite databases which both have junction tables Schengen Visa Refusal: Justification for the purpose and conditions of the intended stay was not provided How to stop Tkinter Frame from shrinking to fit its contents? This is the code that's giving me trouble.   f = Frame(root, width=1000, bg="blue") f.pack(fill=X, expand=True)  l = Label(f, text="hi", width=10, bg="red", fg="white") l.pack()   If I comment out the lines with the Label, the Frame displays with the right width.  However, adding the Label seems to shrink the Frame down to the Label's size.  Is there a way to prevent that from happening? Create model from XYZ data points I wanted a simple environment for making lists of equations, so I made one that includes an equation and a split environment. The code won't compile and the error seems unrelated. The most pressing thing I noticed was the &quot;You can't use `\end' in internal vertical mode.&quot; The problem is definitely the split environment. Here is a MWE. \documentclass{article} \usepackage{amsmath}  \newenvironment{env}     {\begin{equation}\begin{split}}     {\end{split}\end{equation}}  \begin{document} \begin{env}     x \end{env} \end{document}  If I remove the split environment from env, everything compiles just fine. Additionally, If the following example compiles just fine. What is the problem then? \documentclass{article} \usepackage{amsmath}  \begin{document} \begin{equation} \begin{split}     x \end{split} \end{equation} \end{document}  Here is the LaTeX error upon running the MWE. math.tex|11 error| LaTeX Error: \begin{split} on input line 9 ended by \end{env}. math.tex|12 error| LaTeX Error: \begin{equation} on input line 9 ended by \end{document}. math.tex|12 error| Missing $ inserted. math.tex|12 error| Missing } inserted. math.tex|12 error| Missing } inserted. math.tex|12 error| Missing } inserted. math.tex|12 error| Missing \cr inserted. math.tex|12 error| Missing { inserted. math.tex|12 error| Missing { inserted. math.tex|12 error| Extra }, or forgotten $. math.tex|12 error| Missing $ inserted. math.tex|12 error| Missing } inserted. math.tex|12 error| You can't use `\end' in internal vertical mode. math.tex|12 error| LaTeX Error: \begin{equation} on input line 9 ended by \end{document}. math.tex|12 error| Missing } inserted. math.tex|12 error| Missing $ inserted. math.tex|12 error| Display math should end with $$. math.tex|| Emergency stop. math.tex|| ==&gt; Fatal error occurred, no output PDF file produced! What are the differences between a pointer variable and a reference variable in C++? I want to generate some formatted output of data retrieved from an MS-Access database and stored in a DataTable object/variable, myDataTable. However, some of the fields in myDataTable cotain dbNull data. So, the following VB.net code snippet will give errors if the value of any of the fields lastname, intials, or sID is dbNull.     dim myDataTable as DataTable    dim tmpStr as String    dim sID as Integer = 1     ...    myDataTable = myTableAdapter.GetData() ' Reads the data from MS-Access table    ...     For Each myItem As DataRow In myDataTable.Rows      tmpStr = nameItem("lastname") + " " + nameItem("initials")      If myItem("sID")=sID Then         ' Do something     End If      ' print tmpStr     Next   So, how do i get the above code to work when the fields may contain dbNull without having to check each time if the data is dbNull as in ? LibreOffice toolbar icons went blank after application hanged Factorial of 0 - a convenience? If I am correct in stating that a factorial of a number ( of entities ) is the number of ways in which those entities can be arranged, then my question is as simple as asking - how do you conceive the idea of arranging nothing ?   Its easy to conceive of a null element in the context of arrays, for example - so you say that there is only one way to present a null element.   But, in layman terms - if there are three humans $h1, h2, h3$ that need to be arranged to sit on three chairs $c1, c2, c3$ - then how do you conceive of a) a null human, and b) to arrange those ( that ? ) null humans ( human ? ) on the three chairs ?   Please note that referral to humans is just for easy explanation - not trying to be pseudo-philosophical. Three balls to be arranged on three corners of a triangle works just fine. So basically, how do you conceive of an object that doesn't exist, and then conceive of arranging that object ?  So, in essence ... is $0! = 1$, a convenience for mathematicians ? Not that its the only convenience, but just asking. Of course, there are many.  If yes, then its a pity that I can't find it stated like so anywhere.  If not, then can anybody suggest resources to read actual, good proofs ? Why do only Hobbits use a combination of first- and last names? While all the Hobbits I can think of have a combination of first- and lastname (e.g., Bilbo Baggins, Peregrin Took, the Sackville-Baggins's,...), I can't think of any character* of another race that has a lastname:   Men seem to like to add a reference to their ancestors (e.g., Aragorn, Arathorn's son or Isildur's heir) Dwarves seem to like descriptive or honorary names (e.g., Thorin Oakenshield, Dain Ironfoot). They are not lastnames though, since they do not get passed on to descendants. Elves don't have a need for lastnames, since elvish names are unique. Some nevertheless seem to have an additive (e.g., Legolas Greenleaf). Likewise, I can't find any usage of lastnames among Ents, Eagles, Istari, Orcs, trolls,...   But why would a society that is quite rural and not a leader of modernization be the only one to use a modern naming system with first- and lastnames?  *Except for Tom Bombandil. But he is, well, "special". How do I create a shortcut for a script, and run it as a .desktop file? I have installed Teamspeak onto my Ubuntu 15.10 system. Teamspeak requires a script to be ran in-order to start. How can I create a symbolic link that is a .desktop so I can open the .desktop file, and have it run the script? I have looked at a few methods, but they all seem like hotfixes. Is there a proper way to do this? Isekai manga where the mc is reincarnated through his own magic How do you use script variables in psql? In MS SQL Server, I create my scripts to use customizable variables:  DECLARE @somevariable int   SELECT @somevariable = -1  INSERT INTO foo VALUES ( @somevariable )   I'll then change the value of @somevariable at runtime, depending on the value that I want in the particular situation. Since it's at the top of the script it's easy to see and remember.  How do I do the same with the PostgreSQL client psql? I am new to Linux and Ubuntu. When I don't know how to do something with this OS I search on the web and Ask Ubuntu and always find the answer.  But sometimes it's not a great answer nor complete tutorial. I follow the instructions anyway, but I don't know what all the commands mean.  So my question is:   When I follow a tutorial, am I 100% safe? If not, then how can I tell I am in danger? Example to prove that $ C^1[0,1] $ is not a Banach space for the uniform norm? The space $ C^1[0,1] $- the space of all continuously differentiable functions on $ [0,1]$ is not a Banach space with respect to the sup norm,$ \|.\|_{\infty} $ since the uniform limit of a continuously differentiable function need not be differentiable.  How can I illustate this statement using a counter example? Can I use $ f_{n}=\frac1 n \sin nx $ as a counter example?  Also, is $ C^1[0,1] $ is same as the space given by $ X=\{f\in C^1[0,1]:f(0)=0 \}$. Can I use the same example to show that this is not a Banach space?  More help is appreciated! Thanks! $$\overline{z}=z^n$$ where $n\in \mathbb{N}$   So I have started with moving the polar representation as the expression is in the n-th power  $$rcis(-\theta)=r^ncis(n\theta)$$   I can not multiply both sides in $r^{(-n)}$ as $n\in \mathbb{N}$ how should I continue? List the files accessed by a program time is a brilliant command if you want to figure out how much CPU time a given command takes.  I am looking for something similar that can list the files being accessed by a program and its children. Either in real time or as a report afterwards.  Currently I use:  #!/bin/bash  strace -ff -e trace=file "$@" 2&gt;&amp;1 | perl -ne 's/^[^"]+"(([^\\"]|\\[\\"nt])*)".*/$1/ &amp;&amp; print'   but its fails if the command to run involves sudo. It is not very intelligent (it would be nice if it could only list files existing or that had permission problems or group them into files that are read and files that are written). Also strace is slow, so it would be good with a faster choice. The reminder email says:     We noticed you have not accepted our invitation to join Stack Overflow Careers. Only 3 days remain before it expires [...]      But please act soon: this invitation expires in 14 days [...]   Is it 3 days or 14 days now? postfix fails to send mail with "fatal: unknown service: smtp/tcp"