Wednesday, March 31, 2010

MS Word - Different Header and Footer

I've made some images for the page numbering that I'd like to use for my print design. But just so I don't need to be the only person doing all the art work, I've also used MS Word for consolidation instead of producing the pages in Photoshop or Magiq. Now, don't get me wrong, MS word is my defacto word processor. However, I've never used it to produce any of my print work, so to speak.

So I have a problem, I want to use the page numbering images I've made for the pages. Here's how:

http://www.ehow.com/how_5018106_create-different-headers-word.html

However, at step 13, I've used "Next Page" instead of "Continuous".

Tuesday, March 30, 2010

Bibtex

As I am having problem with Memento that Robot Girl gave me, I have to look for alternative for my citations.

So I've found Bibshare via http://www.bibtex.org/Format/, but I have no idea how to use it in the document. I've added the bibtex successfully... now what?

Photoshop - Free downloads

As I am searching for photoshop templates for print work, I came across this site: http://pewterz.blogspot.com/.

An absolute delight! I can't wait to use some of these beautiful templates!!!

So much templates' out there. Way cool!

What I need is to torn an image. This is the method I will use: http://www.entheosweb.com/photoshop/tornedge.asp

And then the part where I need to hide, I will pixelate it: http://photoshopessentials.com/photo-effects/fade-pixels/


Or should I crumple it: http://www.tutorialhero.com/click-4374-crumpled_paper.php






###
I love this pop art background. Lovely!
http://psdesignzone.com/half-tone-pop-dots-effect

Seriously love the polaroid borders!!!
http://www.tutorialallstar.com/photoshop/drawing/recreating-a-polaroid-photograph-in-photoshop/

Skew the image to look polaroid-ish.
http://www.gfxwiz.com/content/how-create-a-polaroid-photo-effect

Nice but unrelated photoshop tutorials on everything and nothing:
http://photoshop-pack.com/category/featured-tutorials/

Monday, March 29, 2010

Creative Resume

http://resources.savedelete.com/70-most-artistic-and-creative-resumes-of-all-time.html


Some really interesting and creative CVs. I need to revisit them and steal their ideas!

Friday, March 26, 2010

Making life easier when writing engineering paper

To self:

1. Always write the equations, no matter if it's only the alpha sign in Math Equation (Latex equivalent) so as to save you from more grief later when copying the text for full dissertation.

2. Always keep a good citation method. EndNote doesn't install at all for me, Memento does not work on Word 2003. Need to find an alternative.

3. Write summary at the same time when reading the paper for the 2nd time. First time is for understanding and scribbling.

4. IEEE: Mark equation with (x) right justified. Refer to equation later with "Therefore, (x)..." without using Equation (x) or Eq (x). However, to begin a sentence, we should "Equation x..."

5. IEEE: Annotate tables and figures with "Figure x: bla bla" and "Table x: bla bla". Refer to figure and table with abbreviation "Fig" and "Table". Tables are numbered with Roman numerals.

Infinite: Start early... Who am I kidding? I kick myself every sem. I thought I'd be wiser by now.

Sanyo Xacti

I've thought about it and I am really liking the Sanyo Xacti.
Especially this model:
http://sanyo.com/xacti/english/products/vpc_cs1/index.html

Then I can do my silly video processing and perhaps play with this method:

Thursday, March 25, 2010

Left/Right Brain

I was reading this article and felt I'm more of a right-brain prone than left-brain. Which I think... Is not a bad thing but I need to improve and be a better person with more left-brain characteristics.

http://painting.about.com/library/blpaint/blrightbraintable.htm

Sunday, March 21, 2010

VTK -helpful sites

I've finished my dreaded vtk medical visualization (geez... I hate it when I start to type american).
Anyways, I've used these sites to help me understand vtk and how to write the report.

http://www.sapne.net/526/proj2.html

http://vis.lbl.gov/Research/ChomboVis99/vtk-initial.html

Tutorial:

http://web.cs.wpi.edu/~matt/courses/cs563/talks/vtk/slide1.html

