I need help to define the csc function to display as cosec. I've tried \textrm{cosec} \theta, but this does not give the same output as \sin \theta, because the space between the theta and the function is closer for cosec.  Any other better solution?  Thanks in advance.  Regards, James
I'd like to declare some new operators using \DeclareMathOperator and some of the names are already taken by other commands (that I do not want to use). Is there an equivalent to the \renewcommand command for \DeclareMathOperator or a different way to overwrite the commands using \DeclareMathOperator?
What is the preferred way to mention Stack Overflow from Twitter? I wanted to tweet something on the lines of "Stack&nbsp;Overflow is awesome". When I do this kind of stuff, I usually use a username (for example: ) or a hashtag ()  I found , but it seems it is from someone unrelated with Stack&nbsp;Overflow.  Is there a Twitter account I can reference, or should I use a hash-tag? Should I just point to the site?  Thanks!  (Notice: I've seen lots of questions regarding Twitter and Stack&nbsp;Overflow, but those are mostly about integration/login with Twitter for the users accounts; I'm just asking for a single account for Stack&nbsp;Overflow; probably for announcements and PR, which is different) Should a gas water heater be shut down if the water main has to be turned off? I have a brand new AO Smith 50gal gas water heater. Today there was a burst pipe from the cold spell we're having currently, so I had to turn off the water main to the house until the plumbers get here tomorrow.  With that, nobody had used any hot water all day so it should be full, but do I need to turn the water heater off until the water can be turned back on tomorrow to avoid any damage etc? How to prove that if A, B, C are submodules of M module then $$ A \cap (B+C) = (A\cap B)+C \iff C \subseteq A $$  Any help would be appreciated! Functions that are sets of all function - proofs I'm going through the book Proofs and fundamentals, by Bloch, and it doesn't include a solution manual for it's examples. It doesn't have many examples on notation and proof strategy for certain cases, so I needed a little help.    Although I understand the idea, and can draw it out, I'm not sure how to write it in decent proof notation. Any help would be appreciated!   Edit: apologies, my idea is this: theres some function in $F(C,A\times B)$ such that theres some $x$ within $C$ that means $g(x)$ is within $A\times B$. Similarly, the second two imply that for some function within $F(A,C)$ there exists a value $x$ such that $g(x)=C$. and similarly for the third part from $B\rightarrow C$. It's easy to see with drawing it out that these two are the same because one will have a part within A and the other will lead to a part within $B$, so their cross will be the same. I wanted to go about proving it by setting a function $f$ within $F(C,AxB)$ and then working from there, but I really have no idea where to start or the notation. Bypass GeneratedValue in Hibernate (merge data not in db?) I know that we shouldn't being using the registry to store Application Data anymore, but in updating a Legacy application (and wanting to do the fewest changes), what Registry Hives are non-administrators allowed to use?    Can I access all of HKEY_CURRENT_USER (the application currently access HKEY_LOCAL_MACHINE) without Administrator privileges? Entropy and the principle of least action Is there any link between the law of maximum entropy and the principle of least action. Is it possible to derive one from the other ? Technically, any odd number of backslashes, as described in .  &gt;&gt;&gt; r'\'   File "&lt;stdin&gt;", line 1     r'\'        ^ SyntaxError: EOL while scanning string literal &gt;&gt;&gt; r'\\' '\\\\' &gt;&gt;&gt; r'\\\'   File "&lt;stdin&gt;", line 1     r'\\\'          ^ SyntaxError: EOL while scanning string literal   It seems like the parser could just treat backslashes in raw strings as regular characters (isn't that what raw strings are all about?), but I'm probably missing something obvious. Family of irreducible polynomials Remove entire row in a file if first column is repeated I have a file containing two columns and 10 million rows. The first column contains many repeated values, but there is a distinct value in column 2. I want to remove the repeated rows and want to keep only one using awk. Note: the file is sorted with values in column 1. For example:    1.123 -4.0 2.234 -3.5 2.234 -3.1 2.234 -2.0 4.432 0.0 5.123 +0.2 8.654 +0.5 8.654 +0.8 8.654 +0.9 . . . .   Expected output  1.123 -4.0 2.234 -3.5 4.432 0.0 5.123 +0.2 8.654 +0.5 . . . . How to prepare data for ListVectorPlot[]? Trying to attach a file from SD Card to email I am trying to launch an Intent to send an email. All of that works, but when I try to actually send the email a couple 'weird' things happen.  here is code   Intent sendIntent = new Intent(Intent.ACTION_SEND); sendIntent.setType("image/jpeg"); sendIntent.putExtra(Intent.EXTRA_SUBJECT, "Photo"); sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse("file://sdcard/dcim/Camera/filename.jpg")); sendIntent.putExtra(Intent.EXTRA_TEXT, "Enjoy the photo"); startActivity(Intent.createChooser(sendIntent, "Email:"));   So if I launch using the Gmail menu context It shows the attachment, lets me type who the email is to, and edit the body &amp; subject. No big deal. I hit send, and it sends. The only thing is the attachment does NOT get sent.  So. I figured, why not try it w/ the Email menu context (for my backup email account on my phone). It shows the attachment, but no text at all in the body or subject. When I send it, the attachment sends correctly. That would lead me to believe something is quite wrong. Do I need a new permission in the Manifest launch an intent to send email w/ attachment? What am I doing wrong? I have a dataset in csv file format that I'm loading into pgfplotstable. I can't change the format of the original csv, and being financial data it has a column of item names and two or three explanatory data points at the top of the table. e.g.  \documentclass{article} \usepackage{array,datatool,pgfplotstable}   \begin{filecontents}{sample.csv}     item,2008,2009,2010,2011      ,Actual,Actual,Forecast,Forecast      ,GBP,GBP,GBP,GBP      ,('000),('000),('000),('000) rounded     Area 1 OP, 1000000,1500000,1750000,250000     Area 2 OP, 400000,500000, 450000,-50000     Area 51 OP, 300000,375000,390000,15000     No P, 1250000, 1000000, 950000, 50000     Residuals, 800000, 80000, 90000, 10000   \end{filecontents}  \pgfplotstableread[col sep=comma]{sample.csv}\mystuff   I'm stumped at the next stage which is to typeset \mystuff so I have comma separators and can add a row that sums the 'Area' columns. At the moment to display the table I have to do something like  \begin{document}  \pgfplotstableread[col sep=comma,header=false]{sample.csv}\mystuff  \pgfplotstabletypeset[   columns/0/.style={string type},   columns/1/.style={string type},   columns/2/.style={string type},   columns/3/.style={string type},   columns/4/.style={string type}]\mystuff  \end{document}   How do I tag the top three rows as string and the rest of the last four columns as integer type so I can format and transform them? Unable to uninstall Wine apps There was a film from the 80s in which young people can teleport anywhere they can think of.   These guys are recruited to do studies with, maybe by the government or a secret company which wants the take advantage of their abilities.   I saw it on cable TV around 1990-1997.   Any clues? I'm answering a question with a suggestion to use rename, and I realize I don't know what package it comes from (as part of the answer, I imagine saying something like "if you don't have rename, it's installed as part of [package]").  man rename tells me to SEE ALSO: mv(1), perl(1) - so my first thought is that it was installed with perl.  A related answer, , helps me figure out that the perl package includes prename but not rename - and it turns out that my /usr/bin/rename points to /etc/alternatives/rename which points to /usr/bin/prename  So this is still kind of confusing.  Did /etc/alternatives/rename point somewhere else before I installed perl?  Is there a general way to tell which package something comes from? longtabu and color compatibility Is one time pad cipher reuse and random key secure? How are "Suggested Tags" chosen? After you've typed in a question, you get suggested tags that appear that look like this:        It appears that you need a minimum amount of characters ():     you must have entered a title (any length) and a minimum body length of 220 characters.   But other than that, how are the tags chosen? Is it:   A match of the title/body with other questions (taking the tags from those questions) A match of the title/body with tag excerpts (taking tags with overlap) A match of the title/body with tag wikis (taking tags with overlap) All of the Above None of the Above Other (please explain)   Some additional info from :  The suggested tags seem to only pop up on meta.so (they do not work on regular Stack Overflow, or on other SE sites).  While we're on the topic, why isn't this feature implemented network-wide? Why does Javascript getYear() return 108? Why does this javascript return 108 instead of 2008? it gets the day and month correct but not the year?  myDate = new Date(); year = myDate.getYear();   year = 108?