That or Which?

Have you ever found yourself lost because you could not decide whether to use “which” or “that” in a sentence? I did! But not anymore!  I would like to present some rules, as found in the book ”The Elements of Style” by Strunk and White.

That” is defining, restrictive, limiting. Use it to specify which one. You cannot split the sentence into two without losing information.

Which” is nonrestrictive, non-defining. Use it to add a fact about the noun to the text. You could split the sentence into two. Note that nonrestrictive relative clauses are parenthetic; comas are therefore needed.

In many sentences either one can be employed, but the sentence’s meaning is changed.

Example A

“The neighbor’s dog, which I killed yesterday, was purple.”

means “The neighbor’s dog was purple. And also I killed the neighbor’s dog yesterday.”

“The neighbor’s dog that I killed yesterday was purple”

means “Yesterday I killed the neighbor’s purple dog.” They have more than one dog and I killed the purple one. It cannot be split into two sentences: “The neighbor’s dog was purple. Yesterday I killed the neighbor’s dog.” In the second sentence, information about which of the neighbor’s dogs I killed is missing. Continue reading »

Movie Collection Database Software

I just spent WAY too much time finding the perfect database software to create a nice “my movies”-website. The software should contain the following features:
  • I want to be able to efficiently enter new movie titles and retrieve corresponding information from imdb.com.
  • It needs to fetch large dvd covers or posters from a site like amazon.com, dvdempire.com, or Cdcovers.cc.
  • I want to export a customizable website, which let’s me browse the movies and find relevant information.
So I installed and tested the following programs:

All My Movies 5.9

  • (-/+) Template website generation, but limited.
  • (-) Commercial.
  • (-) Ugly company website made for stupid users.
  • (-) Stupid six-star rating instead of just two digits as on imdb.
  • (-) Can’t do Ctr+A in the edit fields, wtf?

Continue reading »

Illustrator Clipping Masks

Extremely useful. Innumerable applications.

Start with any object; it can be a placed image, text, a line, a shape, anything… For simplicity, I chose a half-circle.


Continue reading »

Advanced Formulae in Latex

Remember when you couln’t think of the correct commands to write a certain formula in latex because it’s been a year since you did it the last time? This might help you find the light.

Vectors

Using

1
\newcommand{\ve}[1]{\mbox{\bf #1}}

in your preamble, you can easily write vectors as follows:

1
2
3
\begin{equation}
    \mathscr{L}(\ve v_i) = \ve v_i - \frac{1}{\left| N_i \right|} \sum_{j\in N_i} \ve v_j
\end{equation}

Continue reading »

Latex Fonts in Illustrator

I recently wanted do insert a formula into a Adobe Illustrator figure. Since I didn’t find a way to do so directly in Illustrator and copying a formula from MS Word didn’t work properly, I wanted to copy the formula from a latex generated pdf (or ps) file. This, however, didn’t work either, as some latex fonts (CMR8, ect.) were missing. There’s probably a way to include them while generating the pdf file. But the easiest way I found was to copy all type 1 font files from my latex distribution C:\Program Files (x86)\MiKTeX 2.8\fonts\type1\public\amsfonts\cm to the windows font directory C:\Windows\Fonts. That worked. Yay.