How to prevent computer nasties

I recommend that if you’re going to pay for an anti-virus software, use Trend Micro. If not, use AVG and Windows Firewall (instead of Trend Micro’s firewall – which is outstanding!). Use Spybot Search & Destroy to prevent spyware using the preventative measures, and Lavasoft’s Ad-Aware Personal and Spybot Search & Destroy together to cleanup spyware on the occasion it gets through. Make sure all your automatic updates are working and working frequently, windows is updating automatically and frequently, and your anti-virus software and spyware scanners are scanning frequently (once a week or so) and you’ll never have any problems. Oh yeah, and use Firefox and Thunderbird for internet and email, which will prevent 90% of spyware infections in the first place.

Trend Micro PC-Cillin Internet Security 2006

Trend Micro is my preferred masterpiece solution to all things virus related (prevention and cleanup) and firewall related (to stop hackers, and network worm viruses). It does not do anything for preventing spyware however, and so if you use it make sure you use Ad-Aware and Spybot as I’ve explained (above and below). It costs money which succs, so a good compromise I’ve found is to buy it anyway for one year to own the firewall, and when your virus updates run out after a year just once a week, manually download the virus pattern packs. (I tried doing this for a while once but then just ended up paying the money again because life is too short!) Trend Micro has also released spyware software but this also costs more money, and is pointless to buy when Spybot uses the same engine (I think I read somewhere – Trend bought their spyware engine from another company) as Spybot.

Lavasoft Ad-Aware Personal

Ad-Aware is the first thing I’d recommend doing when you suspect you have some internet filth floating around. Firstly, do it on the quick ‘intelligent’ system scan setting. Reboot, and if you really had troubles with your computer, scan again and make sure it searched your entire drive(s). Scanning once a week or so (and making sure you update before you do) on the system scan setting is highly desirable. This program is very user friendly to use and gets my thumbs up.

Spybot Search & Destroy

Spybot Search & Destroy not quite as user-friendly as Ad-Aware, although it’s also free and is the perfect compliment for cleaning spyware to Ad-Aware. Spybot S&D far exceeds Ad-Aware’s ability to prevent the internet crap from getting on (the technical term they use in the software is immunize – so be sure to explore clicking on that button!). The Tea-Timer in Spybot (under the advanced options) that when you install, will not allow any changes to the Windows registry unless your permission is granted. It would be interesting to install this Tea-Timer and then install Norton, and see how many hundred times you’d have to click accept! There is other stuff in Spybot that you can do to block spyware from the registry (if you don’t wish to use Tea-Timer). Basically, I’d recommend installing all the preventative features that this software offers, and none of Ad-Aware, to ensure they don’t overlap. Scan with this program after using Ad-Aware to guarantee you’ve got rid of everything – it will pick some stuff up that Ad-Aware doesn’t.

everything latex

I originally wrote all this below when I was working on my phd last year and wanted to document my learnings of LaTeX2e for myself and also for my brother. I’ve decided to finally post it on my blog otherwise I’ll lose it for good.

LaTeX2e for Typesetting Long Documents

MikTeX as your LaTeX2e backend
WinEdt as your text editor
JabRef as your BibTeX frontend
InkScape for creating graphics for LaTeX2e
Tom’s tips for LaTeX2e


MikTeX

  • MikTeX is the sure way of knowing you have all the possible features for LaTeX installed.

WinEdt for Text Editing

  • WinEdt is a really useful document editor for stuff like LaTeX, and if you have MikTeX installed, there are lots of little icons that help you achieve tasks quickly in the LaTeX2E environment.
  • Erasing the Working Files
    Sometimes it is convenient to erase your working files, such as at the end of the day, when you want to make a backup, but there’s no point backuping up something such as the pdf, and all the temp files, as it wastes space, when all you need is the core tex files, bib file, pictures, etc.
    Do this in WinEdt by clicking on the Recycle Bin in WinEdt. However with nomencl package I have noticed it is neccessary sometimes to erase the .nls and .nlo file if you stuffed up something in the nomenclature list, to help the table get unstuck. You can make the recycle bin routine do these files as well, by adding the following code to the
    “C:\Program Files\WinEdt Team\WinEdt\Exec\Erase Working Files.edt” file and possibly might have to do the “C:\Program Files\WinEdt Team\WinEdt\Bin\Erase Working Files.edt” file:

        % Added by flammobammo
        AddFileItem(1,"NLO Files","*.nlo","");
        AddFileItem(1,"NLS Files","*.nls","");
  • Soft Wrapping
    I highly recommend in WinEdt, going to ‘Options’ -> ‘Configuration Wizard’ -> ‘Wrapping’, and in the ‘Conventional (soft) Wrapping’ field, add

    TeX;

    to the start of the line of text already there.


