I have some code that uses the Crystal Reports runtime libraries to generate and discard a small dummy report, in order to ensure that the libraries are loaded into memory in good time before the user creates a genuine report. (It's a 'perceived performance' issue.) The performance has been notably improved when the user generates a report, so that clearly all works.  Now I need to write a unit test that proves that the Crystal libraries have indeed been loaded into memory when expected - however my attempts to test what is there using Assembly.GetExecutingAssembly().GetModules() does not help. (GetCallingAssembly().GetModules() is no better either.)  How can I check from within my unit test to see if these assemblies have been loaded?  TIA
I've got a "diagnostics" page in my ASP.NET application which does things like verify the database connection(s), display the current appSettings and ConnectionStrings, etc.  A section of this page displays the Assembly versions of important types used throughout, but I could not figure out how to effectively show the versions of ALL of the loaded assemblies.  What is the most effective way to figure out all currently referenced and/or loaded Assemblies in a .NET application?  Note: I'm not interested in file-based methods, like iterating through *.dll in a particular directory.  I am interested in what the application is actually using right now.
What do you call a person who is always online on the Internet? Is there any specific word for a person who is always online on the Internet?  I am just curious to know because staying online is like a profession nowadays. Nsolve gives solutions with a small complex part which can't be eliminated by chop command I have a problem with the endfloat package and unicode characters.  When I compile the following, everything works as expected:  \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{graphicx}  \begin{document}  \begin{figure} \caption{Ö} \end{figure}  \end{document}   However, when I also load the endfloat package (\usepackage{endfloat}), I get the following error message:  ! Package inputenc Error: Unicode char \u8:ÖÖ not set up for use with LaTeX.   This could be a bug, but my suspicion is that I'm making a mistake somewhere.  I'm hardly the first person to use special characters with the endfloat package.  However, the above example is so simple, I don't see where I could have made a mistake.  Any advice is appreciated.  Edit: The file is of course encoded using utf-8. Infinity, is clearly not . But there is some dissent on whether or not zero is finite. I have seen authors use "finite" to indicate the value of $0$ is excluded as well as infinity.  Is there any rule about this? I'm fairly new to LaTeX and I want to know how to change the way sections are numbered by default. I use LyX, and there it is relatively simple to change the way an enumeration is numbered, i.e.  1 foo  a bar    i baz   But I want to know if there is a way to do this by default for sections and subsections. How do you check if a JavaScript Object is a DOM Object? I'm trying to get:  document.createElement('div')  //=&gt; true {tagName: 'foobar something'}  //=&gt; false   In my own scripts, I used to just use this since I never needed tagName as a property:  if (!object.tagName) throw ...;   So for the second object, I came up with the following as a quick solution -- which mostly works. ;)  The problem is, it depends on browsers enforcing read-only properties, which not all do.  function isDOM(obj) {   var tag = obj.tagName;   try {     obj.tagName = '';  // Read-only for DOM, should throw exception     obj.tagName = tag; // Restore for normal objects     return false;   } catch (e) {     return true;   } }   Is there a good substitute? Too many unprocessed floats I'm trying to a large number of figures. The code is  \begin{figure} \includegraphics[scale=0.5]{m2T4.pdf} \caption{M2T, Problem Size 513} \end{figure}   I'm not able to compile, I get the error  ! LaTeX Error: Too many unprocessed floats. See the LaTeX manual or LaTeX Companion for explanation. Type H &lt;return&gt; for immediate help. ... l.113 \includegraphics [scale=0.5]{m2T4.pdf} You've lost some text. Try typing &lt;return&gt; to proceed. If that doesn't work, type X &lt;return&gt; to quit. ! Undefined control sequence. \@float@Hx ...ltovf \fi \global \setbox \@currbox \color@vbox \normalcolor \... l.113 \includegraphics [scale=0.5]{m2T4.pdf} The control sequence at the end of the top line of your error message was never \def'ed. If you have misspelled it (e.g., `\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined. ! Missing number, treated as zero. &lt;to be read again&gt; \vbox l.113 \includegraphics [scale=0.5]{m2T4.pdf} A number should have been here; I inserted `0'. (If you can't figure out why I needed to see a number, look up `weird error' in the index to The TeXbook.) pdfTeX warning: pdflatex (file ./m2T4.pdf): PDF inclusion: found PDF version &lt;1 .5&gt;, but at most version &lt;1.4&gt; allowed &lt;m2T4.pdf, id=1121, 538.28104pt x 212.1526pt&gt; File: m2T4.pdf Graphic file (type pdf) &lt;use m2T4.pdf&gt; More Generating Functions problems How to find the mime type of a file in python? Let's say you want to save a bunch of files somewhere, for instance in BLOBs. Let's say you want to dish these files out via a web page and have the client automatically open the correct application/viewer.  Assumption: The browser figures out which application/viewer to use by the mime-type (content-type?) header in the HTTP response.  Based on that assumption, in addition to the bytes of the file, you also want to save the MIME type.  How would you find the MIME type of a file? I'm currently on a Mac, but this should also work on Windows.   Does the browser add this information when posting the file to the web page?  Is there a neat python library for finding this information? A WebService or (even better) a downloadable database? Iterating each character in a string using Python How can I restart a Windows 7 computer without screen or mouse? Most efficient way to see if an ArrayList contains an object in Java I have an ArrayList of objects in Java.  The objects have four fields, two of which I'd use to consider the object equal to another.  I'm looking for the most efficient way, given those two fields, to see if the array contains that object.  The wrench is that these classes are generated based on XSD objects, so I can't modify the classes themselves to overwrite the .equals.    Is there any better way than just looping through and manually comparing the two fields for each object and then breaking when found?  That just seems so messy, looking for a better way.  Edit: the ArrayList comes from a SOAP response that is unmarshalled into objects. A positive harmonic function on the punctured plane is constant $f(x+1)-f(x)$ converges $\Rightarrow\frac{f(x)}x$ converges How does Wild Shape work with special ways to calculate your AC? Among the effects of Wild Shapes, these two:     Your game Statistics are replaced by the Statistics of the beast, but   you retain your alignment, personality, and Intelligence, Wisdom, and   Charisma scores. You also retain all of your skill and saving throw   proficiencies, in addition to gaining those of the creature. If the   creature has the same proficiency as you and the bonus in its stat   block is higher than yours, use the creature's bonus instead of yours.   If the creature has any legendary or lair actions, you can't use them.      You retain the benefit of any features from your class, race, or other   source and can use them if the new form is physically capable of doing   so. However, you can't use any of your Special senses, such as   Darkvision, unless your new form also has that sense (PHB p.67, "Wild Shape")   Seem to come into conflict with each other when things like Draconic Resilience:     When you aren't wearing armor, your AC equals 13 + your Dexterity   modifier. (PHB p.102, "Draconic Bloodline")   and Barbarians:     While you are not wearing any armor, your Armor Class equals 10 + your Dexterity modifier + your Constitution modifier. You can use a Shield and still gain this benefit.   and Monks:     Beginning at 1st level, while you are wearing no armor and not wielding a Shield, your AC equals 10 + your Dexterity modifier + your Wisdom modifier.   and Stone Sorcerers:     As an action, you can gain a base AC of 13 + your Constitution   modifier if you aren’t wearing armor, and your skin assumes a stony   appearance. This effect lasts until you end it as a bonus action, you   are incapacitated, or you don armor other than a shield.   How would these resolve? Non-finite clause complementation of complex transitive verbs This question has been bothering me for a while. It came up when I was reading Chapter 16 of "A Comprehensive Grammar of the English Language."   How to explain the grammatical structure of the following four sentences?    "We knew him to be a spy." "I saw her leave the room." "I heard someone shouting." "I got the watch repaired."    What category do the four non-finite clauses in boldface fall into? They do not seem to fall into any of relative, nominal, comparative and adverbial clauses. How to put Json inside asynctask - Android Should edits with only minor code improvements be accepted. As an example, I'm reviewing an edit that changes all double quotes to single quotes and renames a variable in some javascript. With the exception of the variable rename (which is not entirely necessary), the edit is frivolous. Should I accept on the merits of a debatable variable name change? Nvidia driver updated - mixed versions of 304.88 and 319.32 My problem is that after trying to update my driver through the additional drivers GUI I can't boot Ubuntu with GUI anymore, since Xorg says the kernel module is of version 304.88 (The old version before I updated) but the driver components are of version 319.32 (The new version)  This is the output of dpkg -l | grep nvidia  dkpg -l | grep nvidia ii nvidia-304 : 304.88-0ubuntu0.0.3  NVIDIA binary Xord driver, kernel module and VDPAU library ii nvidia-319 : 319.32-0ubuntu0.0.1  NVIDIA binary Xord driver, kernel module and VDPAU library ii nvidia-common : 1:0.2.44.2  Find obselete NVIDIA drivers ii nvidia-current : 304.88-0ubuntu0.0.3  Transitional package for nvidia-current ii nvidia-settings : 304.88-0ubuntu.0.0.3  Transitional package for nvidia-settings ii nvidia-settings-304 : 304.88-0ubuntu.0.0.3  Tool for configuring the NVIDIA graphics driver ii nvidia-settings-319 : 319.32-0ubuntu.0.0.1  Tool for configuring the NVIDIA graphics driver   That's the output of that file.  The message startx gives me is:  NVIDIA: API mismatch: the NVIDIA kernel module has version 304.88, but this NVIDIA driver component has version 319.32. Please make sure that the kernel module and all NVIDIA driver components have the same version.     Fatal server error:    no screens found   I understand that something went wrong during the update, so I wonder how to fix this so that the remaining parts of 304 are removed and replaced with 319. I don't know hwere to start because I thought that nvidia-current was the one that would update to 319 and so reinstalling that didn't work. And I googled and found that somebody said to try to install/reinstall/uninstall this package: nvidia-current-updates-dev  But I didn't have that package installed so it did not help. Other than that, I am clueless. I hope the information I provided will be enough so I can get an answer soon.  EDIT:  lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 12.04.3 LTS Release: 12.04 Codename: precise  uname -a Linux SQuad 3.2.0-52-generic #78-Ubuntu SMP Fri Jul 26 16:21:44 UTC 2013 x86_64 x86_64 x86_64 GNU/LINUX I'm a beginner at photography and own a Canon 20D with two lens; a 50mm prime and a 17mm-85mm zoom.  I've purchases all my filters at 67mm to fit my zoom lens and use a  to use them with my prime lens.  I'm looking at buying a . My question is, will the same principal work? Can I buy a 67mm wide angle lens and use it on my 52mm prime without any trouble.  One of the reasons for the purchase of a wide angle is my cropped sensor makes the 50mm prime rather close - I'm hoping the wide angle will make it easier to capture more.  Many thanks for any help in advance. Pete