Gypsy女郎的大秘密











I found my year IV project final report online. I looked through it, and it’s very funny. As usual, my project partner implemented the back end C++ logic – decoding a strange string into a tree, and I do the front end GUI.

The hardest part was drawing tree correctly on the screen. Branch lengths have to visually tell the distant between the nodes. It requires quite a bit of Maths to calculate the drawing branch length, and have to fit them all on the screen. It was also quite interesting implementing tree traversal, i.e. moving up (towards the root) and down (towards the bottom). 

Anyway, if anyone interested, here’s the link:

http://www.ece.auckland.ac.nz/~PIVprojects/archive/reports2004/pdfs/ccho096.pdf



Andre showed me this cute tool. I love it. I got a “Insert Code” plugin as well, now I can do this:

<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>

and this:

protected void Page_Load(object sender, EventArgs e)
{
if (!this.Page.IsPostBack)
{
this.DataBind();
}
}

The only thing I am quite annoyed is the white background. I have changed the style to yellow already but no idea why it’s still white. If you still see my code has a white background, that means I haven’t sort that out yet. Anyway, time to go home for dinner!

P.S. HA, it’s yellow now. But I have to get the border!!!



{八月 23, 2007}   Hide Blogger’s navbar

I am not sure would Blogger tell me to delete this post, but my other blogs have been hiding the navbar all the time. I thought of recreate my navbar and place it somewhere inside the blog instead of the top, but give up after I’ve found out it cannot search Chinese characters effectively (my other blogs are in Chinese, obviously). Anyway, here is the piece to hide the navbar:

<script type=”text/javascript”&gt;

var navBar = document.getElementById(“navbar”);
if (navBar) navBar.style.display = “none”;

</script>



et cetera
Follow

Get every new post delivered to your Inbox.