It’s real. The mid-range DSLR you’ve been waiting for: Nikon’s D700 DSLR packs the D3’s supernaturally low-noise 12.1-megapixel full-frame image sensor into a smaller, lighter body, for only $2999.

Source: gizmodo

*drool*  I am now opening up a separate savings account to portion away money for this.  I just need 2999 CAD more to go.

On a separate note, I’d like to give birthday greetings to:

  • Canada
  • Charmaine
  • Joy

to the class of 2008…

June 28, 2008

Congratulations.  I will join you pending the tying up of loose ends.

I biked 27.2 kilometres yesterday.

I want to make my MTB more road bike.  Any suggestions?

But this weekend [June 20], the familiar smell of fish tacos, samosas, dim sum and shark’s fin soup makes its debut.

Source: Richmond Review

Time to withdraw cash from your respective bank machines (no debit taken at Summer Night Market).  The Night Market food court is open!

thank you, everyone

June 19, 2008

Thanks to everyone who gave me birthday greetings.  I know these words may seem to be just that, words, but believe me when I say that each of you took the time to Facebook, text, leave a message, e-mail, or call me (and to those that just forgot) have a played a special part, small and large, in shaping me to be the person that I am now.  I value each of you individually and would like to embrace you with my thanks.  I will try my hardest (that’s what she said) to get back to you all individually.

Paolo
Rebecca
Ji
Justin S.
Pat
Nate
Chehk-a-leng-leng
Mumta
Charmaine
Mike N.
A.C.
Daryl
Amy
Laura
Mark
Michelle
Karin
Azzano
Catherine
Donnel
Shawna
Sundeep
Joyce
Dom
Lindsay
Wayne
Arby
Gagan (Hurrcut)
K. Doy
Geoff
Jonas
Nick
Josh
Jupac
Leila
Pat
Andrew T.
Angela
Bryan
Rob
Eric
Maureen
Ate Sharon
Caitlin
Katrina
Jojo
Seth
Jinky
Jackie
Justin Yoo
Lisa
T. Janette
Chris
Hannah
Seece
Chadleey
Ryan
Ate Lally
Andrew S.
Cheryl
Deeds
Dale
Clay
Jeffrey

I just spent near a half hour trying to make a sorter to sort all these names in alphabetical order.  I need to do these things to keep sharp.  Unfortunately, it’s not working at the moment so they are there in random-ish order.  Here’s my code, try to see if you can debug it.  Don’t ask me why I went from array lists to arrays.  This is to Java 6 of course.

import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.util.ArrayList;

public class Sorter {
FileInputStream fis;
InputStreamReader isr;
BufferedReader br;
ArrayList<String> arr;
String[] str;

public void main() {
isr = new InputStreamReader(fis);
br = new BufferedReader(isr);
arr = new ArrayList<String>();

this.toArray(br, arr);
this.sort(arr);

for (int i = 0; i < arr.size(); i++) {
System.out.println(arr.get(i));
}

str = this.sort(arr);

for (int i = 0; i < str.length; i++) {
System.out.println(str[i]);
}

}

private void toArray(BufferedReader br, ArrayList<String> arr) {
String temp;
try {
while ((temp = br.readLine()) != null) {
arr.add(temp);
}
} catch (IOException e) {
System.err.println(”IOException: “);
e.printStackTrace();
}
}

/**
* Code adapted from Code Codex
* http://www.codecodex.com/wiki/index.php?title=Bubble_sort#Java
*
* @param arr
*/
private String[] sort(ArrayList<String> arr) {
String[] strArr = (String[]) arr.toArray();

for (int k = 0; k < arr.size() - 1; k++) {
boolean isSorted = true;

for (int i = 1; i < strArr.length - k; i++) {
if (strArr[i].compareTo(strArr[i - 1]) < 0) {
String temp = strArr[i];
strArr[i] = strArr[i - 1];
strArr[i - 1] = temp;

isSorted = false;
}
}

if (isSorted)
return strArr;
}

return strArr; // bugfix
}

public Sorter() {

}

public Sorter(String filename) {
try {
fis = new FileInputStream(filename);
} catch (FileNotFoundException e) {
System.err.println(”File not found: “);
e.printStackTrace();
}
}
}