Is it correct to place import not on top of file?
Should import statements always be at the top of a module?
Table cells larger than they are meant to be I've created a map system for a game that runs on the principle of drawing the picture of the map from tiles. There are many reasons for this which I won't go into here but if you really want to know then I'm sure you can find out how to contact me ;)  I have  so you can see exactly where the problem lies and the source. The issue is the line between the top 2 tiles and the bottom 2 tiles, I can't figure out why it's gone like this and any help would be appreciated.  In the source is a marker called "stackoverflow", if you search for "stackoverflow" when viewing source then it should take you to the table in question.  I have also uploaded an . How can I disable the "no backup in x days" from TimeMachine? (Updated answer choice for High Sierra. See the old answer if you are still on Yosemite)  I'm running OS X Yosemite, and I want to disable the notifications from Time Machine. I rarely do a hard-drive backup because all of my essential files are in the cloud. I don't need to run timemachine as often as it suggests/warns/annoys me about.  How do I disable the notifications? Time Machine is not in the Notifications preferences, and I don't want to stop using it entirely. Which indefinite article should precede hour — a or an?        an hour     a hour      Does the usage of an vs a depend on the pronunciation — a history, a hobby, but an hour, an honor? Error System.CalloutException: Callout from scheduled Apex not supported i have created a schedulable class which has to trigger a batch job. The run method for the batch class will get list of data to process from a webservice callout. Now, i got the exception below. Any suggestions please.     System.CalloutException: Callout from scheduled Apex not supported.   global class scheduledDeltaBatchable implements Schedulable {    global void execute(SchedulableContext sc) {     ID batchprocessid = BatchUpsertSAPCustomerMasterBPSync.run(SAPServices.GetSAPCustomerMasterBPSync('Delta'));    } } Does DTIME(O(n)) = REGULAR? (I don't think that this is a good fit on cstheory, since I figure that this question already has a known answer.  However, if you think that this would be a better fit there, please feel free to migrate it)  It can easily be shown that REGULAR (the class of regular languages) is contained in DTIME(O(n)), because for any regular language L we can decide membership in that language in O(n) time by converting a DFA that decides L into a TM that decides L in a single pass over the input.  However, is it also true that DTIME(O(n)) is contained in REGULAR; that is, that any language that can be decided in O(n) time by a single-tape TM is necessarily regular?  I have no idea how to approach this problem, and every language I can think of in DTIME(O(n)) seems to be regular.  Intuitively, this would make sense, since if you're only allowed to make finitely many passes over the input, you could only remember finitely many things about it, which it seems like you could simulate with a sufficiently large DFA.  However, the fact that you can write to the input tape seems like it might complicate things.  And no, this isn't a homework problem.  I'm actually teaching a course that covers computability and complexity theory and thought it would be interesting to present the answer to this question in lecture. :-)  Thanks! Performance difference between dot notation versus method call in Objective-C How do I export and import content types (including fields) between environments? Fluent and Query Expression — Is there any benefit(s) of one over other? LINQ is one of the greatest improvements to .NET since generics and it saves me tons of time, and lines of code.  However, the fluent syntax seems to come much more natural to me than the query expression syntax.  var title = entries.Where(e =&gt; e.Approved)     .OrderBy(e =&gt; e.Rating).Select(e =&gt; e.Title)     .FirstOrDefault();  var query = (from e in entries              where e.Approved              orderby e.Rating              select e.Title).FirstOrDefault();   Is there any difference between the two or is there any particular benefit of one over other? Please tutor the usage of patchcmd and xpatch I understand that the  package provides a command \patchcommand that can be used to add material at the beginning and/or end of the replacement text of an existing macro. It works for macros with any number of normal arguments but has limitations for macros with optional arguments.   was introduced to take care of the above limitations as well as provide some additional functionality.   Now, when I try to comprehend the usage of the above packages by reading the user documentations (, ), I get the feeling that they move to implementation details a little too quickly compared to other package documentations. There are not enough explanations or examples.  I also tried to grasp the concepts by reading the  and more or less understood whatever is presented there. However, that is not enough.  So, do you think we can ask for a complete tutorial on the usage of patchcmd and xpatch? Explaining the usage of the relevant commands like \patchcmd, \pretocmd and \apptocmd as well as, \xpatchcmd, \xpretocmd and \xapptocmd with sufficient examples should suffice. How do I edit my profile? This is probably a noob question, but I forgot how to edit my profile.   Can anyone help me? There is no visible button for me. MathJax does not work on question title on Android app Although, the question is displayed correctly with MathJax when opened.   App Version: 1.0.85 Device Manufacturer: Spreadtrum Device Model: Celkon A35K   OS Version: 4.4.2 (eng.root.20140613.225402) I can buy Dell Latitude E7270 through my employer. It will come with Windows, but I would like to install Ubuntu (most likely 14.04). This model does not appear on the list of certified hardware, however. Does anyone know whether I should anticipate any problems with his laptop? Thanks! This issue came up when I got different records counts for what I thought were identical queries one using a not in where constraint and the other a left join. The table in the not in constraint had one null value (bad data) which caused that query to return a count of 0 records. I sort of understand why but I could use some help fully grasping the concept.  To state it simply, why does query A return a result but B doesn't?  A: select 'true' where 3 in (1, 2, 3, null) B: select 'true' where 3 not in (1, 2, null)   This was on SQL Server 2005. I also found that calling set ansi_nulls off causes B to return a result. Hyperref - Token not allowed Possible Duplicate:          The following code:  \subsection{The classes $\mathcal{L}(\gamma)$}   generates the errors:  Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding): (hyperref)                removing `math shift' on input line 1938.   Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding): (hyperref)                removing `\gamma' on input line 1938.   Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding): (hyperref)                removing `math shift' on input line 1938.   What do I have to do to keep \gamma in the subsection, so that it is also listed in the table of contents? Closure of $\{\frac{1}{n}\}:=M$ In $\mathbb{R}$ with standard topology the closure of the above set $M$ is $M \cup 0$. I fail showing this by purely topological means. I.e. not using the fact that this holds in the reals as a metric space and deduce it for the induced topology.  I assumed that there exist a closed subset $A$ containing $M$ but not 0. Hence, the complement of $A$ is an open subset containing 0. Does this already yield a contradiction or do I need a different approach?  Could you help me on this? Why is accuracy not the best measure for assessing classification models? Programmatically create a user and assign a role I'm programmatically creating a user with the following code.  $newUser = array(   'name' =&gt; $mail,    'pass' =&gt; 'password',  // note: do not md5 the password   'mail' =&gt; $mail,    'status' =&gt; 1,    'init' =&gt; $mail,   'roles' =&gt; array(5) ); $user = user_save(null, $newUser);   I have got a role with the role ID equal to 5; when I create the user, in the table "users_roles" there is only a row with the value 0 for the role ID, but if I print the user object with var_dump(), it looks like the roles are created.  What am I doing wrong? Pipe to multiple files in the shell I have an application which will produce a large amount of data which I do not wish to store onto the disk. The application mostly outputs data which I do not wish to use, but a set of useful information that must be split into separate files. For example, given the following output:  JUNK JUNK JUNK JUNK A 1 JUNK B 5 C 1 JUNK   I could run the application three times like so:  ./app | grep A &gt; A.out ./app | grep B &gt; B.out ./app | grep C &gt; C.out   This would get me what I want, but it would take too long. I also don't want to dump all the outputs to a single file and parse through that.  Is there any way to combine the three operations shown above in such a way that I only need to run the application once and still get three separate output files? Download all PDF links in a web page? Do you know a good software to download all PDF links in a web page??  Operating system is Windows 7. Compute $\frac{1}{e}\sum\limits_{n=0}^{\infty}\frac{n^{k}}{n!}$ for $k=0, 1, 2 ... $ Using some matlab (I know it's cheating) I found that: $$k=0 =&gt; Result=1$$ $$k=1 =&gt; Result=1$$ $$k=2 =&gt; Result=2$$ $$k=3 =&gt; Result=5$$ $$k=4 =&gt; Result=15$$ $$k=5 =&gt; Result=52$$ $$k=6 =&gt; Result=203$$  This sequence is puzzling...