JabRef as a BibTeX Frontend

  • I find it best to maintain all your literature in BibTeX format, using the advanced JabRef frontend.
  • As a matter of personal preference, for the ability to be able to keep “notes” in each of my database entries, I added the “notes” section in the options somewhere, and then modified the html code for preview modes 1 & 2. Download text files by clicking on the corresponding numbers.

InkScape for creating graphics for LaTeX2e

  • I find it best to create all my diagrams using InkScape graphics software. Basically, you work in the eps file format, which isn’t the inkscape default, but it is just as good as – it’s a file format that stores all the graphics information in vector format, so that way you can always edit the graphic later if you need to, after you’ve included it into your document. You want to use this code in the preamble of your latex document:

    \usepackage[pdftex]{graphicx}       % Enabling graphics
    \usepackage{epstopdf}
        \graphicspath{{graphics/}} % Specifies all graphics are in a sub-folder relative to this file.

    Then store all your graphics inside the ‘graphics’ folder, and whenever you want to include a graphic in your document, use this code:
    \begin{figure}[hbtp]
    \centering
    \includegraphics[width=10cm]{lit-swift-crossflow.eps}
    \caption{Thermoacoustic refrigerator showing elimination of all heat-exchangers through the use of cross-flow \citet[pg.
    195]{SwiftBible}} \label{crossflow}
    \end{figure}
    Using my method with InkScape, pdf’s of your pictures (eps files) will be created on the fly, for the exact size specified for the document, so you never have any aliasing effect associated with resized jpegs, etc.. If you recompile the document again, the pdf won’t be created again if it’s detected, so this dramatically reduces compile times, which for me is good, as I like to compile quite often, in order to minimise debugging time (I make lots of errors!) You may find you need to delete the pdf version of the graphic after editing a file.


This is where I explain to people how to do stuff with LaTeX2e

I should emphasise that I learnt all of this from Laura, Will, and James. Thanks guys! :-D

To get setup with LaTeX2e:

  1. Firstly, download the entire MikTeX package repository. It is easier to download the entire thing first, even if you’re not going to need it all, because then you can distribute it to colleagues, etc. I use the aarnet mirror. You want to download that entire directory.
  2. Now install MikTeX by downloading the setup wizard. Don’t download the one for the complete system, not for the basic system. It will be about 461kb last time I looked – if you’re downloading somethign that’s 26 megs then I can’t help you anymore!
  3. During the install process, select to install from your freshly downloaded, local package repository.
  4. Install your text editor of choice. You can use notepad if you want to, but I’d suggest WinEdt. It is an intuitive text editor optimised for use with LaTeX2e and associated typesetting systems, and there is a feature in JabRef that you can ‘push to WinEdt’ with. An open source alternative is Texnic Center, if that’s how to spell it. I don’t like it, but that’s just my preference.


