How to make the newly created files inherit the directory's permissions...?
How do I set up a folder so that anything created in it inherits permissions?
Installing Steam on Debian I have ran into some issues when it went down to install Steam on Debian. The console as well as Apper comes up with missing dependencies  and the package isn't going to install. Pass parameters to program started with Runas I am trying to start Performance monitor as different user. I found runas.exe but syntax for program arguments makes me go crazy. The following syntax works: C:\Windows\System32\runas.exe /user:domain\username perfmon.exe  But since perfmon.exe has the argument */res* the following line doesn't work: C:\Windows\System32\runas.exe /user:domain\username perfmon.exe /res  I tried to escape */res* but without any success. I tried: &quot;/res&quot; \&quot;/res\&quot;&quot; \&quot;\/res\&quot;&quot;  Any ideas? Label equation with a symbol I would like to label an equation with an arbitrary symbol, rather than a number, or letter.  Is this possible? How do I use SSMS to compare Database 1 Table 1 against Database 2 Table 1? I have two databases - Database1 and Database2.  Both databases contain a table that has similar structure, exemplified as follows:   =========================================================================================== | ID | Name | PhoneNoFormat | DialingCountryCode | InternationalDialingCode | InternetTLD | =========================================================================================== |    |      |               |                    |                          |             | ===========================================================================================   However, due to some reason, (a) one of the tables in one of the databases has data that is not exactly the same as (b) that contained in the other table in the another database.  So, how can I compare Database1.Table1 against Database2.Table1?  I tried using the following query, but nothing happened so was wondering if I have to rewrite it:  SELECT MIN(TableName) as TableName,        ID,        Name,        PhoneNoFormat,        DialingCountryCode,        InternationalDialingCode,        InternetTLD  FROM  (    SELECT  'Table A' as TableName,           A.ID,           A.Name,           A.PhoneNoFormat,           A.DialingCountryCode,           A.InternationalDialingCode,           A.InternetTLD    FROM [D:\DATABASE1.MDF].[dbo].[Table1] AS A    UNION ALL    SELECT 'Table B' as TableName,          B.ID, B.Name,          B.PhoneNoFormat,          B.DialingCountryCode,          B.InternationalDialingCode,          B.InternetTLD    FROM [D:\DATABASE2.MDF].[dbo].[Table1] AS B  ) tmp  GROUP BY ID, Name, PhoneNoFormat, DialingCountryCode, InternationalDialingCode, InternetTLD  HAVING COUNT(*) = 1  ORDER BY ID Chapter on the right side - How to turn it off? I accidentally posted a question without being logged in. Is there a way to associate that question with my account?   For more information, visit &quot;&quot; in the .   a.k.a. How can you link a registered account to a cookie-based account? a.k.a. How do I merge an unregistered account with a registered account a.k.a. Merging users a.k.a. How do I associate anonymous questions I’ve asked with my registered account? a.k.a. Is there a way to claim an unregistered user? (in case anyone searches with those terms) Problem printing LaTeX from lua in lualatex I am having difficulty printing LaTeX from a lua function in a LaTeX document processed with lualatex (version 0.70.2). I have a sample that works (if I remove all newlines from the code) and a case that fails. I don't know why these get different results. Here is the sample that fails:  \documentclass{report} \usepackage{luacode} \begin{document}  \begin{luacode*} tex.sprint([[ \begin{tabular}{ | l | l | p{4.in} | }  \hline  {\bf File} &amp; {\bf Cards} &amp; {\bf Summary} \\ \hline  \end{tabular} ]]) \end{luacode*}   \end{document}   I get an error saying:  ! Misplaced \noalign. \hline -&gt;\noalign               {\ifnum 0=`}\fi \hrule \@height \arrayrulewidth \futurelet... l.22 \end{luacode*}   When I put all of the LaTeX code printed from lua on one line the code works fine:  \documentclass{report} \usepackage{luacode} \begin{document}  \begin{luacode*} tex.sprint([[ \begin{tabular}{ | l | l | p{4.in} | } \hline {\bf File} &amp;{\bf Cards} &amp; {\bf Summary} \\ \hline \end{tabular} ]]) \end{luacode*}   \end{document}   So I have a few question.  First, why does the first example shown above fail? It seems like something I am not aware of is being inserted into the generated LaTeX.  Also is there a way for me to see the actual LaTeX that is generated and processed so that I can debug issues like this better?  Is there a way to tell the lualatex to log the actual LaTeX it tries to process?  Any other suggestions for how to debug a problem like this? What is the pronunciation of the possessive words that already end in s? Possible Duplicate:           My name is Greg — this is Greg 's post.  If my name ended with an 's', I am aware of the proper apostrophe usage (James&nbsp;→ James'), but how should this be pronounced?  Phonetically, am I Jameses best friend or James best friend? what is the real use case of dependency injection? How do I get the title of a .pdf document to appear as the page title? Case expressions in Access What are some good books for learning the concepts of Kinematics, Newton laws, 2D Motion of Object etc.? List has no row exception: Queryerror I have below line placed in controller that fires list has no row exception. I just need to show a custom message instead when the query returns no value.   Apex code:  Id CI=[select Compliance_Incident_abv__c from Compliance_Incident_Transaction_abv__c where Name=:selectedCIT].Compliance_Incident_abv__c ;  //**This line throws error**     system.debug('CI@@'+CI);         if(cond != '')             cond += ' and';           else             cond += ' where ';                                        if(CI!=null)          cond += ' Id = \'' + CI+ '\''; How do I capture the moon and its surrounding context? I wanted to photograph the full moon against a beautiful deep blue sky. I ended up with blown-out highlights of the moon:    So I switched to spot metering and captured the moon, losing the blue sky in the process:    I want a single photo that shows both the moon and the surrounding context (in this case, the blue sky). Doing an exposure fusion in Photomatix Essentials did not help:    Nor did HDR fusion (again in Photomatix):    Notice that the detail in the moon was lost in both cases, and the sky was also messed up in both cases: exposure fusion lost the beautiful blue color, while HDR created more texture than was actually present in the sky. I toggled Photomatix's option to remove ghosts, but that didn't help, either.  How do I photograph the moon together with its surrounding context (in this case, the blue sky, but in other cases, a tree, buildings, etc) without blowing highlights or shadows? I'm using a Sony NEX-5R, with the longest focal length lens I have, and with manual focus when needed.  Thinking I should fuse the photos manually, I tried opening the images as layers in Acorn, with the darker photo on top and with opacity set to 50%, and tried all 15 - 20 blending modes (normal, dodge, lighter, darker, multiply and so on), but none of them seemed to work. I'm afraid I don't know enough to use layers effectively. What blending mode and opacity and order of layers should I use for this task?  I don't have Photoshop, but do have Lightroom 5, Acorn and Nik Collection.  (In case you are about to recommend software, please note my requirements: I use a Mac, I would be willing to pay $20-30, and I don't want to use command-line software.) Preservation of ideals in localized rings Refer to localization of rings in Lang's Algebra p. 108. In particular, let $A$ be a commutative ring, $S$ a subset of $A$ that is a submonoid of the multiplicative monoid structure of $A$, containing the identity. Then  $S^{-1}A$ is the set of elements $\frac{a}{s}$ with $a \in A$ and $s \in S$.  We have $\frac{a_1}{s_1}=\frac{a_2}{s_2}$ if there exists $\bar{s} \in S$ such that $\bar{s}(s_2a_1 - s_1 a_2)=0$. Now consider the injection of $A$ into $S^{-1}A$ given by $x \mapsto \frac{x}{1}$. This is a ring homomorphism. Let $J$ be an ideal of $A$. Ring homomorphisms preserve ideals and so the injection of $J$ into $S^{-1}A$, call it $J^{*}$, will be an ideal. My problem is that i don't see why for any $\frac{a}{s} \in S^{-1}A$ and any $\frac{j}{1} \in J^{*}$ we will have that $\frac{aj}{s}$ will be in $J^{*}$, i.e. why there must exist an element $\kappa \in J$ such that $\frac{aj}{s}=\frac{\kappa}{1}$. Circles importing as crossed boxes into Adobe Illustrator strange character replacement on SO I added a comment to  but something strange is happening. The end code reads "); but SO decided to change that to ";);.    I did not add a ; in front of the ).  To further explain what's happening here, the following:  "http://example.com/." http://example.com/. "http://example.com." http://example.com. "http://example.com" http://example.com   renders as: Recovering broken or deleted NTFS partitions About two weeks ago I had a problem with my PC that my brother wrote a question about at .  I still haven't solved the problem, so my PC is unusable now.  Now I think that it would be simpler to re-install both Win7 &amp; Ubuntu than repair them, but there're some data on their partitions. I want to recover this data.  These partitions are not mountable for some reason. I don't know why.  sudo fdisk -l about the problematic partitions:     Device    Boot      Start         End      Blocks   Id  System /dev/sda1            2048     147912703    73955328   83 Linux /dev/sdb2            206848   174079999    86936576    7  HPFS/NTFS/exFAT   And in GParted:      And the error of the mount command:  Failed to mount '/dev/sdb2': Invalid argument The device '/dev/sdb2' doesn't seem to have a valid NTFS. Maybe the wrong device is used? Or the whole disk instead of a partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?   And the exact same message for /dev/sda1  How can I recover my data from those HDDs?  EDIT     I have tried to specify the type of the drive:  $ sudo mount -t ext4 /dev/sda1 /olddisk mount: wrong fs type, bad option, bad superblock on /dev/sda1,        missing codepage or helper program, or other error        In some cases useful info is found in syslog - try        dmesg | tail  or so $ sudo mount -t ntfs /dev/sdb2 /olddisk NTFS signature is missing. Failed to mount '/dev/sdb2': Invalid argument The device '/dev/sdb2' doesn't seem to have a valid NTFS. Maybe the wrong device is used? Or the whole disk instead of a partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?   EDIT     sudo ntfsfix /dev/sdb2 returns:  Mounting volume... NTFS signature is missing. FAILED Attempting to correct errors... NTFS signature is missing. FAILED Failed to startup volume: Invalid argument NTFS signature is missing. Trying the alternate boot sector Unrecoverable error Volume is corrupt. You should run chkdsk. Coming from a java background, one of the things I am used to is telling the JVM what the maximum heap size should be.  If the running program tries to swallow more than is allowed, and the garbage collector cannot free any more resources, then OutOfMemoryError is thrown and it all goes bang.  So setting the maximum heap size is important in Java.  Does this apply in .net?  Can you set the heap size limits?  Does the CLR just keep growing its heap until it reaches the machine's physical limits?  Or is it not an issue in .net for some subtle reason that my Java blinkers stop me from seeing? What will happen if I upgrade the laboratory while upgrading a spell or unit? While playing Clash of Clans, I am upgrading my lightning spell then decided to upgrade my laboratory, then I did. What will happen to the lightning spell I am upgrading? I assume it is still upgrading cause they don't refund my elixir.