http://www.mcs.anl.gov/~disz/cs-341/colorvis/index.htm

http://www.evl.uic.edu/aspale/cs526/final/index.htm

This is my protein which someone says looks like te_t_cles.

Strange Feelings

I found Yuki Isoya again on youtube and felt strange listening to this particular song, Seed Of Happiness.



So I went through this blog and found that I used to listen to this song on repeat during Y1S1 assignments. Strangely that was only 2 years ago and yet I felt that I was really young then. I've aged exponentially.

Tuesday, February 23, 2010

Compiling VTK for Visual Studio 2008

Tried like mad to compile for VS 2008. Followed this link. Works like magic!

http://www.cs.uiowa.edu/~cwyman/classes/common/howto/winVTK.html


Compiling VTK Using CMake and Visual Studio
Preliminaries:

So you've got the CD/DVD from the back of the book "The Visualization Toolkit" or perhaps you've downloaded VTK directly from the website, but now you've got problems compiling it on your home Windows machine.

Fortunately, if you have the textbook compilation is relatively straightforward.

* Please note, the installer on the CD only installs a binary version of VTK useful only as a Tcl interpreter using the VTK Tcl bindings.
* However, the Windows installer also allows you to install an executable version of CMake, which is required to build the version of VTK necessary for class.
* You can skip the CD's installer entirely, but you will need to download and install CMake yourself. And if you plan to use Tcl, you'll need to download that as well.

Using CMake to Setup a VTK Visual Studio Project:

1. Copy the directory from the CD "VTK\Source\VTK\" to your hard drive.
* I put mine in "C:\VTK\Source\VTK\".
* Note: This directory name should have no spaces or other weird characters in it.
* You may also want to copy "C:\VTK\Source\VTKData\" if you plan to use any example code.
2. Open up CMake. You can do this using either a command line or a nice Windows GUI.
* Open the GUI by running "CMakeSetup.exe" -- for me this is in the directory "C:\Program Files\CMake 2.4\bin\"
3. In the box labeled "Where is the source code:" enter the directory containing the VTK source
* Again, for me this was "C:\VTK\Source\VTK\"
4. In the box labeled "Where to build the binaries:" enter some temporary directory.
* I used "C:\VTK\VTK-win\"
* Again, this directory should have no spaces or other weird characters.
5. Once the values have the directories set appropriately, click on the button labeled "Configure."
* A dialogue will pop up asking for the system you plan to use to compile VTK.
* Select the correct version of Visual Studio.
* In my version of CMake, there was no entry for Visual Studio 2008, so pick the entry for Visual Studio 2005 (which VS 2008 can understand). I expect if you download the latest version of CMake, it will work out-of-the-box with Visual Studio 2008.
* Click OK.
6. CMake will spend quite a bit of time detecting information about your system and configuring the Visual Studio project.
* Wait for a bit. Maybe 2-3 minutes
7. Eventually, configuration will be over and a number of red configuration variables will appear in the box entitled "Cache Values." You may change these, depending what you want to build. There are a few you really should change:
* I would encourage you to set "BUILD_EXAMPLES" to "ON"
* If you use the examples, you should set "VTK_DATA_ROOT" to be the directory where you copied the data from the CD's "VTK\Source\VTKData\" directory. CMake detected a really nasty-looking directory name for this, you may want to clean that up.
* You should set the "CMAKE_INSTALL_PREFIX" to be the directory you want to contain the headers (.h) and libraries (.lib) you will need to compile your own programs.
o This directory cannot contain spaces or other weird characters.
o NOTE: The default chosen probably will include spaces (i.e., "C:\Program Files\VTK"). Change this!
o Subdirectories entitiled "include" and "lib" will be automatically created.
o I set this to be "C:\VTK\"
8. Once the cached values have been set appropriately, again click on the button labeled "Configure."
* This will only take a moment.
9. Click the button labeled "OK" to finish generating the Visual Studio project.
* This will take maybe 10 seconds, then CMake will exit.

