Friday, June 12, 2009

I graduated!


I graduated from DePaul University with my masters in software engineering with a 3.75 GPA!!!!

HAPPY HAPPY DAY!!!!

next stop is the phd.... (I hope)

Wednesday, May 27, 2009

Grace Hopper Schedule is POSTED!

WHEEE!!!!!!!!

I'm doing the - Computational Geometry Collaborative Learning with Origami – A
Computer Science Circle workshop with my friends at DePaul ACM-W.

Can't wait for this conference


GHC SCHEDULE


There is also some LGBT events. I'm really looking forward to this!

DataGridView - a simple example

I usually need a simple datagrid that is populated from a callback instead of a database. Here is an example of how to do this.

1. Create two instances
private DataSet dsDataSet = new DataSet;
private DataTable dt;

2. In the constructor of your application initialize the data table
dt = dsDataSet.Tables.Add("Prices");

3. Create a function to create columns

public void setUpDataGridView()
{
DataColumn dc1 = new DataColumn();
dc1.ReadOnly = false;
dc1.ColumnName = "BidPrice";
dc1.DataType = typeof(string);
dt.Columns.Add(dc1);

DataColumn dc2 = new DataColumn();
dc2.ReadOnly = false;
dc2.ColumnName = "BidQty";
dc2.DataType = typeof(string);
dt.Columns.Add(dc2);

DataColumn dc3 = new DataColumn();
dc3.ReadOnly = false;
dc3.ColumnName = "AskPrice";
dc3.DataType = typeof(string);
dt.Columns.Add(dc3);

DataColumn dc4 = new DataColumn();
dc4.ReadOnly = false;
dc4.ColumnName = "AskQty";
dc4.DataType = typeof(string);
dt.Columns.Add(dc4);

dataGridView1.DataSource = dt;
}

4. In your callback for the event that gets the data add the rows

dt.Rows.Clear();
DataRow workRow = dt.NewRow();

workRow["BidPrice"] = stringBidPrice;
workRow["BidQty"] = stringBidQty;
workRow["AskPrice"] = stringAskPrice;
workRow["AskQty"] = stringAskQty;

dt.Rows.Add(workRow);

Sunday, April 26, 2009

Mathematical Fiction

This is a great site! It lists books that cover mathematical topics.

Mathematical Fiction

Saturday, April 25, 2009

Bruce Hanna




Bruce Hanna was one of my early science mentors. He was the best man at my parents wedding and he taught me about Astronomy as well as sailing. Bruce has passed away and he will be missed.

Sunday, April 5, 2009

InsertionSort in Python


A = [2,1,5,3,7,99,8]

def insertionsort(A):
for j in range(1,len(A)):
key = A[j]
i = j - 1
while i != -1 and key < A[i]:
A[j]=A[i]
i = i-1
A[i+1] = key

insertionsort(A)
print(A)

Saturday, April 4, 2009

Alan Turing was Gay!

I just recently found out that Alan Turing was gay. I know for people who are not gay it is hard to understand why this is important, so let me try to explain. For some reason, it is important to have mirroring. This is where you see people like you in history or in present time that are successful and you identify with them. This helps a person to be motivated and to feel hopeful. I can only explain this from personal experience. I can't say that I understand it or could prove it was needed in any other way than personal testimony. However, the fact that Alan Turing is gay gives me a mirror as a gay person. I am proud to say that one of the most important computer scientists of all time was gay. Pretty amazing.

I found out by reading Neal Stephenson's Cryptonomicon which is a real good book! run to the bookstore if you haven't already heard of this book. Run don't walk!