I come from a UNIX background so I'm used to being able to do things like this in GNU/Make: SRC=$(wildcard src/*.c) OBJ=$(SRC:.c=.o)  all: $(OBJ)     ...  I'm wondering if something roughly equivalent to be accomplished in Microsoft NMAKE. I've got the following simple NMAKE Makefile: all: obj\a.obj obj\b.obj obj\c.obj   {src\}.c{obj\}.obj:     cl /c $** /Fo$@  This works fine. It takes all the source files from src/, and compiles them to their equivalents in obj/. However, I'd like to condense the default target down to a wildcard like obj/*.obj so that I don't have to write out all the object files manually. Is this possible in NMAKE? I've checked through the NMAKE documentation pretty thoroughly and it doesn't seem to describe anything like what I want to do. UPDATE: I managed to get the effect I wanted using the accepted solution to  as reference, and using the following Makefile: .SUFFIXES: .c .obj  obj_files=$(**:.c=.obj) all: src\*.c     @$(MAKE) $(obj_files:src=obj)  {src\}.c{obj\}.obj:     cl /c $&lt; /Fo$@  This works using the obj\ subfolder as the output directory. The $** macro is expended within the all target.
I am attempting to set up an nmake makefile to export our balsamiq mockup files to png files automatically, but I'm afraid I can't make heads nor tails of how to make a generic rule for doing so, without explicitly listing all the files I want exported.  details the command line syntax for exporting the files, and  contains an example which looks like it contains a generic rule for .obj files to .exe files. The makefile I have tried so far looks like this: .bmml.png:     &quot;C:\Program Files\Balsamiq Mockups\Balsamiq Mockups.exe&quot; export $&lt; $@  But this doesn't work. If I simply run nmake (with some outdated png files), nmake just does this: [C:\Temp] :nmake  Microsoft (R) Program Maintenance Utility Version 9.00.30729.01 Copyright (C) Microsoft Corporation.  All rights reserved.   [C:\Temp] :  If I ask it to build one specific file, it does this: [C:\Temp] :nmake &quot;TestFile.png&quot;  Microsoft (R) Program Maintenance Utility Version 9.00.30729.01 Copyright (C) Microsoft Corporation.  All rights reserved.  NMAKE : fatal error U1073: don't know how to make '&quot;TestFile.png&quot;' Stop.  [C:\Temp] :  Any nmake gurus out there that can set me straight? An example makefile which simply makes .dat files from .txt files by copying them, to experiment with, looks like this: .txt.dat:     copy $&lt; $@  this does nothing as well, so clearly I'm not understanding how such generic rules work. Do I need to specify a goal above that somehow lists the files I want?
Detecting current iPhone input language Zero-pad digits in string "did shoot" vs "shot" How do I show that a two-qubit state is an entangled state? The Bell state $|\Phi^{+}\rangle = \frac{1}{\sqrt{2}}(|00\rangle + |11\rangle )$ is an entangled state. But why is that the case? How do I mathematically prove that? Error in batch file to copy folder: 'Invalid number of parameters' I am making a batch file in Windows XP to copy my folders I need to another folder on my PC. I am getting an error.  I get the error "Invalid number of parameters".  xcopy /s/z D:\Documents and Settings\%username%\Desktop C:\SomeRandomFolder\ xcopy /s/z D:\Documents and Settings\%username%\Favorites C:\SomeRandomFolder\ xcopy /s/z D:\Documents and Settings\%username%\Start Menu C:\SomeRandomFolder\ xcopy /s/z D:\Documents and Settings\%username%\My Documents C:\SomeRandomFolder\ xcopy /s/z D:\Documents and Settings\%username%\PrintHood C:\SomeRandomFolder\ xcopy /s/z D:\Documents and Settings\%username%\NetHood C:\SomeRandomFolder\ xcopy /s/z D:\Documents and Settings\%username%\Templates C:\SomeRandomFolder\ xcopy /s/z D:\Documents and Settings\%username%\Searches C:\SomeRandomFolder\ xcopy /s/z D:\Documents and Settings\%username%\Local Settings\Application Data\Microsoft\Outlook C:\SomeRandomFolder\ pause   Then I changed the batch and get this error: "File not found - Desktop"   xcopy /s/z D:\...\%username%\Desktop C:\SomeRandomFolder\ pause   How do I fix these errors? Tricks for getting lots of arrows? Any tips or tricks for getting arrows (besides cheating)? Or tricks for finding a skeleton spawn?  I've tried farming chickens and gravel for feathers and flint, but it takes a ridiculously long time. How do people get enough arrows to make using a bow actually feasible? Can we have a list of all the Stack Exchange domains somewhere, for firewall purposes? Mutineers force captain to record instructions to spaceship's computer but he leaves out "please" The crew mutinies on a spaceship whose captain controls it with verbal orders. They test whether they can control the ship with recordings of the captain's voice with an order to increase orbital speed (currently orbiting a planet). It works, so they force the captain to record all the possible orders they may need, and execute him. Only then do they realize that the ship obeys only orders couched in polite language, and only the test recording was like this, but the other recordings are not. They will die once the ship's faster orbit somehow causes it to run out of fuel, or something like that. I seem to remember the ship's &quot;computer&quot; following the captain around on robotic legs. I read the story circa 1980, but it might have been published much earlier. We encountered a Vampire Spawn in the 10-foot-high basement of an old church. The first strike was mine, after which the creature attacked my ally and retreated onto the ceiling as the thundering roar of my Booming Blade punished its retreat. Still inexperienced and unsure about my reach, after a short consultation with my mind, I decided to spend my turn switching to my trusty crossbow and make some distance.  However this turned out to be a mistake, since right after, the creature was in in my face trying to gouge out my eyes. Due to my nimbleness I managed to avoid its attacks. Regretting my earlier choice to change weapons I was left with the options to switch weapons and miss another turn, attack with disadvantage, or use my crossbow as an improvised melee weapon and trust in Booming Blade to hold the enemy in place after I disengaged.  Perhaps I should have switched weapons, but I decided that 1d4 (improvised weapon) + 1 (magic ring) + 1d8 (booming blade) was good enough. I missed.  On the plus side, it was my crossbow's sneak attack assisted bolt that finally slayed the Vampire by piercing its heart.    In this situation, would it have been possible to just attack upwards instead of changing to the crossbow?  In session, this was something to be looked up later and decided against, but I haven't found any rules on attacking in 3D.  With me being more than 5 feet in height and my melee attack range considered to be 5 feet, I should have been able to reach the ceiling itself, not to mention the Vampire Spawn hanging from it.    As for exact measurements (read this part only if you enjoy pointlessly over-analyzing things):  My character is 5 feet 6 inches/5.5 feet, which gives an  (for a human, my character is a Kenku), . This should give me a height of 8.3 to 8.9 feet from standing statically.    Testing it in real life, my estimated and standing reach match to less than 0.2 inches of the estimation on the site and I'm just shy of reaching my ceiling standing statically. As a test I tried moving as if I was attacking my ceiling and based on where I could feel my hand touch the ceiling, the length of my fingers and how much distance I lacked to reach my ceiling, I estimate about 0.4 feet in additional height. Considering that I'm taller than my character, let's say that gives 0.3 feet, increasing the height to 8.6 - 9.2 feet and that's still without changing how you hold the handle of the sword. In addition, just lying on the ground, my torso and legs measure about 0.6 feet.  Because my Kenku isn't a human, only a humanoid, it's impossible to estimate arm length which influences standing reach, however, considering that birds usually have a high wingspan and long legs, I think it's reasonable to assume that the arms should be as long, if not longer than, a human's.    So that would require the Vampire Spawn to be flat against the ceiling without any parts hanging down more than 0.2 to 0.8 feet for it to be outside of my reach. I consider that unlikely.  What are the actual rules for this type of scenario, or how do you handle it in your group? Should I be allowed to melee attack an enemy that's on a ceiling or low in the air? To be clear on this, I know what is the definition of an inner product space and some properties and theorems about them. What I am asking for is an intuition for this definition in the complex case. In the real case, the intuition (or at least one of them) is  geometric: The inner product of two vectors is the length of the projection of the first to the second scaled by the norms of both vectors so that it is symmetric (modulo some details). In particular I (and everybody else) think of "inner product zero" as geometric orthogonality and of orthonormal bases as, well, orthonormal bases and so on. The question is, what should I think about when working with complex (or should I say hermitian?) inner product spaces? what is the "meaning" of the complex number associated to two vectors called their inner product?  I will be happy to hear all kinds of answers. For example, what physical phenomena does it model or in what mathematical situations does in "naturally" appear. Answers that stress the "nice structure" resulting are also welcome, yet I feel that by itself  it is a bit unsatisfying. How to Redirect Pages with Query String? I want to Redirect as seen below:  https://example.com/p1/p2?sort=p.model&amp;order=ASC&amp;page=2   to  https://example.com/p3/p4?sort=p.model&amp;order=ASC&amp;page=2   Also, I have this code in my .htaccess file :  RedirectMatch 410 ^/p1/p2&amp;   I have used below code, but I just see 410 code for that URL :  RewriteRule ^/p1/p2?sort=p.model&amp;order=ASC&amp;page=2$ /p3/p4?sort=p.model&amp;order=ASC&amp;page=2 [QSD, R=301,L]   So, I have changed RedirectMatch 410 ^/p1/p2&amp; to Redirect 410 ^/p1/p2&amp; , but this time I have seen 404 Code for my Request URI. What should I do? The "Info" bar on top disappeared and the mouse pointer is misaligned I have a problem with Blenders UI. The "Info" bar on top disappeared and the mouse pointer is misaligned. I reinstalled Blender 2 times, deleted every leftover files  but it still does the same thing. This is in v2.78c. The weird thing is that on the bottom everything works fine. Here are some images: What is the best way to parse html in C#? I'm looking for a library/method to parse an html file with more html specific features than generic xml parsing libraries. In what order do multiple readied actions with the same trigger resolve? Export cycles material to unity I have been experiencing an issue that once I have a material created and looking the way I want it, I cannot seem to export it correctly with the textures mixed.  I don't know the correct words to use, but in blender I have the material created using the nodes editor, and I have placed two textures inside of there (one for the rock texture and one for moss, my object is a rock). When I export this model and import to Unity (the game engine I am using), I find a materials folder but the material inside of it does not have the textures assigned, it's just a plain white material?  How can I export my material from blender in a way that it will allow me to import it WITH TEXTURES into Unity? I dont know how to sort a list of SObject Case.  I have a List&lt;Case&gt; newCases which i iterate over in for cycle, where i save Cases to my new List&lt;Case&gt; casesList.  for (Case newCase : newCases) {             if(newCase.Case_Content__c == '111' &amp;&amp; newCase.Status == '24'){                 String cuid = newCase.CUID__c;                 cuidSet.add(cuid);                 casesList.add(newCase);                 casesList.sort(); //TODO sorting by CUID__c             }         }   What i need to do is, to sort this new list by field CUID__c. So the Cases with same CUID are together.  Thank you for any help :) The interaction of TeX and Lua can be quite delicate at times.  While the former has category codes and tokens, the latter has escape sequences and datatypes.  Mixing the disparate concepts of these two worlds can lead to unexpected behaviour which favours common errors, known as gotchas. In the community wiki answer below you can find an overview of the common mistakes that people make when getting to grips with LuaTeX. If $$Y=\sum_{i=1}^{N}X_i^2$$ where $X_i \sim \mathcal{N}(0,\sigma^2)$, i.e. all $X_i$ are i.i.d. normal random variables of zero mean with same variances, then $$Y \sim \Gamma\left(\frac{N}{2},2\sigma^2\right).$$  I know the chi-squared distribution is a special case of the gamma distribution, but could not derive the chi-squared distribution for random variable $Y$. Any help, please? I am running Wireshark on my linux machine and i have simple python web server running on localhost:8080  I am capturing only local port 8080. When i open browser on localhost:8080 wireshark captures huge amount of tcp communication (as page loads with all resources) but there`s no HTTP only TCP...   Why i cannot capture HTTP on custom port ? Parse RSS with jQuery I want to use jQuery to parse RSS feeds. Can this be done with the base jQuery library out of the box or will I need to use a plugin?