I use following way to get file version of Control Panel.  var searcher = new System.Management.ManagementObjectSearcher(   "SELECT * FROM Win32_Product where Name ='My Application'"); foreach (System.Management.ManagementObject obj in searcher.Get()) {     MessageBox.Show("Latest Verstion: " + obj["Version"].toString()); }   This takes around 10 seconds to find the version. Can anybody suggest me faster way to get file version of Control Panel file?  Note: If I change query SELECT Version FROM Win32_Product where Name ='My Application', it takes same time.
This is a follow up from this .  I'm using this slightly modified script to enumerate all installed MSI packages:  strComputer = "."  Set objWMIService = GetObject("winmgmts:" &amp; _     "{impersonationLevel=impersonate}!\\" &amp; _     strComputer &amp; _     "\root\cimv2")  Set colSoftware = objWMIService.ExecQuery _     ("SELECT * FROM Win32_Product")     If colSoftware.Count &gt; 0 Then     For Each objSoftware in colSoftware         WScript.Echo objSoftware.Caption &amp; vbtab &amp; _         objSoftware.Version     Next Else     WScript.Echo "Cannot retrieve software from this computer." End If   What is surprising however, is its abysmal performance. Enumerating the 34 installed MSI packages on my XP box takes between 3 and 5 minutes !  By comparison, the Linux box that sits besides is taking 7s to enumerate 1400+ RPMs... sigh  Any clues on this ?
In Russian we have idiom/saying "To shoot out of cannon into sparrows" (literal translation) which is used to convey an idea of applying too drastic measures to small problems. I believe there should be some native-English equivalents to this saying. Can you share if there are any? As in  I'm trying to use apa6e and biblatex-apa together and having problems.  Before I arrived at these problems, over the course of many hours of much reading, I first managed to get BibTeX working as expected in a simple input file (by modifying sample2e.tex). Then I managed to get apa6e working as expected based on the author's example in apa6e.pdf (which uses apacite). But when I try to get apa6e working with biblatex-apa, I end up with problems.  Here's my input file:  \documentclass{apa6e}  \usepackage[american]{babel} \usepackage{csquotes}  % biblatex \usepackage[style=apa]{biblatex} \bibliography{biblatex-apa-test-references}  \title{An Example Document} \shorttitle{Psychology: the end} \author{Silly Name}  \authornote{\dots} \abstract{\dots}  \begin{document}  \maketitle  This is an example input\cite{7.01:2} file.  Comparing it with the output it generates can show you\cite{7.01:3a} how to produce a simple document of your own.  \printbibliography  \end{document}   Attempting to typeset this in TeXShop by running LaTeX, then BiBTeX (which based on console messages, does seem to correctly call biblatex rather than BiBTeX), then LaTeX again, I get the following error message which I am having great difficulty (no doubt due to my lack of experience with TeX and co.) decoding.  (./test6.aux) (/usr/local/texlive/2011/texmf-dist/tex/latex/psnfss/ot1ptm.fd) *geometry* driver: auto-detecting *geometry* detected driver: pdftex (./test6.bbl) Underfull \hbox (badness 10000) in paragraph at lines 18--18  []\OT1/ptm/m/n/12 An Ex-am-ple Doc-u-ment   Underfull \hbox (badness 10000) in paragraph at lines 18--18  []\OT1/ptm/m/n/12 Silly Name   Underfull \hbox (badness 10000) in paragraph at lines 18--18  []\OT1/ptm/m/n/12 Author Note  [1{/usr/local/texlive/2011/texmf-var/fonts/map/pdftex/updmap/pdftex.map}] Underfull \hbox (badness 10000) in paragraph at lines 18--18  []\OT1/ptm/m/n/12 Abstract  [2] Underfull \hbox (badness 10000) in paragraph at lines 18--18  []\OT1/ptm/m/n/12 An Ex-am-ple Doc-u-ment   Underfull \hbox (badness 10000) in paragraph at lines 25--25  []\OT1/ptm/b/n/12 References  ./test6.tex:25: Undefined control sequence. &lt;argument&gt; \mkbibdateapalongextra  (/usr/local/texlive/2011/texmf-dist/tex/latex/psnfss/ot1pcr.fd) (/usr/local/texlive/2011/texmf-dist/tex/latex/psnfss/ot1ztmcm.fd) (/usr/local/texlive/2011/texmf-dist/tex/latex/psnfss/omlztmcm.fd) (/usr/local/texlive/2011/texmf-dist/tex/latex/psnfss/omsztmcm.fd) (/usr/local/texlive/2011/texmf-dist/tex/latex/psnfss/omxztmcm.fd) Overfull \hbox (8.03372pt too wide) in paragraph at lines 25--25 [][]  \OT1/ptm/m/n/12 Gilbert, D. G., Mc-Cler-non, J. F., Ra-bi-novich, N. E.,  Sugai, C., Plath, L. C., As-gaard, G., ... Botros,  ./test6.tex:25: Undefined control sequence. &lt;argument&gt; \mkbibdateapalongextra                                    {year}{month}{day}\iffieldundef {endyear}{... l.25   I tried many different sources in several different *.bib files before eventually trying the .bib database shown above and included with biblatex-apa. All trials gave a similar error.  Can someone help? I'm impressed that the poster above was able to do anything with apa6e and biblatex-apa, and if I only had her problem of having the reference page title show up in bold, I'd be really happy.  If you need to know, my tools are from a fresh installation of MacTeX that I immediately updated using the TeX Live Utility. I've checked my versions for apa6e (v0.3) and biblatex-apa (v4.2), and I think these are current. Aristotle's Categories with academic commentary Site.createPortalUser() returning null in test context Simplest way to send one-line mail out via command line using gmail? Using Raspbian and Ubunntu 16.04 LTS so need a generic Linux solution.  Requirement is simple:  I need a way to send one-line email messages from the command line.  I have set up a gmail account just for this particular Rpi3, with the address of rpi3abc@gmail.com - with no 2FA  So now I need to be able to send one-line mail messages from anywhere (including cron) without user intervention.    I also would like it to be able to send text files; basically, anything from stdin. According to , the SE chat sites may have individual Easter eggs, depending on the site. If you find them, please post. Because it's so easy to make this stuff up, a screenshot as proof would be nice. (Although Photoshop isn't that hard either...) I am fairly new to blender and I am trying to do something which I am assuming is fairly straight forward with no success. All I'm looking to do is emboss some text onto the curved part of a yogurt pot. Image attached below. What is the quickest and easiest way of doing this?  Thanks in advance Answering a phone call with "Yes, XX, tell me" I have heard a lot of people pick their phone and go "Yes, XX, tell me" (highly used in India).  I think the right way should be "Hey, XX, what's up?" or "Hey, XX, what's going on"? But does this work in a professional environment? Reviewing a suggested edit from a review queue jumps to the suggested edit queue I was in the first posts review queue and chanced on a post with a suggested edit. (Note: I have enough reputation to review suggested edits.) I clicked on “edit (1)” and was taken into the suggested edits queue. When I approved the suggested edit, I was taken to the next suggested edit, and so on until there were no more suggestions (“There are no items for you to review.”, still in the suggested edits queue). In this situation, I think it would make more sense if I was brought back to that post I was working on in the first posts queue, as soon as I acted on its suggested edit. Alternatively, the suggested edit should be shown in the same kind of pop-up as on a question thread page. The same goes for other queues (late answers, low quality, etc.). Force figure placement in text I have a problem when a lot of figures are in question. Some figures tend to "fly around", that is, be a paragraph below, although I placed them before that paragraph. I use code:  \begin{figure}[ht] \begin{center} \advance\leftskip-3cm \advance\rightskip-3cm \includegraphics[keepaspectratio=true,scale=0.6]{slike/visina8} \caption{} \label{visina8} \end{center}\end{figure}   to place my figures. How can I tell latex I REALLY want the figure in that specific place, no matter how much whitespace will be left? Let $a&gt;b&gt;0$ and let $n \in N$ satisfy $n \geq 2$.  Prove that $$a^{1/n}-b^{1/n}&lt;(a-b)^{1/n}.$$  If we let $a=x$ and $b=x-1$, then we need to show that $f(x):=x^{1/n}-(x-1)^{1/n}$ is decreasing for $1\leq x$ (which means that $f'(x)\leq 0$ and $f$ is differentiable), and evaluate $f$ at $1$ and $a/b$. How do I support scrolling and lock/freeze the header row of a pageBlockTable? How to download Ubuntu over an unreliable connection An unclear sentence in the book "Griffiths, Harris-Principles of algebraic geometry" Let $X$ be a complex manifold and consider a holomorphic vector bundle $\pi:E\to X$ of rank $r$. By the usual correspondence between vector bundles and locally free sheaves, we consider $E$ as a sheaf by abuse of notation. We denote with $\mathscr A_X^{p,q}$ the sheaf of $C^\infty$ $(p,q)$-differential forms on $X$ and we define: $$A^{p,q}(E):=\Gamma(X,\mathscr A^{p,q}\otimes_{\mathscr O_X} E)$$ $$A^k(E):=\bigoplus_{p+q=k}A^{p,q}(E)$$  Now suppose that $\nabla:A^\bullet(E)\to A^\bullet(E)$ is a linear connection on $E$, then the curvature operator is defined as: $$\nabla^2:A^0(E)\to A^2(E)$$ where $\nabla^2$ is the composition of the maps $\nabla: A^0(E)\to A^2(E)$   and $\nabla: A^1(E)\to A^2(E)$. One can show that $\nabla^2$ is $C^\infty(X)$-linear.    I don't understand the following sentence from the Griffiths-Harris book at page 75 (I rephrase it by using my notation):     Since $\nabla^2$ is $C^\infty(X)$-linear, then it is induced by a bundle map $E\to\bigwedge^2T^*X\otimes E$, or in other words, $\nabla^2$ corresponds to a global section $\Theta$ of the bundle $\bigwedge^2T^*X\otimes\operatorname{Hom}(E,E)$.   I absolutely don't understand how I can see the operator $\nabla^2$ as the section $\Theta$. What are 'return' pins? On a VGA connector, there are numerous 'ground' pins. Three of these are Red return, Green return and Blue return; But why does each color component have its own ground pin? How can I get the current date and time in UTC or GMT in Java? When I create a new Date object, it is initialized to the current time but in the local timezone. How can I get the current date and time in GMT? Formal writing: "…for my colleagues and {I/me/myself}."? I'm currently using Cambridge English Advanced 1. It's a book that contains past examination papers, and includes numerous samples of authentic writing. This material helps, candidates and teachers, understand what the examiners are ‘testing’ and how these papers are marked. The assessment covers four categories: content, communicative achievement, organisation and language. Each category is awarded a mark between 1 and 5, so the maximum score is 20, and each mark has a brief note attached by the examiner. Any errors of punctuation, orthography, grammar, appropriacy, and vocabulary are left intact. In fact, there are no corrections because the  ‘examiner’ does not specify where the errors lie. This can be frustrating, even though spelling mistakes are rare at the advanced level, and errors in style, collocation or register are still relatively easy to identify, sometimes I'll read a phrase that forces me to ponder.  Dear Director, [ TEXT ] To conclude, this letter is a polite request to cover the costs of a 2 month language course for my colleagues and me. We would be very pleased if the company would do us this favour. Yours sincerely John Smith  The following marks were awarded Content                    5    blah, blah, … Communicative Achievement  2    blah, blah, …     Organisation               3    blah, blah, … Language                   3    blah, blah, …  I am able to pick out six minor errors in that brief extract, maybe some users will identify more, maybe some will identify fewer, and maybe some will say that the language used is perfectly acceptable. But if I can help a candidate attain that elusive B,  I would be delighted. I am interested in (what could be) the 7th error, emphasised in bold. Because the letter of proposal is formal, I feel the phrase, for my colleagues and me, is jarring. I want to change it to for my colleagues and I, but the antecedent requires an object. You would not say: “This is a request to cover the cost […] for I”. So, why use the subject pronoun I in the expression “my colleagues and…”?  Could I use instead, myself?  Which of the following is preferable in a formal written proposal?    …for my colleagues and me …for my colleagues and I …for my colleagues and myself  EDITED: I found a   of the writing sample (11/11) if anyone is interested.  I've looked at the following question,  Some answers appear to be contradictory, the accepted answer says using  I and me are both grammatical, which in my example is not true. Moreover, there's no mention of myself, as a possible solution, in the question. What does "can only heal so much" mean in this sentence? I found the following sentence in an American novel (this one:  you can read the whole paragraph). A woman broke her wrist and just had her cast removed. She thinks she can start playing piano again, but her wrist still hurts too much. I'm not sure I understand the meaning of the final sentence:  But a body can only heal so much, so fast.  Can someone help me, please? Alternate proofs (other than diagonalization and topological nested sets) for uncountability of the reals? I recently started studying set theory and am having quite a bit of difficulty accepting Cantor's diagonal proof for the uncountability of the reals. I also saw a topological proof via nested sets for uncountability which still does not satisfy me completely, given that just like the diagonal it relies on a never ending process. In fact, the nested sets proof sounds very much like the diagonalization proof to me.  Do all proofs of the uncountability of the reals involve diagonalization? Are there any other proofs I can look at to understand? I couldn't find any on searching stack exchange. Thanks. Gparted: move extended partition on the left I have some free disk space on the left of my ubuntu (sda5)  What is best solution to extend sda5 ?  I can    copy sda3 or sda5 with dd to bigger disk. delete sda3,5,swap create sda3,5,swap dd original partition.   Not sure how to do it properly.  May be there is a simpler solution.