Compiling VTK with Visual Studio:

1. Go to the temporary directory chosen in CMake to build your binaries.
* Again, for me this was "C:\VTK\VTK-win\"
2. Open up the Visual Studio project "ALL_BUILD.vcproj"
* If you use Visual Studio 2008, it will ask you to convert to a VS 2008 project. Click "Next>" then "Next>" then "Finish".
3. At the top of Visual Studio UI, select a "Release" build instead of a "Debug" build (the default).
* Unless, of course, you plan to use the debugger inside internal VTK functions.
4. In the solution explorer, right click on "ALL_BUILD," select the entry in the menu to "Build."
* Wait while Visual Studio compiles.... This will take a little while.
5. The headers (.h) and libraries (.lib) are now compiled, but are located in all sorts of odd directories.
6. In the solution explorer, right click on "INSTALL," select the entry in the menu to "Build."
* All the headers and libraries will be copied to the directory specified in CMake as "CMAKE_INSTALL_PREFIX."
* The libraries will be in the "lib/" directory and the headers will be in the "include/vtk-5.0/" directory.
7. You are done compiling VTK!

Testing VTK to Double Check Things Worked:

1. Make sure there were no errors reported by Visual Studio when building or installing.
2. Check inside the build path in the directory "bin\Release\" for a number of executables, such as "VTKBenchMark.exe" that you can run to double check things work correctly. Please note most or all of the examples in this directory do not open interactive windows, but rather display a couple images and then quit.
* For me, these test executables are in "C:\VTK\VTK-win\bin\Release\"
3. Check the installed header directory "include\"
* Mine has 1,074 files
4. Check the installed library directory "lib\"
* Mine has 64 files

If you have problems compiling, you can try to use my compiled libraries and headers.
Using VTK in Your Code:

There are two ways to get your code to link to the VTK libraries.

One approach is to continue using CMake. To use CMake, you must create a CMakeList.txt file to be processed while generating a Visual Studio project for your program. To see what a CMakeList.txt looks like, you can take a look at a sample or search for other online CMake documentation.

To link to VTK in a more "usual" Visual Studio fashion, you can:

1. Add the include directory to the "Addional Include Directories".
* This entry is found in: Project Menu -> Properties, then under Configuration Properties -> C/C++ -> General.
* My include directory is "C:\VTK\include\vtk-5.0"
2. Add the library directory to the "Additional Library Directories"
* This entry is found in: Project Menu -> Properties, then under Configuration Properties -> Linker -> General.
* My library directory is "C:\VTK\lib"
3. Include all the VTK libraries (.lib) files you use in your program under "Additional Dependencies"
* This entry is found in: Project Menu -> Properties, then under Configuration Properties -> Linker -> Input.
* You'll have to either include all the VTK libraries here or guess which ones you need.
* A good place to start for the basic cone demo is to link to vtkCommon.lib, vtkFiltering.lib, vtkGraphics.lib, vtkRendering.lib, and vtksys.lib.
4. Link to the OpenGL library ("opengl32.lib") also under "Additional Dependencies".

Last Modified: Thursday, February 5, 2009
by Chris Wyman (cwyman@cs.uiowa.edu)

Monday, January 18, 2010

Alphabet Soup

of titles.

My mum thought I should start to print them in my namecard even though I have one full year to go before graduation.

As for me, one guy from the forum below said it best:
"It took me 5 bloody years to get it so I don't see anything wrong with including it."

http://www.toytowngermany.com/lofi/index.php/t62810.html

Friday, November 27, 2009

Make yourself think

I was just googling "Clockwork Orange" (a movie that I saw as a young lass and was offended and yet mesmerised - the sets and costumes) and came upon this site,

http://projectgroupthink.wordpress.com/


Then I read this about the 10 movies that make you think. I must say, I love it!

These are some of the movies that I had watched, plan to watch again. So enjoy.

http://projectgroupthink.wordpress.com/2009/05/28/10-movies-that-make-you-think/

http://billsmovieemporium.wordpress.com/2009/05/24/review-a-clockwork-orange-1971/

