Java generics - map of formatters
Generics and inheritance: need a complex Map instance
Finding $\int^{\infty}_{0}\frac{\ln^2(x)}{(1-x^2)^2} dx$ Calculate  $$\int^{\infty}_{0}\frac{\ln^2(x)}{(1-x^2)^2}dx$$   I have tried to put $\displaystyle x=\frac{1}{t}$ and $\displaystyle dx=-\frac{1}{t^2}dt$  $$ \int^{\infty}_{0}\frac{t^2\ln^2(t)}{(t^2-1)^2}dt$$  $$\frac{1}{2}\int^{\infty}_{0}t\ln^2(t)\frac{2t}{(t^2-1)^2}dt$$  $$ \frac{1}{2}\bigg[-t\ln^2(t)\frac{1}{t^2-1}+\int^{\infty}_{0}\frac{\ln^2(t)}{t^2-1}+2\int^{\infty}_{0}\frac{\ln(t)}{t^2-1}dt\bigg]$$  How can I solve it? modular arithmetic, solving $ax + b \equiv c \pmod d$? For example $151x - 294\equiv 44\pmod 7 $. How would I go about solving that?  The answer says to simplify it into the $ax\equiv b\pmod c $ form first, but I have no clue on how to get rid of the $294$... help? Some applications simulate a virtual USB or CD Rom drive as if a USB drive is attached to the computer.  Is there any configuration or application that provides a virtual USB drive, not for the the operating system itself, but for other equipments which accept USB drive, through a USB port.  So I'll have a virtual hard disk (e.g. a *.vdi file) in the computer, which is connected, through a USB socket, as a USB drive to some other equipment (e.g. a cell phone or a laptop). Options for crowdsourcing GIS data? I am looking at collecting spatial information from a range of stakeholders to identify opportunities within a landscape.  However, the data that we are collecting are not presently mapped and so we wish to use an interactive method to get this information onto a map.  Which online websites/methods would people recommend for circulating to a non-technical audience to try and get them to map what they know?    Where the emphasis is on ease of use by the stakeholder. What do you call someone that believes he is the only living being? What do you call someone that believes he is actually the only living being and that everyone and everything that exist (besides him self) is a state of his own mind? I am not referring to a Remove suggested apps option in iOS 10 Is $\{\emptyset\}$ a subset of $\{\{\emptyset\}\}$? How do I beat the Reaper on Rannoch? I'm having trouble with the last of the Rannoch missions, where Shep wakes up and takes on a Reaper.   Shepard has a targeting laser which will call in an orbital strike with the combined might of the Quarian Migrant Fleet, but there's two major problems standing between the commander and victory.   The Targeting Laser takes a while to power up. The Reaper is trying to kill you.   I can consistently avoid the Reaper's attacks for the first volley, but each time you hit it, the Reaper moves forwards, giving you less time to dodge future assaults. Is there some key to avoiding the Reaper's attacks? Strafing doesn't seem to be enough. Okami is now reborn in High Definition for PS3. The graphics are obviously better, sharper and yet preserves the gist of the original game, however I can swear some of the texts have changed as well.  My PS2 console is no longer available to me so I can't test it myself, but does anyone know whether there are any changes to the game (aside from graphics) or not? I use multiple displays, and the available options for Spaces that I am aware of allow surprise Space-switching, even when working in a completely different space.  Ideally, interacting with the Dock will only affect the same Space on the same display on which I used the Dock. This means:   If app clicked in Dock, and no copy of app is running on any space, then start the app and confine it to the current Space. If app clicked in Dock, and the program is already running in another Space, then either 1) open a new window if the program allows this, or 2) silently move the app to the current Space without disturbing or changing any other Space or display. If app clicked in Dock, and the program is already running in the current Space, then change focus to the app.   Specifically: - Clicking an icon in the Dock should rarely affect any other Space. - Clicking an icon in the Dock must never affect which Space is displayed on which display  OS X Yosemite 10.10.2, MacBook Pro 2012. (Dock set to auto-hide, and pops up at the bottom of any screen when I put the mouse there.) "I am going to have a walk" My teacher said "I am going to have a walk" today in class and to me it seems incorrect. Correct variants that I know are:    Going for a walk Going to take a walk Going to walk  ...   Is this correct? If so, why? What is the angle at which water is splashed when a vehicle tyre rides in water on the road? I would like to know the following:   What is the angle at which water gets splashed when I ride my vehicle through a water on the road? How does angle of water varies with speed? What is the relation between the distance the water goes with the speed of the vehicle?   Thanks! Why don't websites immediately display their text these days? I've noticed that recently many websites are slow to display their text. Usually, the background, images and so on are going to be loaded, but no text. After some time the text starts appearing here and there (not always all of it at the same time).  It basically works the opposite as it used to, when the text was displayed first, then the images and the rest was loading afterwards. What new technology is creating this issue? Any idea?  Note that I'm on a slow connection, which probably accentuates the problem.  See below for an example - everything's loaded but it takes a few more seconds before the text is finally displayed: Why does the volume of the unit sphere go to zero? The volume of a $d$ dimensional hypersphere of radius $r$ is given by:  $$V(r,d)=\frac{(\pi r^2)^{d/2}}{\Gamma\left(\frac{d}{2}+1\right)}$$  What intrigues me about this, is that $V\to 0$ as $d\to\infty$ for any fixed $r$.  How can this be?  For fixed $r$, I would have thought adding a dimension would make the volume bigger, but apparently it does not.  Anyone got a good explanation? Cause of black artifacts in render? I was following  on creating a watch and noticed that when I rendered the watch, some pieces were messed up.  I'm new to 3D modeling and I've just learned Blender, I can't explain it well, so here's a picture:    Other examples:     I don't know if it's a problem with my World texture, the object, or the object's texture/material, so I can't even guess how to fix it. What causes this? Is it possible to fix it? Why does a Tesla car use an AC motor instead of a DC one? I was just watching a mega factory video and wondered why they use an AC motor which requires a power inverter instead of DC which may be powered directly from their DC battery? Introducing an inverter means more cost (weight, controller, etc).  Are there any reasons for that? What are the differences between an AC and DC motor that may have lead to this decision? Also does anyone know what kind of motor is used in other electric cars? Where do I find out how a command/environment is defined? Say I want to redefine the itemize environment, or make a modified version of it. I want to know how it is currently defined. Where do I find this information? If it's some particular package command, I can just look at the .sty file for that package, but if it's something more basic, I don't know where to look...  Is there a reference manual of where all this stuff is explained? Or is there a file in the depths of my texmf tree I should poke around in? Discrete Probability: Four dice are thrown, what's the probability that... Four dice are thrown, what's the probability that:  a) None of them fall higher than three?  b) None of them fall higher than four?  c) That four is the highest number thrown?  So for a, I wanna think about the denominator first. There are 6 possible outcomes for each dice, and we have four dice. So we're technically picking r out of n objects, aka picking 4 possible values out of 6. So the denominator/sample space should be $6^4$ right?  Now this is where I'm getting tripped up. Order technically shouldn't count, because we only care about the quadruplets that don't have a value higher than 3. I might be wrong, maybe I am, but could someone explain a bit more? My professor stated that typically in the sample space/denominator, we want order to count.   So I'm trying to think of the numerator now, so we want to find the probability that no values appear higher than 3, so some events that can occur are: $(1, 1, 2, 3), (1, 2, 2, 3), (1, 1, 1, 1)$ etc. Again, I can't see why order should count here, because if we only are concerned about what appears rather than how they appear, then we can say $(1, 1, 2, 3)$ is equal to $(1, 2, 1, 3)$? So if order does not count, and we have replacement, then does this lead the case where we use $$\binom{n-1+r}{r}$$to find out the probability?   I'm pretty sure if I can do a), I could prob do b), but if someone could maybe lead me in the right direction for c) I would appreciate that too! How can I search for files in all sub-directories using the shell and then copy those files? How can I find just the *.mp3 files with a recursive command like ls -R *.mp3 in a directory that contains several sub-directories and at the end copy these files in a directory that I choose.  Thanks for your support. Reordering fields (permanently) in file geodatabase using ArcGIS Desktop? Using ArcGIS 10.0, is it possible to reorder the fields in a file geodatabase, and have the order persisted to the database?  We considered exporting to XML, and writing a parser to change the field order, then re-creating a new database from the XML. This seems like a laborious process.  Another idea is to import the existing field definitionss into Excel, re-order them, export to CSV, then write a Python script to create these fields in a new Geodatabase. Does a script like this exist, before we write it from scratch?  Unfortunately the ArcGIS Diagrammer doesn't seem to support field re-ordering.  Are there any scripts or hacks we could use to simplify this process?