If I have a .class file, how do I open it/view the source code? I think I have to decompile it first, but how the heck do I do that?
What program can I use to decompile a class file? Will I actually get Java code, or is it just JVM assembly code?  On Java performance questions on this site I often see responses from people who have "decompiled" the Java class file to see how the compiler optimizes certain things.
How do I write an Apex unit test? Zooming / Focusing certain parts of a chart in latex I am using pgfplot to draw graphs in latex. Now this is the problem I am facing:  \begin{tikzpicture}[scale=1] \begin{axis}[ybar,grid=major,bar width=2pt,width=8cm, height=8cm,xmin=1,xmax=540,ymin=1,ymax=240] \addplot [draw=black,fill=green]  table [x=size, y=cluster, col sep=comma] {sim-0.4-0.6.csv}; \end{axis} \end{tikzpicture}   It generates the following graph:    Since, I have values mainly between 0-50 on x-axis, I want to zoom there. After that, values comes around 500. S0, there are no graph points between 50 - 450. How should I do that? What is the difference between a field and a property? Question on the stability of the solar system One of the pertinent questions about many body systems that causes me much wonder is why the solar system is so stable for billions of years. I came across the idea of "resonance" and albeit an useful concept, it hardly explains the long stability of the solar system. Normally an N body problem with inverse square mutual interaction is an example of a chaotic system. Is there any real progress about this stability issue? Gel circular polarising filter I am contemplating buying a lens that only takes rear gel filters. Is it possible to buy a circular polarising filter in gel format? If so, who can supply them (preferably UK based)? Sometimes I hear people say something like the example below. Is it correct to use the word since in this manner?     Mosquitoes are surviving on earth since millions of years. A number of times I have encountered in text-books and articles that neutrinos might contribute only a small fraction to dark matter. The reason has to do with the fact that if all of the dark matter consisted of neutrinos, then small-scale structures in the Universe could not have formed yet, because, as they say, neutrinos "wash out" small fluctuations. However, none of these texts provided a reference to any specific sources explaining in detail what is meant by "washing out". After all, neutrinos are notorious in their weak interaction with baryonic matter, so if there is a small-scale fluctuation of baryons, then how background neutrinos can prevent it from growing further if they practically do not interact with baryons? I guess the question boils down to calculating cross-sections of interactions at specific temperatures. I would appreciate comments and references to sources addressing this particular issue. How do I need to configure SMTP Auth? I have dedicated FreeBSD box, The email sending without  is working perfectly but very slow. The receiver receives email after almost 15 mins. I checked the maillog it says delays and timeouts that means the server keeps on trying to send email again and again until it successfully sends one. This is consuming lots of CPU.  I am seeking help for configuring smpt module to use my dedicated box's  smtp server, I need help in following places where I have ???? sign:  #SMTP server settings SMTP server -&gt; smpt.mydomain.com  # Tested by pinging, its working SMTP backup server -&gt; mail.mydomain.com  # Also verified by Ping SMTP port -&gt; 25 USE SSL  #SMTP Authentication Username -&gt; ??????? Password -&gt; ???????   I tried using localhost, also username and password of the dedicated box or leaving both lines blank which gives me:     Unable to send e-mail. Contact the site administrator if the problem   persists.   also checking the debug log doesn't show any log, it says check admin/reports/dblog but when I got to the link it just shows me the contents from admin/reports no any dblog Get full path of the files in PowerShell How do I merge 2 VMware disks in to a single one? I have installed an Ubuntu server on a VMWare workstation with a space of 20GB storage as seen below:    After the installation I've attached another 40GB worth storage to the existing Ubuntu server installation (seen below):    Now I want to add this 40GB to my / (root) directory it mean's  I want that my / directory became to 60G , like it will be resize from 20G to 60G (20G + 40G), i don't know what should i do, can any body help me ?  , my df -h result shows;  root@Userver:~# df -h Filesystem      Size  Used Avail Use% Mounted on /dev/sda1        18G  900M   16G   6% / udev            990M  4.0K  990M   1% /dev tmpfs           400M  308K  399M   1% /run none            5.0M     0  5.0M   0% /run/lock none            999M     0  999M   0% /run/shm none            100M     0  100M   0% /run/user root@Userver:~#   it must be 60G !  i have no graphic mode, then i can't use Gparted tools, i'm just have ssh access ! "You're too clever a man" I have an empty file (only zeroes are in it) of size 9,0KB and I need to write another file (with size 1,1KB) to it, but the first file must not lose its size or the rest of its contents. So if the whole file is 00000000000000... now, I need to write second file in it and leave the zeroes as they are. I have tried to use dd, but I haven't succeed - file resizes.  dd if=out/one.img of=out/go.img   Does anybody know how can I do it? How can I get the active screen dimensions? pdfx: incomplete CIDset in some fonts I try to compile a document as pdf/x and pdf/a with pdfx under LuaLaTeX, and I am already quite successful. One thing still poses problems though: With some fonts I get the following error if I check the resulting pdf/a file with Acrobat: "CIDset in subset font is incomplete (font contains glyphs that are not listed)" (VeraPDF gives the same error, so the issue seems to be real).  Here's a MWE:  \RequirePackage{filecontents} \begin{filecontents*}{\jobname.xmpdata} \Title{Test}       \Author{Simon Spiegel}       \Language{de-DE} \end{filecontents*} \documentclass {article} \usepackage{fontspec} \setmainfont{Palatino Linotype} [Ligatures={TeX,Common}, Extension = .ttf, ] \usepackage[a-3b]{pdfx} \begin{document} Test \end{document}   I realise that not everyone will be able to compile this MWE due to the proprietary font, but since the problem only occurs with specific fonts, I had to use this example.  The pdfx manual mentions this error, but only in relation to XeLaTeX. According to the manual, it should not occur with LuaLaTeX.  From what I understand, this seems to be at least to some degree a problem of this specific font, but since I am relying on it, I am looking for a way to fix it.  EDIT  Here's a new MWE with a bunch of fonts which are hopefully more common (the paths have to be adapted of course).  \RequirePackage{filecontents} \begin{filecontents*}{\jobname.xmpdata} \Title{Test}       \Author{Simon Spiegel}       \Language{de-DE} \end{filecontents*} \documentclass {article} \usepackage{fontspec} \setmainfont{Georgia} [Ligatures={TeX,Common}, Extension = .ttf, ]  \newfontfamily\fontone{Verdana} [Ligatures={TeX,Common}, Extension = .ttf, ] \newfontfamily\fonttwo{Cambria} [Ligatures={TeX,Common}, Extension = .ttf, Path = {/Users/simi/FontExplorerX/C/Cambria/} ] \usepackage[a-3b]{pdfx} \begin{document} Test  \fontone Test  \fonttwo Test \end{document}   All these fonts give me the same error. I wonder if this only happens with .ttf OpenType fonts. Commas that are sentence flow-stoppers ... Can I leave them out? Is it "to play a game on someone" or "play games with someone"? I find this expression strange because it's clearly widely used, but seems sort of "unofficial", the "official" version, meaning the one described in dictionaries and grammar books, being playing games with, not on.  Both expressions seem to be current and valid, according to Google Books. I'm just not entirely clear on the context and the usage.  My understanding is that playing games with implies some sort of tricky, mischievous behavior, which may or may not be intentionally malicious, like office politics or standing someone up on a date ("Jane didn't show up...again. Is she playing games with me?"), while playing games on implies a form of studied deception. ("The ad said that the comic book was in mint condition but there are barely noticeable tears... are they trying to play a game on me?") Electric Potential produced by Hollow Sphere Let there be a hollow sphere (Throughout the question we will ignore the thickness of the sphere) which is positively uniformly charged,q of radius,  R. Suppose there to be a test positive charge, q' at point P which is r distance away from the hollow sphere(r>R, P is outside of hollow sphere).  Now I have an doubt on evaluating Electric Potential,V at point P.  Both source charge,q and test charge,q' are +ve, so source charge will repel the test charge which will make the charge, q' to go to infinity.I have to apply external force, F' to displace the charge, q' from infinity to point P against the equal but repulsive force, F.In short, F' is  displacing the q' from infinity to P.  So External Force, F' will do +ve work and Repulsive Force, F will do -ve work. This way the Electric Field,E produced by hollow sphere is Opposite to Displacement of test charge(i.e.,θ=180).  Now we know that E=k(q/(r^2))  [Please Notice that infinity is the lower limit of integration]  Also V=-∫r∞(E dr cosθ)=-∫r∞(E dr cos 180)=∫r∞(E dr)  At last I ended up to V=- k(q/r). I know that V=k(q/r).  I just want to know why I am having this shitty negative sign in my equation. I'm writing my final report in LaTeX for my bachelor's degree. I'm aiming at having a document similar to the .doc template used normally.   I want to have my customs headers and footers applied on pages when I'm starting a new chapter.  I'm using documentclass report with fancyhdr and lastpage packages.  My headers are defined like this:  \lhead{\myTitle} \rhead{\today} \cfoot{\thepage\ of \pageref{LastPage}}   My chapters are created using standard \chapter{title} macro.  On pages with new chapters, the only headers/footers I see is the standard page number at the bottom.  What should I do?  EDIT: I've finally gone with Peter Breitfeld's solution. I'Ve gone a step further and created my own chapter command:  \newcommand{\myChapter}[1]{     \chapter{#1}     \thispagestyle{fancy} }   Thanks for the help! I have 2 columns in Excel: the first contains a list of employee names who perform function A, and the second contains a list of employee names who perform function B.  What I want is to identify, in one cell, if there is one employee whose name appears in both the first and second columns. It does not have to show which name(s) appears in both columns, it just needs to identify IF there are any names that appear in both columns. probability that there is at least one defective part I study economics and I am trying to solve this problem - without success, unfortunately.     A machine has a defect rate of 6%.       a) Chosen at random 4 pieces (with replacement) from the production flow, compute the probability that none is defective.   b) In the event that extractions are performed 60, compute the probability that there is at least one defective part.   I have no idea how to answer the first question. What logical processes can I use?  Regarding the second question, I thought of using the binomial random variable with $n = 60$ and $p = 0.06$. Then:  $$\begin{multline} P (X \geq 1) = 1 - P (X &lt; 1) = 1 - P (X = 0) = \\ = 1 - \binom{60}{0}  \cdot (0.06)^ 0 \cdot (0.94)^{60} = 1 - 0.02446 = 0.97558.\end{multline}$$  Can somebody please explain me how to solve this problem? Thank you very much.