Thursday, November 26, 2009

Yay? No?

Ah-har!

I found this absolutely great site from Today (Singapore's free tabloid, right?) that talks about music and concerts. Yay. And by the way, next year is going to be a great year for concert lovers because a lot of good acts' coming to Singapore.


http://blogs.todayonline.com/poparazzi/


I've got my tickets for Green Day and Muse. Aarrgh. So many concerts, so little money!

Monday, November 23, 2009

Parametric Curves

Geometric and Parametric Continuity

Geometric Continuity

* G0: curves are joined
* G1: first derivatives are proportional at the join point
The curve tangents thus have the same direction, but not necessarily the same magnitude. i.e., C1'(1) = (a,b,c) and C2'(0) = (k*a, k*b, k*c).
* G2: first and second derivatives are proportional at join point

Parametric Continuity

* C0: curves are joined, There may be a sharp point where they meet.
* C1: first derivatives equal, The curves have identical tangents at the breakpoint. (The tangent is the slope at the breakpoint.) The curves join smoothly. C1 curves also have positional continuity.
* C2: first and second derivatives are equal,
The curves have identical curvature at the breakpoint. (Curvature is defined as the rate of change of the tangents.) Curvature continuity implies both tangential and positional continuity.


If t is taken to be time, this implies that the acceleration is continuous.
* Cn: nth derivatives are equal

Thursday, November 19, 2009

Semester 3: Them

Animation & Simulation
Prof Normal

I guess, he's by far the most normal. Articulate, logical and well behaved. He's not fully research only when he says, "Resolution is just as important to determine the feasibility of the method proposed."
And really smart. He knows sometimes we don't really know what we're saying but he has never tried to embarrass us during our presentations. Cares about teaching, you just can tell. Great prof.
Oh ya, and he wears converse canvas and printed shirts. Score!
I'm hoping to do my dissertation with him.


Game
Prof Huh

Absent-minded. Funny. Knows a lot. He's a tenured professor. Thinks everything is extremely easy. Explains well. But just so busy he becomes forgetful.

Tuesday, November 3, 2009

GLUI Quick Guide from CodeProject

If you're unfortunate like me, only able to visualise algorithms with OpenGL, then the next thing to make the application less difficult to use is by defining some GUI.

I found this GLUI guide easy to use and refer to.

http://www.codeproject.com/KB/openGL/GLUI_Window_Template.aspx#6-AddGUIControls17

Sunday, November 1, 2009

A Few Tips on How to Use PowerPoint for Mathematical Presentations

I've included this tip from the link at the bottom of the post to help me with the equations in PowerPoint.. This is not my own post.

What These Are About

These tips may help you produce math-heavy PowerPoint presentations more efficiently, and get them to look better. They assume familiarity with the basics of PowerPoint. They do not argue for or against using PowerPoint for your presentations (there are many pros and cons). They were born out of a conversation among graduate students in the MIT theory group sometime in 1999 or 2000, when many of us were discovering PowerPoint and agreed that a page for sharing tips would be useful. Some of them are probably getting out of date as newer versions of PowerPoint come out.

They are maintained by Leonid Reyzin. Please contact me if you have additional tips you think should be included, or if you find something wrong (or no longer applicable).

Machine Independence

One of the biggest headaches with PowerPoint is the difficulty of getting it to look the same on different machines. To that end:
  • Make sure your file includes fonts. This is accomplished by going to the "File" menu, selecting "Save As," and checking the "Embed TrueType" check box in the dialog box that pops up. Then click "Save." Your file will likely become very large once you do this, and you may need to compress it to get it to fit a single floppy (see also "Miscellaneous PowerPoint Tips," below, for how to deal with large files).
  • If you use Equation Editor/MathType, you need to embed those fonts, as well. Unfortunately, PowerPoint doesn't know you are using those fonts simply because an equation is embedded (it treats equations as graphics); thus, you need to make sure that at least one character from each font used in your equations appears somewhere (e.g., on a special slide, or as white on white, or just a space) in an ordinary PowerPoint textbox. The fonts you are interested in are MTExtra, Euclid Math One and Euclid Math Two. Then use "Embed TrueType" option described above. (Thanks to Bob Mathews for the tip.)

Making Overlays

Get everything you want onto one slide, and get in its final form. Then split it into overlays as follows: copy it as many times as the number of overlays, and simply "hide" parts on each slide. To hide a part, change its color to white, or cover it up with a white rectangle. Do not delete text, because that will move other text around, and your overlays won't match. Instead, change its color to white.

Typesetting Math

One way to typeset mathematical formulas and symbols in PowerPoint is to use TexPoint add-in. I haven't tried it myself, but have heard good things about it. Just save often, because PowerPoint's tendency to crash apparently only increases when the add-in is used (in particular, when the LaTeX interpreter is closed improperly).

If you prefer to use "straight" PowerPoint, here are some tips.

  1. Getting it to look good
    • Italicize only what should be italicized. Generally, this means only Roman and Greek variable names (italicizing uppercase Greek is optional). Be sure to not italicize plus and minus signs, function like log and cos, numerals, parentheses, etc. If in doubt about what should be italicized in a particular formula, typeset it in LaTeX and then mimic LaTeX's output in PowerPoint. To toggle italics, just use Ctrl-i.
    • Use Times New Roman or a similar font. Sans serif fonts, such as Helvetica, are not good for math (although they may be good for the rest of your presentation). It's ok to have one font for math and another for the text (the slides class of LaTeX does that, in fact). To change fonts without using the mouse, use Ctrl-Shift-f and arrow keys.
    • You can also change fonts and styles by using the "format painter" button: simply get one character to look right, and then use the format painter to copy its format to other similar characters. (Thanks to Shane Scott for this tip.)
    • Do not use a hyphen for a minus sign. A much better minus sign is an en-dash. Unfortunately, it is a bit hard to get in PowerPoint. See "Inserting non-standard characters" below.
    • When you copy math around, make sure it has the same font size as the surrounding text. PowerPoint will not always automatically get it right.

  2. Inserting non-standard characters.
    • To insert Greek letters, simply type the "corresponding" Roman letter (e.g., "a" for alpha, "t" for tau, "q" for theta), and then change its font to Symbol. Same for "sum" and "product" symbols: simply use capital sigma and capital pi.
    • Standart Unicode symbols for integrals don't look any good. You may want to use the curve-line tool to make one and then copy it around. (Thanks to Nikola Venkov for this tip.)
    • To insert the many special symbols that are available in Microsoft Word (such as en- and em-dashes, ©, etc.), simply open up Microsoft Word, and insert them using the menu "Insert" then "Symbol." The "Special Characters" tab is particularly useful, and contains handy keyboard shortcuts. Once you get it in Microsoft Word, simply select it, copy it, and then paste into your PowerPoint text. Make sure the result has the correct font and size. Then you can copy it around your PowerPoint file whenever you need it.
    • More recent versions of PowerPoint have the "Symbol..." item in the "Insert" menu (the corresponding toolbar button is available, as well: see "Miscellaneous PowerPoint tips," below). You can insert characters from various fonts.
    • A host of characters is available in the "Character Map" accessory. (Go to the "Start" button, then "Applications," then "Accessories," then "Character Map.") Trying different fonts to find what you need; Symbol font is particularly useful for math. You can select and copy characters, then paste over to PowerPoint. Moreover, if you click on a particular character, you get the "keyboard code" for it displayed at the bottom. Once you learn the keyboard code, you can type it directly in PowerPoint without having to copy and paste. For example, the code for an en-dash (which is good for minus signs) in Times New Roman font is Alt-0150 (hold down Alt, press 0150 on the numeric keypad, then let go of Alt). The code may be different in other fonts.

  3. Subscripts and superscripts
    • To make subscripts and superscripts using the menus, select the character you need, then go to "Format" then "Font." Note that you can get double superscripts, subscripts of superscripts, etc., by varying the "offset" amount.
    • It is faster to make standard subscripts and superscripts using the keyboard. Ctrl-= toggles the subscript flag, and Ctrl-+ (same as Ctrl-Shift-=) toggles the superscript flag. For example, to get aixi, type "a, Ctrl-=, i, Ctrl-=, x, Ctrl-+, i, Ctrl-+" (don't forget to turn on italics at the beginning by "Ctrl-i").
    • You can also get buttons for making subscripts and superscripts on your toolbar. See "Miscellaneous PowerPoint Tips" below. Or you can use the format painter: get a single subscript to look right, and then copy its format to other subscripts (see "Getting it to look good" above).

  4. More complex formulas.
    • You may avoid using Equation Editor/MathType (see "Machine Independence" above) by utilizing multiple text boxes instead. You can move them around to get them in the right positions. Note that large parentheses, brackets, braces, and other useful shapes are available under "AutoShapes" (most likely on your drawing toolbar). Once you get a formula to look right, group all of its components (see "Drawing" below), so you can easily move it around and copy it.

Drawing

  • Learn to use "Group," "Ungroup" and "Regroup" in your "Draw" menu (also on your right-click menu). "Regroup" is particularly handy if you need to ungroup to modify something little. You don't have to reselect everything to group it back: simply choose "Regroup."
  • To select multiple objects, hold down the Shift key as you click on them with the mouse.
  • It is a pain to select text boxes, because when you click inside them, you get to edit text. If that happens, press "escape," and the text box becomes selected. Alternatively, hold down the Shift key as you click. Conversly, if you've selected a text box and now want to edit its text, press "enter."
  • It is often easier to nudge objects by selecting them and using arrow keys, rather than by using the mouse.
  • Connectors (available under "AutoShapes" on your drawing toolbar) are great when drawing graphs, trees, etc. They can be made to stick to an object, so when you move nodes around, edges adhere to them.

Layout and Design Tips

  • You do not have to be stuck with the standard boring slide style. Play around with it by going to the Edit menu, and selecting Master, then Slide Master.
  • When giving a talk that will be projected (rather than printed out on transparencies), the color combination that is easiest on the eyes is yellow (or white) on a blue background. (Thanks to Steven Rudich for this tip.)
  • To make small caps font style (equivalent to LaTeX's \textsc command), type in all uppercase letters. Then select all the letters you actually want to be in small caps (i.e., not the ones you want to actually be uppercase, such as first letters of sentences), and simply make the font about four points smaller. (Thanks to Amit Sahai for this tip.)
  • To start a new line without starting a new paragraph: press "Shift-Enter."

Miscellaneous PowerPoint Tips

  • You can customize your toolbars. In particular, it is handy to have buttons for "Format-Subscript," "Format-Superscript," and "Insert-Symbol." Go to the Tools menu, then Customize, then click on the "Commands" tab. Then simply find a command you want by looking at the various categories, and drag it out of the dialog directly onto a toolbar you want. (Thanks to Amit Sahai for this tip.)
  • If AutoCorrect annoys you (e.g., you have a variable named "i" and don't want PowerPoint to automatically capitalize it every time), check out the menu "Tools" then "AutoCorrect." If it doesn't annoy you but is just occasionally wrong, you can undo what it just corrected by pressing Ctrl-Z or selecting "Undo" in the "Edit" menu.
  • If you file is too large to fit on a single floppy and you need to take it with you, use the "Pack and Go" command in the File menu. Be sure to check the boxes that "Include linked files" and "Embed TrueType fonts" in the dialog boxes that follow. Prepare a large box of floppies, as PowerPoint manages to only enlarge your file as it "compresses" it. However, the packing and restoration procedure is automated, and beats trying to split the file into multiple chunks yourself. Don't forget to label the floppy disks in numerical order; run the application that is included on the first floppy to restore the file to another computer.

http://www.cs.bu.edu/~reyzin/pptips.html

Thursday, October 29, 2009

Tuesday, October 20, 2009