Compiler error - exe does not contain a static 'Main' method suitable for an entry point
Troubleshooting "program does not contain a static 'Main' method" when it clearly does...?
Why MOSFET source is indicated with arrow ? How do I do simple user input in python? Write-only permission for a directory doesn't allow to rename (move) files inside? In fact, I would like to ask more general question -- &quot;what does write permission for a directory allow you to do exactly?&quot; -- but let's approach it with a concrete example. It is a long question, if you are in a hurry read the bold -- it should cover the main part. Different sources (, , ) say something similar to the following on the directory permissions:  r, read -- reading of the directory's content (filenames inside) w, write -- changing the directory's attributes (e.g. modification time) and creating/renaming/removing entries inside x, search -- accessing files inside, you have access to the inode of the file, hence you can reach it's actual content  My problem is with the description of w. What directory's attributes does it give you access to? I cannot create/rename/remove a file inside a directory with only write permission: I make a directory (tdir/) and a file inside (afile), chmod -x-r tdir/, mv tdir/afile tdir/af, rm tdir/afile, touch tdir/newfile -- all fail with permission denial, unless I set x permission to the directory as well. And x alone doesn't give you the permission to create/rename/remove files inside the directory. In order to do that you need both x and w. But touch tdir does change the modification time of the directory with w only. I would rephrase the sources above this way for the compliance with the issue: a directory's r allows you to see the filenames inside, but no access to the actual file (to the inode); x gives you access to the inodes of the files (which means you can see their permissions and, according to it, have access to the contents), but you still cannot change anything in the directory; directory is actually some sort of a file and to change something in it you need the w permission. Thus, when you are changing something in the directory you need w permission. If your change requires inodes of the files in the directory -- you need x as well. It explains why you cannot remove a file inside a directory with w only: when removing a file you need to reduce the link count of the inode by 1 -- you need to know the inode -- thus you need x for the directory. But why do you need x for creating (you could ask the system to create a file without exposing the inode?) and renaming/moving the file (when you move a file you don't change it in any way, you only change the records inside the directories and their inode counts?)? Maybe it is just an implementation thing? I.e. indeed you don't need the inode for renaming/creating files -- you need only filenames and w permission; but inode and filename constitute one record in the directory; thus changing the filenames = changing the records = kind of accessing the inodes. And also what attributes do directories have besides modification time, permissions and files records? What else in the directory can you change with w only? How can gravitions exist without violating GR? If I've decided to update my SE avatar (in any of the various ways well described in the answer to this ), am I able to return to either the original stock image or previous avatar images I have used? optimality of the Carnot cycle What's "Another Way In"? There's a new achievement and I'm stumped as to how to get it:     Start a game without breaking the laboratory wall   I assume it has something to do with the new Gadgets but none of them sound like they'd help. How do I get this achievement? Why "hide" Luke from his father somewhere Anakin knows? I have complicated math expression:    Vertical spacing between text and fraction line is too small. I tried to define new \frac command (with amsmath package) with adjustable vertical spaces. As you can see, the result is not satisfying:    \documentclass[a4paper,fleqn,leqno]{article} \usepackage{polyglossia} \usepackage{color,pifont,fontspec} \usepackage[top=2.54cm,bottom=2.54cm,left=2.54cm,right=2.54cm]{geometry} \usepackage{tikz,tikz-3dplot,graphicx} \usepackage{mathtools,breqn,amsmath} \usepackage[fontsize=12]{scrextend} \usepackage{array,multirow} \usepackage{pgfplots} \DeclareMathSizes{12}{14}{14}{10} \newcommand{\myfrac}[3][0pt]{\genfrac{}{}{}{}{\raisebox{#1}{$#2$}}{\raisebox{-#1}{$#3$}}} \begin{document} \begin{dmath*}[breakdepth={0},style={\mathindent=0pt},spread={10pt}] {n=\myfrac[3pt]{\myfrac[3pt]{0,0625N+0,0215}{2}-0,043}{\myfrac[3pt]{\myfrac[3pt]{\scriptstyle 0,0625N+0,0215}{\scriptstyle 2}-0,043}{\myfrac[3pt]{\scriptstyle N}{\scriptstyle 2}-1}+0,0215}} \end{dmath*} \end{document}   How can I enlarge verticall spacing in whole fraction? How do I make a Theorem n followed by a Theorem n' ? What special characters must be escaped in regular expressions? I am tired of always trying to guess, if I should escape special characters like '()[]{}|' etc. when using many implementations of regexps.  It is different with, for example, Python, sed, grep, awk, Perl, rename, Apache, find and so on. Is there any rule set which tells when I should, and when I should not, escape special characters? Does it depend on the regexp type, like PCRE, POSIX or extended regexps? How could it be that the entropy of gas is not infinite?  If we use the formula $S=k\ln(\Omega)$ we get infinity because there are an infinite number of possible situations (because there are infinite possibilities of position and momentum for each molecule). I have a question on my assignment asking me to prove that if $A$ is an $n\times n$ orthogonal matrix, then $\det(A) = \pm1$. What I did so far is:  We know that $A\cdot A^t = I$ (since it is orthogonal), and that would mean that if $A$ is a matrix with elements $a,b,c,d$ then :  \begin{cases}a^2 + b^2 = 1\\ ac + bd = 0\\ c^2 + d^2 = 1\end{cases}  which implies that \begin{align}\det(A)&amp;= ad - bc\\ &amp;= -\frac{bd^2}{c} - cb\\ &amp;= -\frac{bd^2}{c} - \frac{c^2b}{c}\\ &amp;= -\frac{bd^2 + bc^2}{c}\\ &amp;= -\frac{b(d^2 + c^2)}{c}\\ &amp;= -\frac{b(1)}{c}\\ &amp;= -b/c\end{align}  I might be doing something wrong here, could someone please help me out understand this? If I pass PHP variables with . in their names via $_GET PHP auto-replaces them with _ characters. For example:  &lt;?php echo "url is ".$_SERVER['REQUEST_URI']."&lt;p&gt;"; echo "x.y is ".$_GET['x.y'].".&lt;p&gt;"; echo "x_y is ".$_GET['x_y'].".&lt;p&gt;";   ... outputs the following:  url is /SpShipTool/php/testGetUrl.php?x.y=a.b x.y is . x_y is a.b.   ... my question is this: is there any way I can get this to stop? Cannot for the life of me figure out what I've done to deserve this  PHP version I'm running with is 5.2.4-2ubuntu5.3. Isekai manga where the mc is reincarnated through his own magic The MC reincarnated himself through his own magic after his party defeated the demon king. Before he used his magic to do so, he took the daughter from the demon king and traveled with her over the world. After he used his reincarnation magic he was born in a noble family where the daughter of the demon king is now working as a maid in this family. He also has an older/younger (not sure) brother. Through his knowledge he starts his training of body, swordsmanship and magic as a baby. Years later his brother wants to play with him but he denies him every time. But one day he accepts it to play tag. His brother can't catch him. After that, he requests from the mc to teach him his magic. He denied again, but made an offer. Only when he can catch him, would he teach him his magic. I hope I'm not mixing up different mangas. Does this sentence have too many subjunctives? How can I change iTunes country of region when having some credit in my account? I moved to Canada and I want to change my country of region from USA to Canada, but when I try to change it ( by click on my account in the iTunes Store and going to my Account Page) it showed me this error: "You have a store credit balance; you must spend your balance before you can change stores"    I must mention I have redeem 100$ to my account but I don't have any intention to spent it now, what is my option? Are orbiting planets an  example of perpetual motion? Fastest way to remove non-numeric characters from a VARCHAR in SQL Server I'm writing an import utility that is using phone numbers as a unique key within the import.  I need to check that the phone number does not already exist in my DB. The problem is that   phone numbers in the DB could have things like dashes and parenthesis and possibly other things. I wrote a function to remove these things, the problem is that it is slow and with thousands of records in my DB and thousands of records to import at once, this process can be unacceptably slow. I've already made the phone number column an index.  I tried using the script from this post:   But that didn't speed it up any.  Is there a faster way to remove non-numeric characters? Something that can perform well when 10,000 to 100,000 records have to be compared.  Whatever is done needs to perform fast.  Update Given what people responded with, I think I'm going to have to clean the fields before I run the import utility.   To answer the question of what I'm writing the import utility in, it is a C# app. I'm comparing BIGINT to BIGINT now, with no need to alter DB data and I'm still taking a performance hit with a very small set of data (about 2000 records).   Could comparing BIGINT to BIGINT be slowing things down?  I've optimized the code side of my app as much as I can (removed regexes, removed unneccessary DB calls). Although I can't isolate SQL as the source of the problem anymore, I still feel like it is. Just received ~70 unsolicited password reset mails from Super User, so abusive...