Archive for July, 2006

looking up IP addresses

I just found a cool tutorial on looking up peoples IP addresses on the internet:
http://www.arin.net/education/WHOIS_CBT/whois.htm

Mostly just putting that here for my future reference.

Posted on Thursday, July 20th, 2006
Under: Computing, Security | No Comments »

Hostile takeover bid

I have discovered I can post on Tom’s bLog! What more can a good sister do than post a hostile take-over bid, especially since two little boys are conspiring to take over my journal. Still, I think you’ll appreciate the story of their adventures.

xxx
Nai

Posted on Tuesday, July 11th, 2006
Under: What my friends get up to | No Comments »

this weekend

Photos to be included in this post later

This weekend I’ve spent massive amounts of work on the IET SA&NT website (about 25 hours), which is currently still located at http://tombammann.org/vhosts/iet-sa-nt/ until we spend money. I just finished writing a 3 page document which should help convince people that money should be allocated towards running the website on a professional server.

Friday I had an IET YMS committee dinner and drinks night. It was great to hang out with them and get to know them better. I think that may have been what motivated me to do lots of the website work. I then went to Pia’s 21st with Morv at the Havelock.

Sat Morv and I went for a hike up Winter Trail in Cleland, and up Summer Trail which I’d never done before. This was after us having a very late start to the day getting out of bed, and my car breaking down on Waterfall Gully Rd, at 90 degrees to the road in a ditch when I was turning around. Thanks to the elderly man who helped me push it out the ditch! :) The walk was great. We then had dinner and saw Pirates of the Carribean 2 with Paul, Jame, Dan, Erin, Damien and Bronwyn. It was a pretty funny movie but I fell asleep due to Friday nights activities. Morv and I then went into town to meet up with her friend Lisa (who’s also my friend). We dragged her out of there from her boyfriend and her boyfriend’s friends, and went to the Blue Note cocktail bar. I had a free cocktail upon entry (they have a free cocktail for everyone on entry between 10pm and 11pm), a bowl of organic chips, and then a Chocolate Sax cocktail. Unbelievably tasty, and made me very merry! :)

Sunday (tonight) I went around to Morv’s house for afternoon tea and spoke to their family friend Tony about engineering stuff for the entire afternoon. It was really interesting to talk to him, and I look forward to telling him via the grapevine how I go in my first few weeks at ETSA which I start on Wednesday.

Posted on Monday, July 10th, 2006
Under: What i get up to | 1 Comment »

mozilla firefox for web browsing

Firefox. There it is. Yes, it does everything Internet Explorer does. No, there are no drawbacks. Yes, it is true that it has difficulty displaying some web pages, but only those that use commands specific to IE - but why would you be browsing pages like those, anyway!?

These are all the ‘add-ons‘ that I currently use with Firefox:

  • Auto Copy
  • ChatZilla
  • CustomizeGoogle
  • DictionarySearch
  • FlastGot
  • Forecastfox
  • Gmail Notifier
  • Highlight Focus
  • IE View (just in case!)
  • Tabbrowser Preferences
  • Talkback
  • Web Developer

But don’t take my word for how good Firefox is, find out for yourself! I guarantee you won’t regret it. Also check out an old post about Mozilla Thunderbird.

Posted on Sunday, July 9th, 2006
Under: Computing, Everyday Use | 1 Comment »

ganttproject for ganttcharts

Today I want to mention that GanttProject is a great open source alternative to Microsoft Project. It’s good because it’s free, and nowadays possible to import and export to and from Microsoft Project.

Posted on Sunday, July 9th, 2006
Under: Computing, Everyday Use | No Comments »

syncback for synchronising & backing up data

Syncback (the freeware edition - massive thanks to pp, aka ‘dopod’ for this one!) is first on this list for a reason. Everyone needs a good backup solution they can depend on. Don’t be like me losing my entire computer two Christmas’s ago when my RAM died whilst re-partitioning. Don’t be like my cousin Christie who lost all her year 12 work when her hard drive died, with no backup.

At home, I have a dedicated seperate hard drive now, purely for backing up, which I have happen all automatically at the click of a button, thanks to this awesome software. I then hide the portable hard drive somewhere else in the house in case we get robbed by burglars, and they want to steal my computer along with this nice shiny hard drive sitting right next to it. Even better still, take your portable hard drive and store it at a friends or relatives house several kilometres away, in case of natural disasters - but remember to back it up AT LEAST once a month!

Posted on Sunday, July 9th, 2006
Under: Computing, Maintenance, etc. | 1 Comment »

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.

Posted on Sunday, July 9th, 2006
Under: Computing, Security | 2 Comments »

GIMP for digital images

GIMP software is an open source version of Adobe Photoshop. Not quite as good, but good enough for most of us :)

Posted on Saturday, July 8th, 2006
Under: Computing, Multimedia | No Comments »

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.

Posted on Friday, July 7th, 2006
Under: Computing, Everyday Use | 2 Comments »

hearing aids

Another joke from Morv

An elderly gentleman had serious hearing problems for a number of years. He went to the doctor and the doctor was able to have him fitted for a set of hearing aids that allowed the gentleman to hear 100%.

The elderly gentleman went back in a month to the doctor and the Doctor said, “Your hearing is perfect. Your family must be really pleased that you can hear again.

The gentleman replied, “Oh, I haven’t told my family yet. I just Sit around and listen to the conversations. I’ve changed my will three times!

Posted on Thursday, July 6th, 2006
Under: Fun stuff, Jokes | No Comments »