Other random tips:
Quick, ‘Mini’ Compiles
Producing a draft for yourself, or your supervisor
References, not Bibliography
Page Number Tweak
Nomenclature
BibTeX Sort Order Tweak
Hard Spaces
How to convert Microsoft Excel chart to LaTeX
Configuring MikTeX for Mathematica

  1. Quick ‘Mini’ Compiles, to save time
    When you have multiple chapters, and hence multiple \include{filename} statements, try commenting out (with the % symbol) all of them except the one you’re currently working on, to make it compile faster.
  2. Producing a draft for you or your supervisor
    I have changed my ‘draft’ settings in my main document, to show pictures in the draft, and make it double spacing (supervisors request):
    % DRAFT
    \documentclass[a4paper,11pt,twoside,onecolumn,openright,final]{memoir} % Sets the overall layout style
    \usepackage{watermark}\thispageheading{Draft Copy :: Confidential} % This sets the watermark used in draft mode (up top)
    \usepackage{setspace}\doublespacing
    % FINAL
    %\documentclass[a4paper,11pt,twoside,onecolumn,openright,final]{memoir} % Sets the overall layout style
    %\hypersetup{linkcolor=black, citecolor=black, filecolor=black, urlcolor=black} % WHEN PRINTING USE THIS LINE TO MAKE ALL LINKS BLACK
  3. References, not Bibliography
    By supervisors request, I changed the name ‘Bibliography’ to ‘References’:
    \usepackage{natbib}         % Allows Author-Year Bibliographies, added as a section
        \renewcommand\bibname{References} % Specifies to change the name 'Bibliography' to 'References'

  4. Page Number Tweak
    To get page numbering to disappear on my executive summary, and to make sure that table of contents, list of figures, list of tables, and nomenclautre all start on an odd page, and any potential blank pages on the even side don’t have either a heading or a page number (it looks like a mistake if you have a page number on a blank page) whilst maintaing the proper page number count, I have modified my code to be this:

        \end{titlingpage}
        \movetooddpage\thispagestyle{empty}
            \include{executivesummary}
        \movetooddpage[\thispagestyle{empty}]
            \tableofcontents
        \movetooddpage[\thispagestyle{empty}]
            \listoffigures
    %    \movetooddpage[\thispagestyle{empty}]
    %        \listoftables
        \movetooddpage[\thispagestyle{empty}]
            \printnomenclature
        \movetooddpage[\thispagestyle{empty}]
    \mainmatter
            \include{intro}
            \include{litreview}
            \include{propresearch}

  5. Nomenclature
    To get a list of nomenclature, download this pdf manual:
    http://www.ctan.org/tex-archive/macros/latex/contrib/nomencl/nomencl.pdf
    Here is the code I use:

    \usepackage[intoc,norefpage,norefeq]{nomencl} % Nomenclature
        \makenomenclature       % Creates the nomenclature
    ...
    ...
    ...
    ...after the list of figures or wherever:...
        \movetooddpage[\thispagestyle{empty}]
            \printnomenclature
    ...
    ...
    ...
    ...at the end of the document, you should now put in this command:...
        \write18{makeindex researchprop.nlo -s nomencl.ist -o researchprop.nls}  % note that my main tex (ltx) file is called researchprop.ltx, and you should modify this line accordingly
        \end{document}

    Then to actually add something to your nomenclature list, you should do so immediately after you introduce the variable for the first time, e.g.:

    \begin{equation}
    a=\frac{N}{A}
    \end{equation}%
    \nomenclature{$a$}{The number of angels per unit area}%
    \nomenclature{$N$}{The number of angels per needle point}%
    \nomenclature{$A$}{The area of the needle point}%
    The equation $\sigma = m a$%
    \nomenclature{$\sigma$}{The total mass of angels per unit area}%
    \nomenclature{$m$}{The mass of one angel}
    follows easily.

  6. BibTeX Sort Order Tweak
    Problem: My supervisor got really nitty picky on me with this one, but I’m glad he did because otherwise I wouldn’t have bothered trying to fix this one. In my report, I had the same author, with two bibtex entries exactly the same except for the year, and bibtex sorts them by the title in the reference list. Consequently in my document, Name, YEARb was introduced before Name, YEARa.
    Solution: Big thanks to Will for his solution – refer to page #4 of btxdoc.dvi for how to force ‘sort’ your bibtex database .bib file, or just simply give your articles years such as 2005a or 2005b, etc…
  7. Hard Spaces
    Another thanks to one of my supervisors, Carl, for pointing this one out to me. Hard spaces – just use a ~ instead of a space when you want to make sure a new line break will not come between two words. For example, I make sure to always go Section~\ref{something} and Figure~\ref{something} instead of say, Figure \ref{something}.

  8. How to convert Microsoft Excel chart to eps format for inclusion in a Latex document?
    This one is for my brother Mike – hey Mike!! :) To include an excel chart/graph/plot into latex, the text will go all different size, and/or grainy if you save it as a picture. To work around this, I got a tip from another website I found with Google:
    “The best way I found so far is copy the chart and paste it into a program called Paint Shop Pro . Inside Paint Shop, export the image as an EPS file. The EPS is an image file and is little bulky than usual, but it displays and prints very neat and clear in Latex generated PS file.”
    Personally I reckon you should try using open source software, such as GIMP. Otherwise, Adobe Photoshop would be another commercial alternative to Paint Shop Pro, that some people these days have access to (not 100% sure if GIMP can save as eps but I’d be suprised if it didn’t).
  9. UPDATE: Thanks to James for this tip, apparently a better and easier way is in Excel, click on your plot, and then go File -> Page Setup -> Margins, and make all the margins equal to zero. Then print to pdf, and include the pdf in your latex document.


  10. Configuring MikTeX for Mathematica
    To find out how to get Mathematica to work with MikTeX, so you can export your Mathematica work to TeX format, you are best of having a read of this URL.

IET website for SA & NT

I’m currently working on a new website [edit: URL no longer exists] for the IET (Institution of Engineering & Technology) SA&NT division. I’d appreciate any feedback from anyone in the comments below this text.

I’m currently putting content on it as we speak so don’t be concerned about that, just wondering if you think the colours etc are okay for a professional networking engineering website.