i'm searching the net to solve this problem but i still don't have any clue how it will be done, or IF it CAN be done. I'll be more specific.   I need to create a custom Windows Printer Driver (i think for windows 7 and above) which will execute a simple task. This driver doesn't interface with any device but have to execute a command (launch a .exe located in a specific file system path).  Is it possible to create such "fake" driver and let windows recognise like as installed printer (for example showing the device in the printer list while printing a document).  I'm familiar with c++ and my .exe is written in c# . I will explain and answer to any clarification the community need to help me solving this issue.
I'm looking to create a virtual printer that passes data to my .NET application. I want to then create an installer that installs both the printer and the .NET application.  It would we really nice to be able to write it all in C#, but I have a feeling that this will require a printer driver to be written is unmanaged code.  Does anyone know of a fairly clean tutorial or example of how to do this?
I am rebuilding an old server.  Only one of the five old sites need to go live and all five of the old sites point to the same IP address.  Unfortunately any time a request is made for one of the old sites via their own unique domain names they are passed the pages from the one site that I'm trying to make live.  I would just like the old sites to display a 404 instead of the one site that I'm actually trying to make live.  As an example:   Site 1 (192.168.0.1) [www.first.com] Site 2 (192.168.0.1) [www.second.com] Site 3 (192.168.0.1) [www.third.com]   I want to move site 1 live again.  So I turned on apache on the machine with the IP address of 192.168.0.1, with all of site 1's files in the /var/www directory.  When I browse to 192.168.0.1 or www.first.com I correctly see site 1. When I browse to www.second.com and www.third.com I also receive site 1 which is the problem.  Is there a way I can 404 any request which comes in without www.first.com?  Here is my sites-available:  NameVirtualHost *:80  LogFormat "%h %l %u %t \"%r\" %&gt;s %b" common  &lt;Files ~ "^\.ht"&gt;     Order allow,deny     Deny from all     Satisfy All &lt;/Files&gt;  &lt;Directory /&gt;   Order Deny,Allow   Deny from all   Options None   AllowOverride None   Options None &lt;/Directory&gt;  &lt;Directory /var/www&gt;   Order Allow,Deny   Allow from all &lt;/Directory&gt;  &lt;VirtualHost *:80&gt;         ServerName first.com         ServerAlias www.first.com         DocumentRoot /var/www         ErrorLog /var/log/first.com.err         CustomLog /var/log/first.com.log common &lt;/VirtualHost&gt;  &lt;VirtualHost _default_:*&gt;         ServerName unknown         DocumentRoot /var/www_404 &lt;/VirtualHost&gt; Can we add a section in our vf page and add components to it Can we add a section in our vf page and add components to it. I mean split my vf page into two parts and then add components to it. Why is there no consistency in the plural forms of words ending on an "f" (e.g. safe, roof, dwarf, etc.)? The plural form of leaf is leaves, although according to  leafs is also correct. Dwarf can be pluralized as either dwarfs or dwarves. Conversely, the words roof and safe are pluralized as roofs and safes.  Is there any logic underpinning these variations? Is there a historical trend where words that were previously pluralized as -ves are now being increasingly pluralized as -fs? Python Referenced For Loop Computing irreducible components of algebraic set Finding the dual basis for the space of polynomials of degree $\leq$ 2 Servlet returns "HTTP Status 404 The requested resource (/servlet) is not available" Minecraft Empty Chests Command Block I am using the following Command to spawn a new chest at the given coordinates with stuff in it at each new round:  /setblock 264 4 997 minecraft:chest 0 replace {Items:[{id:274,Count:1,Slot:0},{id:275,Count:1,Slot:1}]}   The problem with that is that when replacing the old chest all the stuff in the old chest is thrown out. And that's pretty much not what I want. I need to find a way to replace a chest which might have stuff in it without throwing those things out.  Someone else said I should replace the given position for one tick with lava, which I tried. Works in 90% of the tries (in the other 10% the items from the chest are thrown to far away - out of the spawned lava block), but the problem with that is that I can't use it in wooden areas because it might burn everything down.  So what can I do to fix that problem, because otherwise my custom made Pv.P map is not gonna work?  Thanks very much! $\nabla U=0 \implies U=\mathrm{constant}$ only if $U$ is defined on a connected set? Factorial of 0 - a convenience? If I am correct in stating that a factorial of a number ( of entities ) is the number of ways in which those entities can be arranged, then my question is as simple as asking - how do you conceive the idea of arranging nothing ?   Its easy to conceive of a null element in the context of arrays, for example - so you say that there is only one way to present a null element.   But, in layman terms - if there are three humans $h1, h2, h3$ that need to be arranged to sit on three chairs $c1, c2, c3$ - then how do you conceive of a) a null human, and b) to arrange those ( that ? ) null humans ( human ? ) on the three chairs ?   Please note that referral to humans is just for easy explanation - not trying to be pseudo-philosophical. Three balls to be arranged on three corners of a triangle works just fine. So basically, how do you conceive of an object that doesn't exist, and then conceive of arranging that object ?  So, in essence ... is $0! = 1$, a convenience for mathematicians ? Not that its the only convenience, but just asking. Of course, there are many.  If yes, then its a pity that I can't find it stated like so anywhere.  If not, then can anybody suggest resources to read actual, good proofs ? I am about to start a web project and have been working almost exclusively with a LAMP stack for the past 5 years.  I would like to build something larger and more scalable and hence have been looking into Java EE.  The division of logic between JSP and EJB seems ideal for what I want to do.  Can anyone recommend resources for getting familiar with Java EE?  And perhaps if anyone knows of technologies that are more scalable than PHP that I should consider as well, I'm all ears.  Thanks a lot! What does unwrapping a model do and why is it important? In C#/VB.NET/.NET, which loop runs faster, for or foreach?  Ever since I read that a for loop works faster than a foreach loop a  I assumed it stood true for all collections, generic collections, all arrays, etc.  I scoured Google and found a few articles, but most of them are inconclusive (read comments on the articles) and open ended.  What would be ideal is to have each scenario listed and the best solution for the same.  For example (just an example of how it should be):   for iterating an array of 1000+ strings - for is better than foreach for iterating over IList (non generic) strings - foreach is better than for   A few references found on the web for the same:               [Edit]  Apart from the readability aspect of it, I am really interested in facts and figures. There are applications where the last mile of performance optimization squeezed do matter. I couldn't add defer tag in plugin javascripts. Google developer pagespeed test suggests me to add defer tag in contact form 7 javascripts.   This is how contact form 7 includes javascript in header.  add_action( 'wp_enqueue_scripts', 'wpcf7_enqueue_scripts' );  function wpcf7_enqueue_scripts() {     // jquery.form.js originally bundled with WordPress is out of date and deprecated     // so we need to deregister it and re-register the latest one     wp_deregister_script( 'jquery-form' );     wp_register_script( 'jquery-form', wpcf7_plugin_url( 'jquery.form.js' ),         array( 'jquery' ), '2.52', true );      $in_footer = true;     if ( 'header' === WPCF7_LOAD_JS )         $in_footer = false;      wp_enqueue_script( 'contact-form-7', wpcf7_plugin_url( 'scripts.js' ),         array( 'jquery', 'jquery-form' ), WPCF7_VERSION, $in_footer );      do_action( 'wpcf7_enqueue_scripts' ); }   Now how to add defer="defer" tag in the above code? ... namely that if $n &gt; 1$ and $(n − 1)!\equiv−1\pmod{n}$, then $n$ is prime.  This is for a number theory class I'm in at Penn State. My idea is to follow accordingly, but I can't get it concretely..  Reason by contradiction, suppose that $n$ is not prime.   Then $n = ab$, where $1 &lt; a, b &lt; n$  In particular $(n-1)! = ai$ for some $i\in\Bbb{Z}$. $\\$ If $(n-1)! = nj - 1$ for some $j\in\Bbb{Z}$ then it follows that a probably doesn't divide $-1$? Minecraft Survival Mode Energy-Momentum Tensor in QFT vs. GR How do I get a Seraph Crystal? Start TOC from chapter 1 and also page numbering Post a Form to Popup window not to the parent