My mission is to check if .NET is installed (and terminate the application if not).  I have to check for the following (we have some application variants)   FW 3.5 FW 3.5 SP1 FW 4.0 FW 4.5   I guess I have to check if some folder exists - how do I know its name?
A similar question was asked , but it was specific to .NET 3.5. Specifically, I'm looking for the following:   What is the correct way to determine which .NET Framework versions and service packs are installed? Is there a list of registry keys that can be used? Are there any dependencies between Framework versions?
How to prove that this set is closed? Suppose $Y$ be an ordered set in the order topology. Let $f, g: X \to Y$ be continuous. How to show that the set $\{x| f(x) \leq g(x)\}$ is closed?  This is a excercise from munkres. Maybe trying to show that the set $f(\{x| f(x) &gt; g(x)\})$ is open is suffice. But I could not figure out the connection between this set and the continuity of the two functions.Could you give a hint?  Thanks. Windows Server 2008 R2: User account set to not show on login This afternoon I set up a Win Server 2008 R2 system for use with Team Foundation source code control. In order to give my team-mates the right to connect, I had to create a user account for each person, 10 in total. (I can't, and I don't want to create a domain).  Now, after doing this, all user accounts are displayed in the login screen.  What can I do so that all the accounts are not displayed there? What is reflection, and why is it useful?  I'm particularly interested in Java, but I assume the principles are the same in any language. I have a file with a number of lines in a file filename.  I want to count how many lines start with character 'a', with 'b' and so on in one go.  What command i should execute.? No human players, just AI and have the ability to scroll around and see what the AIs are doing with the turn management being also automated, so the AIs just end turn when they are done. Oh, and all of this hopefully without any sort of fog of war.  This way, I can see how the AI manages resources and units and maybe learn a thing or two as a civ newb. When I create a clan in the multiplayer menu, it says clan created but I cannot add or invite people to my clan. I go to create a new one assuming the request was canceled or not entered correctly, it says clan name already exists as if someone else created it.   Is this a bug? Did I do it wrong? Or am I missing something?   I'm on the PS3. Will this also happen on my Xbox 360 Version? Suppose that $X_1, \ldots, X_n \sim N(0,1)$ are independent random variables. I am interested in finding a constant C that satisfies:  $$ E\left[\max_{1\leq i\leq n}|X_i|\right] \leq C \sqrt{log\  n} $$  I know one method is to employ the moment generating function trick, then take logs of both sides. However, I was wondering if there exists a more direct method. thanks! What are the general rules regarding when can you refreeze food that was frozen and then thawed in the fridge? and what are the reasons behind them? (Hygiene? Food quality?). Let's assume for the sake of the argument that the items were in a non-frozen state only a few hours.  To be more specific, I'm interested in the application of these rules for  - Ginger garlic paste - Dough - Indian Curries - Green Chilly paste - Frozen green peas This post is in reference to the following blog post:   To start off, a quick introduction of myself; my name is Jascha Drel, Product Manager for Advertising at Stack Overflow. In this role, I am part of ’s organization.   Our team is continuously making improvements to the ads experience on our sites. One of the changes we’re excited about sharing is the new Report this Ad feature now available on some of our sites. We want to continue to give our communities more native control over their ad experience. We needed a quantifiable way to receive feedback and this feature will allow that.  We enforce strict  on the types of advertisers we work with but cannot fully control what is shown due to how advertising delivery works. However, being able to hear from our users about problematic ads will be a huge benefit as we can address those problems faster and with more accuracy. The Report this Ad feature will allow us to quickly see and investigate ads reported by you which matters to us because we want to hear your thoughts.  Furthermore, this new feature ensures that the members of our communities have a built-in way to report ads they consider problematic when we test any new ad formats/solutions.  We are launching this feature on 5 sites initially (, , , , and ) to get a good understanding of what we can expect in terms of numbers of reports whenever launching this to the entire network. Prior to launching it network-wide, we’ll share general results we’ve seen here.  What happens once an ad is reported?  All reports will be consolidated into a dashboard that the team will look at several times per week to spot irregularities in terms of the total number of reports, report categories, and on an advertising campaign basis. We will not be replying to individual reports, but we will reach out to our advertisers, to share feedback or notify them if the ad being reported does not fit our guidelines. We may also evaluate our policies in response to large numbers of reports not covered by them. Since we don’t have a baseline for the number of ads that are going to be reported using this new feature, we will consider reevaluating the process if the current process doesn’t scale.    We’d like to share an update on the progress of this feature:   We've launched this feature on 5 SE sites (Server Fault, Database Administrators, Arqade, Game Development, and Unix &amp; Linux) initially for logged in users only, and for anonymous users afterward. The report this ad button was shown several million times (of which roughly 65% paid ads and 35% house ads). We showed several dozens of different ad campaigns. So far we have received 0 reports. We've tested the feature several ways, found some minor bugs (which have been/are being fixed), however, in the vast majority of the scenarios the feature works well (we’re happy to be ).   We’re currently graduating this feature and are releasing it network-wide this week. Feel free to comment below if you have any questions/comments. What does "I have straight A's." mean? What does it mean if a Python object is "subscriptable" or not? Which types of objects fall into the domain of "subscriptable"? How do I remove/delete a folder that is not empty? I am getting an 'access is denied' error when I attempt to delete a folder that is not empty. I used the following command in my attempt: os.remove("/folder_name").   What is the most effective way of removing/deleting a folder/directory that is not empty? What would be the effects of warp collisions? Triggered by a  I was wondering what actually would happen to a ship (e.g. the Enterprise-D NCC-1701) that collides with a stationary object such as a) another ship of a similar configuration or b) a gigantic structure like a moon or even a planet.  We know the deflector is supposed to keep interstellar dust (not to be confused with ordinary dust, which is a different thing) from ripping large holes in the ship.  At first, one thinks "Obvious. ." But does it really? Would the deflector manage to actually deflect both masses? If not, where is the threshold of what a deflector can handle? Would the ship maybe tunnel right through the object, because of wibbly-wobbly space wobblification by the warp field? It does do some weird things to the space right in front and behind the vessel.  Important remark: We cannot approach this with what we know about physics at all. For all intents and purposes, both ships must measure the other ship travelling faster than light, resulting in it having infinite (or rather undefined) mass and by extension momentum. If we start with that reasoning any ship jumping to warp would suck in the entire universe (it takes a moment, but think about it). So, obviously we cannot apply our intuition (even our relativistic intuition) here. How to show similar display of codes of different programming languages in LaTeX I am very new to LaTeX and I am writing my thesis. In a chapter, I want to show my codes, which are in Mathematica.   I use the listings package as follows:  \documentclass{article}   \usepackage{listings}   \begin{document}   \lstset{language=Mathematica}    \begin{lstlisting}   Do[i^j,{i,1,10},{j,1,10}]   \end{lstlisting}    \end{document}   However, the output is much different to what the code looks like in the Mathematica IDE (even if I use other languages in \lstset{language=&lt;name&gt;}):    I read some questions on the site but, in some of them, the font or color of the codes were not the same. Could you please help me to display something like the picture below in LaTeX?  If it is important, I am using the BiDi package. Object Positions Reset On Blender Load Prove if $a\mid b$ and $b\mid a$, then $|a|=|b|$ , $a, b$ are integers. Form the assumption, we can say $b=ak$ ,$k$ integer, $a=bm$, $m$ integer.  Intuitively, this conjecture makes sense. But I can't make further step. How can I see the photo settings like f-stop, ISO etc. of a image? I am new to photography and enjoying shooting with my Nikon D3200 camera. Once I take a photo, is there any tool by Nikon or a third party which can give me info like F-stop, ISO, Shutter speed, etc? If there is no tool, does Nikon camera support this after the photo is shot? Why is foo.hasOwnProperty('__proto__') equal to false? Dependency problem with mysql-server-core-5.5 When I start the Ubuntu software centre, it says I cannot do anything until the package catalog is repaired. However, repairing fails.  I ran sudo apt-get -f install and found the problem to be:  mysql-server-5.5 depends on mysql-server-core-5.5 (= 5.5.24-0ubuntu0.12.04.1); however:   Version of mysql-server-core-5.5 on system is 5.5.28-0ubuntu0.12.04.2.   So, the question is, how do I install that version and resolve the dependency problem? How do I programmatically create a new content type?