Refer to . At the bottom, it says "This question has been asked before and already has an answer." If you look at the duplicate question, it does not have an answer. That is all.
I  here on MSO today, but it was found to have been asked .  I'm not concerned by this (better to be found by more than one user) but, I noticed that the wording in the closure statement is factually incorrect:    No it doesn't have an answer - Not even a sniff of one!  This statement, logically, should be factually accurate and reflect the existence of answers and include singular/plural references to them - or at a minimum use language that covers both scenarios.  Edit: As a result of my question,  and the bug in question has been remedied, but this question still remains valid.
Custom Adapter for List View What is the best way to clean the sensor on a interchangeable lens camera (mirrorless or digital SLR)? hide div if clicked outside of it I am unit testing a .NET application (.exe) that uses an app.config file to load configuration properties.  The unit test application itself does not have an app.config file.    When I try to unit test a method that utilizes any of the configuration properties, they return null.  I'm assuming this is because the unit test application is not going to load in the target application's app.config.  Is there a way to override this or do I have to write a script to copy the contents of the target app.config to a local app.config?     post kind-of asks this question but the author is really looking at it from a different angle than I am.  EDIT: I should mention that I'm using VS08 Team System for my unit tests. Analytic solution for $x=\ln(x+1)$ How can I take a photo which shows the skyline and the person who is standing around six feet away from the camera with proper lighting at night?   For taking just the skyline I've used long shutter speed and it turned out great, but when including a person on it, the person becomes  blurry because it's impossible for a person to remain static for that long.   Ps.  I do have two flashes, 35mm prime lens as well as 18-300mm zoom lenses as well. The camera I use is Nikon D7200. I wrote a script to create a big number of heat maps for a given scenario. I would like to save the result of every heat map as an PNG image. I have figured it out doing it with simple Map Rendering but the quality of the result is too low. Furthermore I would like to export to OpenLayers using the same code, which does not seem to be possible with simple rendering.   Now I am trying to do it with QgsComposition instead. Manually in the Map Composer you can just set the paper color to transparent and disable the background of the map canvas.   This is the code that I have so far. I just cannot figure out why it is not working. The result png-file always has a white opaque background.   My OS is Windows 7 and I'm using QGIS 2.6 Brighton.  I hope someone can help me out here.  # PARAMETERS mainPath = 'path/to/folder/' filename = 'filename' imageType = "png" imageWidth_mm = 400 imageHeight_mm = 160 dpi = 300  mapRenderer = iface.mapCanvas().mapRenderer()  c = QgsComposition(mapRenderer) c.setPlotStyle(QgsComposition.Print)  c.setPaperSize(400, 160)  x, y = 0, 0 w, h = c.paperWidth(), c.paperHeight() composerMap = QgsComposerMap(c, x ,y, w, h) c.addItem(composerMap)  # get all items and disable the backgrounds itemList = c.items() c.removeItem(itemList[2]) c.removeItem(itemList[2]) itemList[2].setBackgroundEnabled(False) itemList[3].setBackgroundEnabled(False) # add them to the composition c.addItem(itemList[2]) c.addItem(itemList[3])  c.refreshItems() c.refreshDataDefinedProperty(QgsComposerObject.AllProperties)  c.setPrintResolution(dpi) dpmm = dpi / 25.4 width = int(dpmm * c.paperWidth()) height = int(dpmm * c.paperHeight())  # create output image and initialize it # image = QImage(QSize(width, height), QImage.Format_ARGB32) image = QImage(QSize(width, height), QImage.Format_ARGB32_Premultiplied) image.setDotsPerMeterX(dpmm * 1000) image.setDotsPerMeterY(dpmm * 1000) #image.fill(0)  imagePainter = QPainter(image)  # This part does not seem to have any effect #brush = QBrush(Qt.BrushStyle(0)) # transparent brush # #imagePainter.setBackgroundMode(0) #c.setBackgroundBrush(brush)  c.renderPage( imagePainter, 0 ) imagePainter.end()   imageFilename =  mainPath + filename + '.' + imageType image.save(imageFilename, imageType) print 'image saved' print 'done' Order of an element in a finite cyclic group How does the double strike mechanic interact with other mechanics like lifelink or trample? I understand that the double strike mechanic allows a creature to attack in both a first strike combat damage step and a normal combat damage step.  It's clear that when a creature with no other abilities aside from double strike is blocked that even if the defender has lethal damage marked in the first strike step that the additional damage does not carry forward to the player.  How does this view of double strike change with relation to trample and lifelink?  I believe the correct interpretations are (not accounting for other effects or abilities) that 2 times the attacker's power is marked as damage on the defender.  For trample this amount is reduced by the defender's toughness and additional damage carries forward as normal.  Similarly for lifelink the active player gains life equal to 2 times the attacker's power.  Thus a 10/10 trampling double striking life linker blocked by a 1/1 creature would deal 19 points of trample damage and the active player would gain 20 life.  Is this interpretation correct? I would like to achieve this effect using my Nikon P510:      Are there any suggestions or tips that would help me do that? How do I iterate over the properties of an anonymous object in C#? Random contacts on my iPhone 5 I recently bought a new iPhone 5. When I was going through my contacts today, I noticed a lot of email adresses stored along with the other numbers. I didn't even know most of them! What has happened? Casting of objects to dynamic types at runtime Matrices: system that is "computationally singular" versus "exactly singular" I would like to know the mathematical concepts behind singular matrices. Matrices that do not have inverses in R throw one of two errors. I have provided some examples of both errors below:    Error in solve.default(W) :  system is computationally singular: reciprocal condition number = 1.58603e-17   Error in solve.default(Z) :  Lapack routine dgesv: system is exactly singular: U[2,2] = 0    Can anyone explain the difference between the two? Why is the first "nearly singular" whereas the second is "exactly singular"? Benchmark (hash rate) for SHA-3 (SHAKE128) To estimate the time for brute-force attack we need to compute keyspace size divided by hash rate, where the hash rate (hash/second) varies depending on the computer's capabilities.  The website  shows the hash rate for different computers.  Can you explain the following two confusing phenomena?   The hash rate decreases as the message size increases. Core i3 has a higher hash rate than Core i7 for SHAKE128. Airplane ground speed and direction, given airspeed and wind An airplane heads northeast at an airspeed of 900 km/hr, but there is a wind blowing from the west at 60 km/hr. In what direction does the plane end up flying? (angle). What is its speed relative to the ground?   I drew a picture. I think I am having a hard time understanding how to solve the problem. I want to add the wind vector to the plane vector - is that as simple as 840 km/hr? After really adding the vectors together, do I do: (added vectors)cos(45)? Someone from Mars is called a Martian. Someone from America is called an American. Someone from Europe is a European. Someone from Hyrule is a Hyrulean.  We are not far from colonizing other planets, let alone Earth's only moon. Obviously you wouldn't call someone from the moon a lunatic right? What if you are on Mars? What would I call a foreigner from Earth? Earthean doesn't sound right. $\gcd(a,b)=1, x^a = y^b\Rightarrow x = n^b$, $ y = n^a$ for an integer $n$. If $ a$, $ b$, $ x$, $ y$ are integers greater than $1$ such that $ a$ and $ b$ have no common factor except $1$ and $ x^a = y^b$ show that $ x = n^b$, $ y = n^a$ for some integer $ n$ greater than $1$.  I started this way: $x^a=y^b$ $=&gt;$ $x=y^{b/a}=(y^{1/a})^b$. Thus $x$ is an integer, and so is $y^{1/a}$, so $y=n^a$ for some integer $n$ greater than $1$. Then from the given relation, we get $x=n^b$.   I am not very convinced with my solution, as I feel I did some mistake. Can anyone point out where the mistake is? Any other solution is also welcome :) What are the differences between "to talk" and "to speak"? Both verbs "to talk" and "to speak" refer to the same action.  Is their meaning exactly the same? When is more appropriate to use one, or the other verb? Route SSH to host through interface Is it possible to route all outgoing requests for SSH (port 22) to mydynamicdns.afraid.org via wlan0 instead of eth0 when both are connected?  Since my IP is dynamic, I would like to use a name instead of IP.