I have some MATLAB code in my tex file, which I am highlighting with the listings package. However, there are some functions, such as "vision.CascadeObjectDetector", "imcomplement", "bwboundaries", "imcrop" that the listings package is not highlighting as functions. Is there any way I can add these functions manually?  Thank you
I'm using listings and I want to extend a language with additional keywords for highlightning. I know there is an option morekeywords available, but that only works for a particular lstset declaration and I don't want to have to copy-paste all keywords into all listings. I've tried declaring the keywords as part of a command but that doesn't work (probably because the command is not expanded and I don't know how to fix that).  So is there any way of declaring a new language by copying an existing one and just adding more keywords?
How can I make a script that opens terminal windows and executes commands in them? I have three scripts I need to run when I start up my Ubuntu machine, they start services I use in my development environment.  To do that, I manually open three terminals and type in the commands.  Is there any way to create a script that will open three terminals and execute one command in each of these? (Each command should be in a separate terminal window so I can see their output). Headphones don't work after update I updated to Ubuntu 15.04 from Ubuntu 14.10 a few days ago, and now my Logitech G230 headphones don't receive any sound. How can I fix this? PulseAudio Volume Control detects my headphones, and says they're working, but no sound comes through.  EDIT: Using alsamixer worked at first, but now it doesn't, and I get frequent bursts of static through my headphones now. Checkout subdirectories in Git? Is it possible to check out subdirectories of a repository in Git?  Imagine I am setting up a new WordPress installation. I will create two new directories for my plugin and theme customization:   wordpress/wp-content/plugins/myplugins/  wordpress/wp-content/themes/mytheme/   I want to maintain these directories via Git. In Subversion, I would accomplish this by having trunk/myplugins/ and trunk/mytheme/ directories and checking out subdirectories. Does Git have a way to accomplish the same task using a single repository?  I could just be missing the boat on some Git paradigm, as a long time SVN user with little exposure to Git.  Edit:  storing different content is an interesting way to handle this. Why does default auto.arima stop at (5,2,5)? What do the bars between keyframes mean? Let $(a,b)$ and $(c,d)$ be intervals in $\Bbb R$, and find an injective and surjective function from $(a,b)$ to $(c,d)$ So here is this question I got stuck on:  Let $(a,b)$, $(c,d)$ be intervals (not sure if that's the correct term) on $\Bbb R$, so that $a&lt;b$, $c&lt;d$. Find an injective and surjective function $f:(a,b)\rightarrow(c,d)$.   Thanks in advance!   P.S. I get these question a lot. Is that some way of thinking, or some general method I should follow to make these question easier for me to solve? Logic soundness and completeness I have to do a number of similar type questions, but I am having trouble grasping the general concepts around soundness and completeness. I have read up on the general definitions and think I understand them, but when asked to show something like the following I come up blank. Thanks for any ideas/help.   Show that the following propositional proof system, PCa, is sound but not complete.  PCa  Connectives (and constants) ∨, ∧, →, ↔, ¬, 0, 1  Axioms All tautologies of the form F→F  Rules of inference Hypothetical Syllogism Inequality involving the sup of a function and its first and second derivatives Retrieve active locale in Grails application Is the concept of even/odd numbers applicable to decimal numbers? For e.g. - 4.222 is a even number? OS X El Capitan installation error: AMD-Action:authenticate:SP When doing a clean re-installation of El Capitan (highest supported version) from a bootable USB on an older Mac (MBP, 15-inch, Late 2008), I get this error:  An unexpected error occured while signing in. AMD-Action:authenticate:SP  The error shows up, while logging in with the Apple ID into the App Store in the installer.  I tried with different Apple IDs,  Also tried running these commands in the Recovery Terminal and restarting: csrutil clear csrutil enable I'm using post thumbnails to link to a page.  Is it possible to add a class name to the post thumbnail image.  &lt;li&gt;&lt;a href="&lt;?php the_permalink(); ?&gt;" &gt;&lt;?php the_post_thumbnail(); ?&gt;&lt;/a&gt;&lt;/li&gt; Constructing an explicit isomorphism between finite extensions of finite fields Suppose $K$ is a finite field, $K = \mathbb F_{p^s}$. If we take an irreducible polynomial $f$ of degree $d$ over $K$, then the splitting field $L$ of $f$ is $K(\alpha)$ where $f$ is the minimal polynomial of $\alpha$. But then $L = \mathbb F_{p^{sd}} $. Since $\mathbb F_{p^{sd}}$ is unique, we see that this is the splitting field of every irreducible polynomial of degree $d$ over $K$.   Take $K = \mathbb F_2$ and let $P(X) = X^3 + X + 1$, $Q(X) = X^3 + X^2 + 1$. Let $L$ be the splitting field of $P$ and $L&#39;$ be the splitting field of $Q$. The above tells us that $L$ and $L&#39;$ are isomorphic. I would like to construct an explicit isomorphism between $L$ and $L&#39;$.   I know that $L \cong \mathbb F_2[X] /(X^3 +X + 1)$ and $L&#39; \cong \mathbb F_2[X] / (X^3 + X^2 + 1)$. Intuitively, I want to find an isomorphism $\phi : \mathbb F_2[X] \to \mathbb F_2[X]$ such that $\phi((X^3 + X + 1)) = (X^3 + X^2 + 1)$. A little playing around gives me $\phi(X) = X+1$. It now feels like I'm falling at the last hurdle: how do I finish the construction of an isomorphism between $L$ and $L&#39;$? I don't think $\phi$ makes sense as a map from $L$ to $L&#39;$, yet it seems the map I want. Spatial reference for dummies? Can anyone recommend a good reference or tutorial that explains the principles of spatial references, projections, and coordinate systems?   We are a small team of programmers working with GIS technology, and we often get snagged when working with data in different SRS/CS because we don't understand the concepts. Scala Lists of lists of integers Infinite Series $\sum\limits_{n=1}^\infty\frac{x^{3n}}{(3n-1)!}$ How can we prove that? $$\sum_{n=1}^\infty\frac{x^{3n}}{(3n-1)!}=\frac{1}{3}e^{\frac{-x}{2}}x\left(e^{\frac{3x}{2}}-2\sin\left(\frac{\pi+3\sqrt{3}x}{6}\right)\right).$$  I think if we write the taylor expansion of $\sin(u)$ and $e^u$, we can arrive from RHS to LHS, but I am looking for a way to prove it from LHS. Equal and opposite reaction - forces coming in pairs - or just common sense? What the pointer size in 64 bits computer in C++? Why is the charge naming convention wrong? I recently came to know about the Conventional Current vs. Electron Flow issue. Doing some search I found that the reason for this is that Benjamin Franklin made a mistake when naming positive and negative charges. There is even this little comic about that   My question is, how can a naming convention be wrong? Perhaps I don't understand what is the actual mistake here, I don't know. But I don't see how a naming convention could be wrong or right. There is no right and wrong about that. It could've been any other name, like charge A and charge B.  I'll appreciate anyone can help me understand what is wrong in all this. Tried to add a comment to a post today, which ended up looking rather weird. What I had typed was:  On windows I believe you need to use `\` instead of `/`   As you can see in the first comment to this question, I don't exactly end up with what I thought I would... What's going on here?  Tried various combinations of double \\ and double `` (which seems to be impossible to have in an inline code thing...?), but couldn't get a good result. Ended up putting a space after the slash, which at least made it readable. Problem then was that the space between the inline code and the word "instead" seems to disappear O.o