annotation to make a private method public only for test classes
How do I test a private function or a class that has private methods, fields or inner classes?
(How) Can I use existing stapled electrical wire to fish new wire? I nicked an electrical cable while doing a plumbing repair and so need to fix it. I previously  about repairing the damage in place, but there are receptacles 6-10 feet away on either side of the damaged wire, so it may not be too difficult to just pull new wire. Most of the wire is run horizontally through the studs, which is great, but it will at least be stapled at both boxes (and possibly more). The horizontal run is ~18" up from the floor, while the receptacles are ~6". There is also an inside corner the wire is run through. Wire is 12/2.  Is it possible to use the existing wire to fish the new wire, even though the existing wire is stapled? Would I need to open up the wall to remove the staples?  I found a , but that pertains to telephone wires which sometimes use different staples than electrical wires. How do I convert the coordinates of a click to a tilemap position? How do you turn a tilemap (produced by TileD) for cocos2d where I can click on individual items and get a callback?  Is it just a case of converting captured touch and finding out where it is on the tilemap and then converting that to pixels  -- but that doesn't say what item was clicked on.  I have a tilemap of a city with buildings on it, and I'd like to be able to click or press on a specific building, get a callback.  What would be the best way to accomplish this? Why use "the" for oceans/seas/rivers etc. but not lakes? Possibly two questions in here: Are these sentence constructions logical, and if they are, why are they different?     I swam across the Ocmulgee River.   I swam across the Pacific Ocean.   I swam across the Red Sea.   I swam across Lake Winnipeg.   I can't think of a way of phrasing the lake example while using an article with a proper noun. I thought at first it was because Lake Winnipeg is different; it's generic portion (the "Lake") comes first and the name of that body comes second, but I swam across Falls Lake is the same.   Yet the sentence I swam across the lake sounds right to me. ...Why? indentation of a whole paragraph My problem is that I would like to write something like in LaTeX:   But I can't seem to do it wihtout reading like:   Which is pretty anoying to do all the time, in the middle of writting. Is there a code to do it for a whole paragraph without written \hspace*{1,5 cm} in middle of a sentence Let $G$ a group with normal subgroups $M,N$ such that $M\cap N=\{e\}$.   i) Show that for every $m\in M$ and for every $n\in N$, $mn=nm$.   ii) If $G$ is generated by $M\cup N$ then $G\cong M \times N$.   This is an homework question for abstract algebra. I think I can prove $i)$. But I have no idea how to prove $ii)$. Can anybody give me a hint for this one ?    Here my proof for i): Let $n \in N$ and let $m\in M$. Let $x=mnm^{-1}n^{-1}$. As $N$ is normal subgroup, $mnm^{-1} \in N$. Therefore $x \in N$.  As $M$ is normal subgroup , $nmn^{-1} \in M$. Since $m\in M$, then $x=m(nm^{-1}n^{-1})\in M$. This implies that $c\in M \cap N$, then $c\in \{e\}$, then $c=e$, and we get $mn=nm$. How to lazy load images in ListView in Android I am using a ListView to display some images and captions associated with those images. I am getting the images from the Internet. Is there a way to lazy load images so while the text displays, the UI is not blocked and images are displayed as they are downloaded?   The total number of images is not fixed. Prove that , any primitive root $r$ of $p^n$ is also a primitive root of $p$ Question 1: Let $x,y \in S$ such that $x\sim y$ if $x^2 =y^2\pmod6 $. Show that $\sim$ is an equivalence relation.    This is what I tried: Reflexive: $x^2\pmod6 = x^2$  implying $x\sim x$ Symmetry: suppose $x\sim y$, then  $x^2 =y^2\pmod6$ Operating by inverse of $x^2$ both sides we have $e=(x^2)^{-1} y^2\pmod6$ Then I have $y^2=x^2\pmod6$, hence $y\sim x$ I would like to get some corrections up to here because am not sure with this     Question 2. Find the orbits of the given permutation:    $$v:\mathbb{Z}\to\mathbb{Z}\quad\text{ defined by }\quad v(n)=n+3$$   Here is my solution which I would also want somebody to correct me! Let the relation $\sim$ be defined on $\mathbb{Z}$ by $a\sim b$ if $b=a+3$ I consider that the orbits of $v$ are the classes of $\mathbb{Z}$ with respect to $\sim$ given by  $\{b\mid b=a+3\}$. Thus I get only three orbits which are $\{1,4,7,10,…,3n-2\mid n\in \mathbb{Z}\}$, $\{2,5,8,…,3n-1\mid n\in \mathbb{Z}\}$, and $\{3,6,9,…,3n \mid n\in \mathbb{Z}\}$. Currently, the only way to link to a revision (clicking "link"), you just get  which shows what the post looked like at that revision:        Personally, I rarely use this and haven't ever found myself in a scenario (as far as I remember) where I would prefer the way it currently works to what I'm suggesting here.  Could we:   Add another link, or Change the current link   Such that it:   Displays the diff on a separate page (I'd prefer this, since the highlight and scroll thing doesn't always work properly - although perhaps it has something to do with loading images, so it might not apply here, or, if it doesn't, we could fix that instead), or          Highlights and scrolls to a diff, like what is done when you link to an answer () How to prove that if $a\equiv b \pmod{kn}$ then $a^k\equiv b^k \pmod{k^2n}$ If Voldemort's body dies, what process would he use to restore himself from a horcrux? His plans seem sloppy for the pains he had taken. For example, why create horcruxes from pieces of jewellery when they dont have the agency to seek out a new body by themselves?  He needed Quirrel, a person with unlikely ambitions to seek him out to gain an useful body. When that body was gone, he needed Barty Crouch, someone with questionable agency (he could be imprisoned) to transport Harry and draw his blood.  Nagini and the diary seems the only horcruxes with agency, the others are mostly inert.  What plans were ever taken to restore Voldemort from his horcruxes? Could give some examples of nonnegative measurable function $f:\mathbb{R}\to[0,\infty)$, such that its integral over any bounded interval is infinite? Earlier i was not specifying a custom log format, and the captured request headers were getting printed fine. I wanted to log the unique-id-header, but could not find any way of doing so. So i copy pasted the log-format mentioned on , and unique id started getting logged.  Unfortunately, now the captured request headers are not getting logged. The %hrl and %hsl are coming out as empty strings.  Very weird. Here is my config, plzz help :(  listen server   bind *:80   mode http    option  httplog   option  http-server-close   no option logasap   # disable early logging of HTTP requests so that total transfer time is logged   option  forwardfor   capture request  header    X-Forwarded-For      len 500    capture request  header    Host                 len 500    capture request  header    X-Request-UID        len 500    rspadd  X-Haproxy-Backend:\ server    # Generate the X-Haproxy-Unique-ID and log it to make it easy to track requests   log-format %Ci:%Cp\ [id=%ID]\ [%t]\ %f\ %b/%s\ %Tq/%Tw/%Tc/%Tr/%Tt\ %st\ %B\ %cc\ %cs\ %tsc\ %ac/%fc/%bc/%sc/%rc\ %sq/%bq\ {%hrl}\ {%hsl}\ %{+Q}r   unique-id-format %{+X}o\ %Ci:%Cp_%Fi:%Fp_%Ts_%rt:%pid   unique-id-header X-Haproxy-Unique-ID   Here is the log i see:  Sep 13 17:28:57 localhost haproxy[11979]: 10.161.27.218:41592  [id=0AA11BDA:A278_0AA15B71:0050_505217C5_0014:2ECB] [13/Sep/2012:17:28:37.567]  server www-example-com-healthz/- 19998/0/2/1/+20001 200 +326  - - ---- 10/10/1/1/0 0/0 {} {}  "GET /testing/healthz?merchant=www.example.com&amp;source=elb HTTP/1.1"   Note that %hrl and %hsl are empty strings :( How do i capture the request headers ?? What is the status of pdfsync? The pdfsync homepage states that:     At the end of this summer (2007), pdfsync is slowly migrating to pdftex itself. We are working at giving pdftex all the pdfsync ability and more...   The pdfsync README file discourages people from using pdfsync:     pdfsync uses extremely sensible code. You should not use pdfsync on final documents because it can change the layout rather significantly.   From your knowledge and experience, what is the actual status of pdfsync?   Is it safe to use pdfsync? Is there an alternative for pdfsync that is built into pdftex? Is there a different tool for pdflatex that offers DVI-like functionality (forward and backward search)? $f(x)=x/1$ is not injective? In chapter 3 of Atiyah and Macdonalds Intro to Comm Algebra there is the statement  "We also have a ring homomorphism $f:A\rightarrow S^{-1}A$ defined by $f(x)=x/1$. This is not in general injective." (Note: $A$ denotes an integral domain and $S$ a multiplicatively closed subset of $A$.)  How could this possibly not be injective? If $f(x)=f(y)$ then $x/1=y/1$ so $1x=1y$ hence $x=y$. What am I missing here? Is there a systematic way of finding the conjugacy class and centralizer of an element? Could the task be simplified if we are working with "special groups" such as $S_n$ or $A_n$? Are there any intuitive approaches? Thanks. Question about Subrings and integraly closed Which mathematical operation does the right hand rule for current come from? I am currently wondering about the famous .  Where does it come from mathematically that when you point with your thumb in the direction of the current, your curved fingers will point in the direction of the $B$-field? In other words, which mathematical operation does it come from? Probably it has to do with some vector product or Stokes theorem application, but I am not quite sure about it. When working with radios, I've seen the term "dBm". What does this mean?  The  gives a table showing the equivalent power in Watts. Is the dBm output just the power level of a transmitter?  How does this differ from signal strength measured in dB? Colors from a computer vs. colors from visible spectrum of sunlight Observation:  So, I know that all computer screens are able to project many different colors by varying how they display the RGB (Red, Green, Blue) pixels.  Question  What's the difference between say, yellow light (575 nm) from sunlight vs. the same yellow light that's displayed on the computer screen? Aren't they different? Is our brains mixing together the RGB lights together and its being interpreted as yellow light or is yellow light the same (575 nm) light that comes from sunlight actually hits our eyes?  Relationship between Fourier Series and light?  1) So I know that in Fourier Series, you have basis functions, sines and cosines that make up any other function depending on the coefficients that are in front of the sines and cosines terms.  2) I know that RGB colors on a screen are the "basis" for all the other colors that a computer screen makes up and the intensity of each of the RGB are like the "coefficients". So, am I making the correct relationship here?