I am a newbie in testing and i just write in the bug report, the pre-requisites , actual results and expected result section under "description".  Other testers say that my report is not professional and it's incomplete.  How can I improve my verbiage in expected results. Is it like - "user should be deleted on clicking delete button ' or "user is or must be deleted?  How to write a high quality bug? Refer to a sample bug report written by  testing experts.
Nothing can ruin your day like a poorly-written bug report.  I've seen several sets of guidelines for bug reporting in different organizations. In your opinion, what guidelines/steps are most essential for good bug reporting?  Feel free to share complete guideline recommendations from prior/current projects/organizations.
Why is isNaN(null) == false in JS? This code in JS gives me a popup saying "i think null is a number", which I find slightly disturbing. What am I missing?    if (isNaN(null)) {   alert("null is not a number"); } else {   alert("i think null is a number"); }     I'm using Firefox 3. Is that a browser bug?  Other tests:    console.log(null == NaN);   // false console.log(isNaN("text")); // true console.log(NaN == "text"); // false     So, the problem seems not to be an exact comparison with NaN?  Edit: Now the question has been answered, I have cleaned up my post to have a better version for the archive. However, this renders some comments and even some answers a little incomprehensible. Don't blame their authors. Among the things I changed was:   Removed a note saying that I had screwed up the headline in the first place by reverting its meaning Earlier answers showed that I didn't state clearly enough why I thought the behaviour was weird, so I added the examples that check a string and do a manual comparison. What graphics packages are there for creating graphics in LaTeX documents? Execute PowerShell Script from C# with Commandline Arguments I need to execute a PowerShell script from within C#. The script needs commandline arguments.  This is what I have done so far:  RunspaceConfiguration runspaceConfiguration = RunspaceConfiguration.Create();  Runspace runspace = RunspaceFactory.CreateRunspace(runspaceConfiguration); runspace.Open();  RunspaceInvoke scriptInvoker = new RunspaceInvoke(runspace);  Pipeline pipeline = runspace.CreatePipeline(); pipeline.Commands.Add(scriptFile);  // Execute PowerShell script results = pipeline.Invoke();   scriptFile contains something like "C:\Program Files\MyProgram\Whatever.ps1".   The script uses a commandline argument such as "-key Value" whereas Value can be something like a path that also might contain spaces.  I don't get this to work. Does anyone know how to pass commandline arguments to a PowerShell script from within C# and make sure that spaces are no problem? What are the main reasons the elves did not show up in force to defeat Sauron? During The Great Battle of the Last Alliance, there were an estimated 100,000 elves that fought with the armies of Isildur. This was one of the first scenes in the first LOTR movie. However, in the trilogy, it appears that only a small number of elves show up to Helms Deep and overall left the majority of the fighting to the humans. Why did the elves not participate during the rest of the war? Blank lines in an equation and some other similar function Why blank lines between equation makes error? there are a lot of commands in latex and almost for all of them these blank lines are not important,  but why in this case is important and is there any similar function? I have a USB flash drive which is no longer recognized by my computer. Windows Disk Management and DiskPart report No Media with no storage space (0 bytes) on the drive and I cannot partition or format the drive:     If the drive appears in Windows Explorer, trying to access it returns an error message indicating that there is no disk inserted, such as the following:     Please insert a disk into drive X:.   Various disk partitioning and data recovery utilities don't recognize the drive or only give a generic name for the drive and cannot access the contents of the drive.  What can I do? How do I recover data from the drive?     This question comes up often and the answers are usually the same. This post is meant to provide a definitive, canonical answer for this problem. Feel free to edit the answer to add additional details. Should I use center or centering for figures and tables? What is the correct way to center figures and tables (figure, table)?  \begin{center} ... \end{center}   or   \begin{centering} ... \end{centering} How Does The Debugging Option -g Change the Binary Executable? When writing C/C++ code, in order to debug the binary executable the debug option must be enabled on the compiler/linker.  In the case of GCC, the option is -g.  When the debug option is enabled, how does the affect the binary executable?  What additional data is stored in the file that allows the debugger function as it does? Because of past conflicts, I don't believe my advisor will write me a good LOR for postdoc positions. What should I do? How essential is having my advisor's letter for post doc application?   I had a pretty bad relationship with my advisor for more than 4 years since I joined his lab and sometimes the relationship feels like slow inflammation that can easily flare up. We had very different opinion on how I want to approach my thesis and we argue very often on the experimental approach and the angle of attack. After that, he turned passive aggressive and completely hands-off. I noticed that he started slow to response to my email and given me very small amount time for meeting in comparison to other people in the lab. However, I proved to him that my approach was right and wrote the full paper myself and got published.   Recently, I got contact by a post doc employer who interested in my own work and request letter of recommendation. I asked my advisor for letter and he told me that I should write my own from which he can modify. I feel this is quite strange as he had wrote for all the other people in the lab, including a departing post doc who is currently interviewing for job. He told me he had done the same for other people but obviously he lied to me.   I further asked if he can provide me a copy of a completed version of the recommendation but he refused.   My question is should I still trust him to write my letter and is it essential? This post doc position is a great opportunity for me and either way I do is a big gamble.  Update: I decided to let my advisor wrote a letter for me and I think I may have made a big mistake. Since he wrote my letter, I asked the post doc lab head if my letter is completed and I no longer be able to hear back from him. Before that, he was quick to response to my email and showed great enthusiasm. As an insurance, I use one opportunity I have less desire to as bait to test the water and I still have one more shot at another position I really want.  Now, I'm thinking requesting open letter from advisor from now on for any future position or use letter service to check the letter.   Any suggestion? Thanks.  update: Great news! Got interviewed and offered at top ones! Thanks everyone! How do I convert a video to GIF using ffmpeg, with reasonable quality? I'm converting a video to GIF file with ffmpeg:  ffmpeg -i input.flv -ss 00:00:00.000 -pix_fmt rgb24 -r 10 -s 320x240 -t 00:00:10.000 output.gif   It works great, but output gif file has a very low quality.  Any ideas how can I improve quality of converted gif? How can I change my default text editor from gedit to Emacs? Best method for short time-series I had an application for returning closest matches to certain values in a large  cluster of values( as in my earlier )   and I chose a VBA solution. While in the course of using the said application, I observed that the results for the value of 0.5 were not correct. I had been using the VBA Round function which I found to be returning 0 for 0.5 rounded to integer whereas the worksheet round function returns 1. Strangely, the VBA round function returns 2 for 1.5. I had to substitute the worksheet function in place of the VBA one.  Am I missing something? We always say that tree levels are classical but loop diagrams are quantum.  Let's talk about a concrete example： $$\mathcal{L}=\partial_a \phi\partial^a \phi-\frac{g}{4}\phi^4+\phi J$$ where $J$ is source.   The equation of motion is $$\Box \phi=-g \phi^3+J$$  Let's do perturbation, $\phi=\sum \phi_{n}$ and $\phi_n \sim \mathcal{O}(g^n) $. And define Green function $G(x)$ as $$\Box G(x) =\delta^4(x)$$  Then   Zero order:  $\Box \phi_0 = J$   $\phi_0(x)=\int d^4y G(x-y) J(y) $  This solution corresponds to the following diagram:  First order:  $\Box \phi_1 = -g \phi_0^3   $  $\phi_1(x)=-g \int d^4x_1 d^4x_2 d^4x_3 d^4x_4 G(x-x_1)G(x_1-x_2)G(x_1-x_3)G(x_1-x_4)J(x_2)J(x_3)J(x_4) $  This solution corresponds to the following diagram:  Second order:  $\Box \phi_2 = -3g \phi_0^2\phi_1  $  $\phi_2(x)= 3g^2 \int d^4x_1 d^4x_2 d^4x_3 d^4x_4 d^4x_5 d^4yd^4z  G(x-y)G(y-x_1)G(y-x_2)G(y-z)G(z-x_3)G(z-x_4)G(z-x_5) J(x_1)J(x_2)J(x_3)J(x_4)J(x_5) $ This solution corresponds to the following diagram:  Therefore, we've proved in brute force that up to 2nd order, only tree level diagram make contribution.  However in principle the first order can have the loop diagram, such as  but it really does not occur in above classical calculation.  My question is:   What's the crucial point in classical calculation, which forbids the loop diagram to occur? Because the classical calculation seems similiar with quantum calculation. How to prove the general claim rigorously that loop diagram will not occur in above classical perturbative calculation. Are there integer solutions to $9^x - 8^y = 1$? I installed Ubuntu 14.04 onto my Acer Aspire E15. The PC has a 500 Gigabyte HDD.   During the installation it divided the HDD into separate partitions. However every time I turn on the PC it goes directly into Windows 8.1. It doesn't allow you the opportunity to select which OS you want to use.   Question 1: How do I set the PC so it will allow me to select the OS?  Question 2: And if #1 isn't possible. How to I remove Ubuntu from the PC and recover the partition for Windows We have a org wide email addressed which has been "Verified" into our sandbox. I understant org wide email addressed is unsupported metadata, so this was achieved as pre deployment step.   Into our repo, we have a workflow that send email alert to that org wide email address. "  Workflow   ... &lt;senderAddress&gt;noreply@mycompany.com.au&lt;/senderAddress&gt; &lt;senderType&gt;OrgWideEmailAddress&lt;/senderType&gt;    The problem we are facing is that we are still getting the following error even if this org wide email address is verified:      You must specify a verified Org Wide Email Address for this sender   type.   Is that a bug in the metadata api or expected behaviour ? Ideally we would like to not have to do that as a post deployment step.   PS: We are running DX under api version 43.0 looks like someone got happy with the CSS - you can now no longer tell what tab is active, e.g. answer tabs:        Even if you hover over an option - it wont show you what tab is currently selected - it only shows you what tab you are currently hovering over: Why didn't Aragorn keep going with the army of the dead? Quantum entanglement: does it necessarily imply superluminal information transfer?