How to transfer control back to the program from where the shell command is called in vb6.0?
How to wait for a shell process to finish before executing further code in VB6
How can I sanitize user input with PHP? Is there a catchall function somewhere that works well for sanitizing user input for SQL injection and XSS attacks, while still allowing certain types of HTML tags? Can't install experimental modules I have  experience where empty spaces cause unwanted effects. It is not easy to trace the cause of these unwanted effects. In order to eliminate any doubt, I often overuse % as follows.   \usepackage% [% left=3cm, right=3cm% ]% {geometry}   or  \newcommand{\mycommand}% {% This is my command.% }   I got an extreme example that will break what Leo Liu said     In fact, only spaces which would be   output have to be removed by comment.   The following code does not produce output, but we cannot remove the % and leave a blank line between two elements of a list below.  \newpsstyle{gridstyle} { gridwidth=0.4pt, % griddots=0 }   Shortly speaking, where are the necessary places to be appended with % to remove unwanted spaces? Proof or disproof that every integer can be written as the sum of a prime and a square. I'm refreshing some algebra and in the beginning chapters of my book I'm presented with the following simple looking problem that I got stuck on:      Prove or disprove: If $n$ is a positive integer, then $n=p+a^2$, where $a$ is an integer and $p$ is prime or $p=1$.   At first I thought $n=13$ would give a nice counterexample, but then I noticed my book defines primes to include the negative primes. Now $13=-3+4^2$ is a solution.   I am allowed to use the fundamental theorem of arithmetic and the division and euclidean algorithms. I tried to express $n$ and $a$ by their prime factorizations, but I didn't get anywhere from there. I would like a hint which direction to take. Am I just missing something silly? why would curl and wget result in a 403 forbidden? What are the C++ rules for calling the base class constructor from a derived class? For example, I know in Java, you must do it as the first line of the subclass constructor (and if you don't, an implicit call to a no-arg super constructor is assumed - giving you a compile error if that's missing). Package in Java Simplifying and evaluating $\cot 70^\circ+4\cos 70^\circ$ Is $29$ the only prime of the form $p^p+2$? Chrome and IE 11 are fine, I'm only able to reproduce this in Firefox. Using version 27.0.1 on Windows 7. Meta as well as all the other sites are affected.        I can still see the hover effect, but the image is gone. I see this in Firebug:        The image doesn't show up in the Network tab. I am able to see the image by visiting  which goes to   I've done Ctrl-F5, I've cleared the cache and I've tried Private Browsing. Possibly related to  ? Is it possible to create an instance of a generic type in Java? I'm thinking based on what I've seen that the answer is no (due to type erasure), but I'd be interested if anyone can see something I'm missing:  class SomeContainer&lt;E&gt; {     E createContents()     {         return what???     } }   EDIT: It turns out that  could be used to resolve my issue, but it requires a lot of reflection-based code, as some of the answers below have indicated.  I'll leave this open for a little while to see if anyone comes up with anything dramatically different than Ian Robertson's . How to achieve nomenclature entries like: symbol, Description, Dimension and unit, etc? The title is pretty much I want to ask. More detail, the nomenclature entries should be sorted in groups like:   Nomenclature     Acronyms     Symbol  Description     % no Dimensions and Units      ...     Greek Symbols     Symbol  Description             Dimensions     Units     ...     Roman Symbols     Symbol  Description             Dimensions     Units     S       Surface area vector     L^2            m^2     ...    Superscripts     Symbol  Description     % no Dimensions and Units      ...    Dimensionless Numbers     Symbol  Description     Definition     ...   e.g. expected entries like this:       My current nomenclature settings for grouping [book class]:  %---------------------------------------------------------- %                        Nomenclature %---------------------------------------------------------- %\renewcommand{\nomname}{List of Symbols and Abbrev.} \renewcommand\nomgroup[1]{%   \ifthenelse{\equal{#1}{A}}{%    \item[\textbf{Acronyms}] }{%                  A - Acronyms     \ifthenelse{\equal{#1}{R}}{%      \item[\textbf{Roman Symbols}]}{%            R - Roman       \ifthenelse{\equal{#1}{G}}{%         \item[\textbf{•} Symbols }]}{%          G - Greek           \ifthenelse{\equal{#1}{S}}{%            \item[\textbf{Superscripts  }]}{{%          S - Superscripts         \ifthenelse{\equal{#1}{U}}{%          \item[\textbf{Subscripts }]}{{%                 U - Subscripts         \ifthenelse{\equal{#1}{X}}{%          \item[\textbf{Other Symbols }]}%            X - Other Symbols                     {{}}}}}}}}}} %\ifpdf \renewcommand{\nomlabel}[1]{\hspace{1 em}#1}%{\hspace{1.5 em}#1} \renewcommand*{\nompreamble}{\markboth{\nomname}{\nomname}}   But how to extend it with Dimensions and Units? Increase close vote weight for gold tag badge holders I have a significant three-way interaction (with no significant two-way interactions and no significant main effects).  To begin with I have followed this up with two two-way ANOVAs (one at each level of the third variable). The first part of my question is whether this is an appropriate follow-up.  This showed no significant main effects or interactions at either level of the third variable...is this the end of the analysis?  If so, how would I interpret the three-way interaction? Is it possible to import css stylesheets into a html page using Javascript? If so, how can it be done?  P.S the javascript will be hosted on my site, but I want users to be able to put in the &lt;head&gt; tag of their website, and it should be able to import a css file hosted on my server into the current web page. (both the css file and the javascript file will be hosted on my server). What is wrong with using inline functions? While it would be very convenient to use inline functions at some situations,  Are there any drawbacks with inline functions?  Conclusion:  Apparently, There is nothing wrong with using inline functions.  But it is worth noting the following points!   Overuse of inlining can actually make programs slower. Depending on a function's size, inlining it can cause the code size to increase or decrease. Inlining a very small accessor function will usually decrease code size while inlining a very large function can dramatically increase code size. On modern processors smaller code usually runs faster due to better use of the instruction cache.  The speed benefits of inline functions tend to diminish as the function grows in size. At some point the overhead of the function call becomes small compared to the execution of the function body, and the benefit is lost  There are few situations where an inline function may not work:   For a function returning values; if a return statement exists. For a function not returning any values; if a loop, switch or goto statement exists.  If a function is recursive.   The __inline keyword causes a function to be inlined only if you specify the optimize option. If optimize is specified, whether or not __inline is honored depends on the setting of the inline optimizer option. By default, the inline option is in effect whenever the optimizer is run. If you specify optimize , you must also specify the noinline option if you want the __inline keyword to be ignored. Reproject GeoJSON from EPSG:3857 to EPSG:4326 I am using this  to convert a GeoJSON point from EPSG:3857 to EPSG:4326.   My command fails. What am I doing wrong?   $ echo '{"type":"Point","coordinates":[-13720479.997764934,5688254.733325758]}' | reproject --from=EPSG:3857 --to=EPSG:4326   /usr/local/lib/node_modules/reproject/cli.js:98             throw new Error("Could not find definition for CRS \"" + crsName + "\".");                   ^ Error: Could not find definition for CRS "EPSG:3857".     at lookupCrs (/usr/local/lib/node_modules/reproject/cli.js:98:10)     at Object.&lt;anonymous&gt; (/usr/local/lib/node_modules/reproject/cli.js:25:1)     at Module._compile (module.js:456:26)     at Object.Module._extensions..js (module.js:474:10)     at Module.load (module.js:356:32)     at Function.Module._load (module.js:312:12)     at Function.Module.runMain (module.js:497:10)     at startup (node.js:119:16)     at node.js:901:3 I'd like to show/hide a column at runtime based on a particular condition. I'm using "Print when expression" to conditionally show/hide this column (and it's header) in my report. When the column is hidden, the space it would have occupied is left blank, which is not particularly attractive.  I would prefer if the extra space was used in a more effective manner, possibilities include:   the width of the report is reduced by the width of the hidden column the extra space is distributed among the remaining columns   In theory, I could achieve the first by setting the width of the column (and header) to 0, but also indicate that the column should resize to fit its contents. But JasperReports does not provide a "resize width to fit contents" option.  Another possibility is to generate reports using the Jasper API instead of defining the report template in XML. But that seems like a lot of effort for such a simple requirement. Nowhere monotonic continuous function Does there exist a nowhere monotonic continuous function from some open subset of $\mathbb{R}$ to $\mathbb{R}$? Some nowhere differentiable function sort of object? Is it possible to install Office 365 (2013) on Ubuntu 15.04 Vivid Vervet? I would like to install Office 2015/365 on Ubuntu 15.04. I tried to install Office using Wine, but that did not work. Please note that I do not want virtualisation unless it has a -like behaviour, where application windows are treated like regular Ubuntu application windows by the system.