Saturday 30 October 2010

Week-08-CRM

29 Oct 2010
Total 6 hours
  1. <Group Meeting> 2 hours We discussed about the table layout. In this time we haven't done normalization. So there are many tables, which have duplicated information, for example, status, category and so on.
  2. <Coding for Reminder function> 4 hours Honestly, I want to finish up the reminder function today, however I could not finish. So I will continue that on weekend. This weekend I have an appointment, so I don't know I can finish or not. Anyway I will do my best:)

28 Oct 2010
Total 6 hours
  1. <Coding for mail> 1hours I created to display part of the recent e-mail address. I checked the recent e-mail and I could get result, which I expected.
  2. <Coding for Reminder function > 5hours Now I make the programming for the reminder function. I realized one page has many functions, so I have to coding many things. And also I need to send e-mail to the using smtp, however sending e-mail function has already done at the last semester, so I can do.

27 Oct 2010
Total 8 hours
  1. <Coding for mail> 3hours I searched internet and I found the C# console application can create exe file. So I can make exe file and I create schedule to do this execute file every 5 min.
  2. <Coding for Reminder function > 5hours I make the reminder function, however I need to take a time using ASP.net, because I don't know many functions, and also sometimes working is different from my expectation. So I need time. 
To create exe file
Tool bar > Build > Batch build > select release and then press Build button. You can fine bin file in the release folder, there is exe file.
I create record using control panel in side scheduler.


26 Oct 2010
Total 5 hours
  1. <Coding for mail> 3hours I thought the web application is not suitable for getting e-mail, because someone must go to this web site. So I need to create bat file or some kind of executable file. This programming can get e-mail automatically, which means no one action to get e-mail. Therefore, system can do to get data automatically.
  2. <Presentation meeting> 2hours We attend the meeting.This time only two group made a presentation, so we have a time to do.
25 Oct 2010
Total 4 hours
  1. <Coding for mail> 4hours Today is Labor day, which is New Zealand National holiday. New Zealand's holidays are less than Japanese ones. So I got a little rest. Today, I could get to read Google mail using ATOM Feed. Finally, I understood C# XML classes. Actually, there are many similar naming classes, so I need to research one by one. I can already read some ATOM feed, but I could not get attribute of the link, for example "href=". So if someone may try to do same thing, I will write down coding.  

GmailHandler Class
I downloaded this class form http://fci-h.blogspot.com
using System;
using System.Data;
using System.Xml;
using System.Net;
using System.IO;
/*
 * this code made by Ahmed Essawy
 * AhmedEssawy@gmail.com
 * http://fci-h.blogspot.com
 */
/// 
/// Summary description for Class1
/// 
public class GmailHandler
{
    private string username;
    private string password;
    private string gmailAtomUrl;

    public string GmailAtomUrl
    {
        get { return gmailAtomUrl; }
        set { gmailAtomUrl = value; }
    }

    public string Password
    {
        get { return password; }
        set { password = value; }
    }

    public string Username
    {
        get { return username; }
        set { username = value; }
    }

    public GmailHandler(string _Username, string _Password, string _GmailAtomUrl)
    {
        Username = _Username;
        Password = _Password;
        GmailAtomUrl = _GmailAtomUrl;
    }

    public GmailHandler(string _Username, string _Password)
    {
        Username = _Username;
        Password = _Password;
        GmailAtomUrl = "https://mail.google.com/mail/feed/atom";
    }
    public XmlDocument GetGmailAtom()
    {
        byte[] buffer = new byte[8192];
        int byteCount = 0;
        XmlDocument _feedXml = null;
        try
        {
            System.Text.StringBuilder sBuilder = new System.Text.StringBuilder();
            WebRequest webRequest = WebRequest.Create(GmailAtomUrl);

            webRequest.PreAuthenticate = true;

            System.Net.NetworkCredential credentials = new NetworkCredential(this.Username, this.Password);
            webRequest.Credentials = credentials;

            WebResponse webResponse = webRequest.GetResponse();
            Stream stream = webResponse.GetResponseStream();

            while ((byteCount = stream.Read(buffer, 0, buffer.Length)) > 0)
                sBuilder.Append(System.Text.Encoding.ASCII.GetString(buffer, 0, byteCount));


            _feedXml = new XmlDocument();
            _feedXml.LoadXml(sBuilder.ToString());


        }
        catch (Exception ex)
        {
            //add error handling
            throw ex;
        }
        return _feedXml;
    }
}

Default.aspx.cs
This page calls Google mail Atom feed and displays result.
I was struggling "if (entrychild.Name == "link")" part, because Atom feed uses link for attribute. If it was <link> URL </link>, there would be no problem:)
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Xml;
using System.Net;
using System.IO;
using System.Net.Sockets;
using System.Net.Security;
using System.Text.RegularExpressions;
using System.Xml.XPath;

public partial class _Default : System.Web.UI.Page
{
    public string r = null;
    protected void Page_Load(object sender, EventArgs e)
    {
        //Create the object from GmailHandler class 
        GmailHandler gmailFeed = new GmailHandler("your username", "password");
        //Get the feed :) 
        XmlDocument myXml = gmailFeed.GetGmailAtom();

        //For to get Name and Innner Text From Atom Feed
        XmlElement root = myXml.DocumentElement;
        XmlNodeList xmlnode = myXml.GetElementsByTagName("entry");

        foreach (XmlElement entry in xmlnode)
        {
            foreach (XmlElement entrychild in entry)
            {
                if (entrychild.Name == "author")
                {
                    foreach (XmlElement entry2ndchild in entrychild)
                    {
                        Response.Write(entry2ndchild.Name);
                        Response.Write(":\t" + entry2ndchild.InnerText + " \n
");                   
                    
                    }
                }

                Response.Write(entrychild.Name);
                Response.Write(":\t" + entrychild.InnerText + " \n
");
                if (entrychild.Name == "link")
                {
                    string target = entrychild.OuterXml;
                    Match match = Regex.Match(target,
                    @"href=""([^""]+)""");
                    if (match.Success)
                    {
                        string href = match.Groups[1].Value;
                        Response.Write(href + " \n
");
                    }
                }
            }
            Response.Write("\r\n\r\n
");
        }
    }
}

Thursday 21 October 2010

Week-07-CRM

24 Oct 2010
Total: 4hours
  1.  <Data List> 4hours ASP.net offers server control tools, which allows us to use without coding. However, there are many similar tools, such as GridView, DataList, ListView, FormView, DetailsView, and so on. I wonder who can use these similar controls correctly. Please reconsider these naming, so I don't need to consume time to search how to use. Anyway, I want to show many cases and case histories related to the particular case. After research, I found I can use DataList in DataList. First, the key is ClientID from session, and then nested DataList will get the CaseID from parent DataList.
23 Oct 2010
Total: 6hours
  1.  <Create Table> 3hours Today I created table. Now we have 24 tables, so I wrote SQL statement, because other member also need this SQL. Therefore, they just execute this SQL, which is nice. And my team member has created data dictionary, so I don't need to take such a long time.
  2. <Create Dummy data > 3hours When I created dummy data, I realized many status definitions are not decided yet. So we have to consider about that kind of definitions.

22 Oct 2010
Total: 7hours
  1. <Coding for mail> 5hours I could get google mail, however I realized I could not get attached file. Uhh..., so I have to find solution. Mail handling is very difficult, that's why mail software is available. I got it. So I'm still struggling about retrieve mail from mail server. Especially, ASP.net is not enough references for beginner like me. The documents of Microsoft are normally not enough sample coding or too complex. I don't know why people prefer ASP.net.
  2. <Group meeting> 2hours We talked about prototype coding. And I will do Create Database tables and dummy data. This is not so difficult, so maybe I will finish tomorrow.


21 Oct 2010
Total: 8hours
  1. <Coding for mail> 6hours Finally, I could get e-mail form mail box. Using this article, my team mate told to me this link. But it is not perfect, so I need to modify or I think about another way. Anyway, we can do using pop server to get Google mail.
  2. <Group meeting> 2hours We discuss about the project system, this idea is good, but I wondered some people are not happy with the 3rd semester. Maybe we need more buck up and suitable advices.

20 Oct 2010
Total: 8hours
  1. <Coding for chart> 2hours I have done chart coding. I use Google chart tool. Because I just create query string like following URL. And then we can show the above char!! Cool! http://chart.apis.google.com/chart?cht=p3&chd=s:Uf9a&chs=250x100&chl=January|February|March|April                         
  2. <Coding for mail> 6hours Today I also try to find coding for mail, however if I find the coding. Almost all not working, because ASP.net has many versions and those files are very complex, so it is hard for me to find problems. Uhh.. I wonder I can do or not.

19 Oct 2010
Total: 6hours
  1. <Prepare presentation> 1hour Yesterday, we discussed and we focused on the only ERD, so we don't need to prepare so much.
  2. <Presentation> 2hours We joined presentation, and we got many advices. However, I wondered what is the purpose of this presentation. I thought we showed progress, but maybe I misunderstood it. I still don't get point of the purpose. 
  3. <Coding for chart> 2hours Finally, I decided to use Google chart, because it is much more handy than ASP.net add-on tool. So we can modify anything.
  4. <Coding for mail> 1hour I have tried to use google mail for 2 weeks, but reading e-mail is very very difficult. And there are advantages and disadvantages, so I need to discuss with team members.

18 Oct 2010
Total: 5hours
  1. <Prepare presentation> 3hours We practiced our presentation. This time we want to focus on ERD and UML, so I will explain ERD. Now our ERD becomes very well, I am interested in showing ERD.
  2. <Coding for chart> 2hours I am still doing chart coding. I tried to use ASP.net Add-on tool. But it is too difficult, so maybe I think about the way again, because Google chart is just using query string. So maybe it is not so difficult!

Sunday 17 October 2010

Week-06-CRM

17 Oct 2010
Total: 4 hours

  1. <Group meeting> 2hours We discussed about the presentation structure. My part is ERD. So I think it is not so difficult. But I have to write down script. We reviewed ERD, it becomes good diagram, so now it is time to start developing database.
  2. <Research> 2hours I researched about chart. Actually I don't want to use ASP.net package, because if I use open source, I can reuse it another language, but I understand ASP.net is difficult that kids of things. So I need to use their package.  

16 Oct 2010
Total: 5hours
  1. <Group meeting> 3hours We discussed about the presentation structure and invoice page image. We realized we don't know many things so we have to ask the client to get more information.
  2. <Research> 2hours I researched about chart and google mail. ASP.net is not flexible and not enough references. Anyway, today I feel tired, so I want to try to find tomorrow.  


15 Oct 2010
Total: 6hours
This morning, we played some sports, which is good for our health.
  1. <Documentation> 1 hour I updated my blog and Journal. There are many documentations, which we have to do. We need more time to do project.
  2. <Sequence Diagram> 2.5 hours I created two sequence diagrams, after that we discussed and created more sequence diagrams. So maybe we will find more classes.
  3. <Group Meeting> 1 hour Today we have reviewed the UML diagram from our teacher. This time it is no problem, and we can start to prepare the presentation.
  4. <Coding for chart> 1.5 hour Today I still searched the coding for chart function. But I cannot find good resource, so I thought it is better to refer original Google page. Tomorrow, I want to do it.

14 Oct 2010
Total: 5hours
In the morning, I have done my work to develop flash contents. This week I don't have work instead of going to her office.
  1.  <Coding for chart> 2hours I still try to find coding for the chart. First I try to make a flash application but it is easy to use google chart tool. So I want to develop using cart tool. And I found JSON format source code. The following source code is a result.
  2. <Group Meeting> 1hour We discuss about next presentation. This time we don't use power point slide. So it will become difficult for me.
  3. <Update Class Diagram> 2hours I tried to update class diagram. However, it is hard to imagine about the class. Therefore, I realized we had better to discuss sequence diagram, and then we also update the class diagram. This way is easy to find the class.
Customer.cs (This is Customer class)
public class Customer
{
    private int id;
    private string name;

    public int ID {
        get { return id; }
        set { id = value; }
    }

    public string Name {
        get { return name; }
        set { name = value; }
    }

    public Customer() { }
 public Customer(int id, string name)
 {
        this.id=id;
        this.name = name;
 }
}

json.aspx.cs (C# behind code for .aspx file)
Customer myPerson = new Customer(1, "Pietschmann"); 
System.Runtime.Serialization.Json.DataContractJsonSerializer serializer = new System.Runtime.Serialization.Json.DataContractJsonSerializer(myPerson.GetType());
            MemoryStream ms = new MemoryStream();
            serializer.WriteObject(ms, myPerson);
            string json = Encoding.Default.GetString(ms.ToArray());

            Label1.Text = myPerson.ID.ToString();

13 Oct 2010
Total: 8hours
  1. <Research> 3hours I researched for Gmail API and Chart function. I found the library for Gmail, but I could not download here. The Wi-fi is very very strict. I think they have to consider about this problem. We requested many times, however this is never changed. Next, I try
  2. <Update UML Usecase> 3hours We discussed about Usecase diagram. Maybe we found the way of drawing. So, we will update description also.
  3. <Coding for chart> 2hours I search internet for the chart. I found the coding for converting to JSON format.


12 Oct 2010
Total: 8hours
  1. <Network documentation> 3hours We requested about improving network. After that, Teacher offered to think about configure Web Sever, which is running in ASP, PHP and JSP. So I started the documentation. The most big concern is security. I'm not sure, we can create secure web server.
  2. <Update Sitemap> 1hour I updated sitemap based on the page image. First, I finished the update sitemap, however before saving, data was gone. I learned the saving is very important.
  3. <Presentation> 2.5hours Today, we studied UML diagram. The teacher explained very well, so I understood finally. But we have to modify every UML diagrams.
  4. <Research> 1.5hour I researched Login status and Google mail API. I think about how to deal with mails more deaply.

11 Oct 2010
Total: 6hours

  1. <Group Meeting> 3hours I asked the project manager that I want to have a time to research and to improve my skill. I wondered I was selfish and I had too many requests, because he has also his plan. So next time, I wanted to reduce my comments.
  2. <Research> 3hours I got one more project, which is to develop web server for our project and client.This is good for us, but I don't know I took time or not. Anyway, I tried to do this project also.

Saturday 9 October 2010

Week-05-CRM

10 Oct 2010
Total: 6hours
  1.  <Documentation and research> 1.5hours I wrote Journal and blogs. After that I searched about the chart. First, I want to use flash, but also there is google API for creating chart. I wonder which is good. Anyway I try to create flash chart today.
  2. <Group meeting> 4.5hours We discussed about reminder function. This time also we imagine different things, so first we tried to get same image to the reminder. And I want to get more time for individual skill up. Recently, we discuss whole day, which is good but actually, I am exhausted. Because I have a job, so I cannot do only this project. I want to suggest to have more personal time.
  I think we don’t need to hurry going on the project so much. Of course, time is limited, but the most important things are we estimate how much we can create during this duration based on the requirements. But it is difficult for me to explain and understand to team members. If I had good English communication skill, I would tell them more.... Anyway, all the best!

    09 Oct 2010
    Total: 2hours
    Today I went to the interview again, he explained the system, which he wants to create. The duration is only 1 and half month. I wonder I can do  or not, but I want to try to do it.
    1.  <Group meeting> 2hours We had a meeting about update case and deactivate case. After that we talked reminder function, in this time also we imaged different from the word of 'Template'. English is not our mother language, that's why it is also difficult for us to get same idea of the same system.

    08 Oct 2010
    Total: 6hours
    1.  <Group meeting> 5hours We discussed about template. Today, we have done manage client and manage case, which are main functions for our system, so we can understand more deeply. Sometimes, we misunderstand what other people said, so this time meeting is very important.
    2.  <Template image> 1hour After group meeting, I created template image using visio. Even I create details, sometimes other person understand different. Hopefully, we will achieve the goal to get same image of the system.


    07 Oct 2010
    Total: 8hours
    1. <Research> 2hours Today I learned my job and our project. One is contents management system and another is Actionscript. I want to draw chart in our application, so I tried to find how to draw chart using Flash, but I haven't find it.
    2. <Group Meeting> 5hours We discussed Activity diagram based on the page image. And then our image became same. Sometimes I missed understand the meaning, because everyone has different background, that's why it is difficult to imagine same system. I need to get skill to explain my image to other people well. Actually, I really understand the most valuable skill in IT is experience, because if I explain many times, other people cannot understand until they will feel regret, also I felt same thing in Japan. Of course my explanation is not enough, however, they cannot imagine why we should do and why we shouldn't do. Anyway I want to enjoy this project!
    3. <Draw diagram> 1hour After group meeting, I wrote Sequence diagram and Class diagram. In the academic UML, the diagram is totally different, which I have ever seen. So I am still confused. I hope we will find idea of those diagrams:)



    06 Oct 2010
    Total: 6.5hours
    I got e-mail from my interviewer, so I will go to his office and discuss his project. When I talk to native English people, I realized I have to improve English. Because if I have a good idea, I can not tell them properly.
    And also I went to the current job only 1 hour. I showed my flash and got data source. She is happy with my work, so I feel relief.
    1. <Client meeting> 1.5hour We met our client, and asked about her usually work, because our system is CRM system, so to understand client's business is the most important thing. I don't know New Zealand tax system. Therefore, it is difficult for me to understand her usual work. I got some of them, however I might missed other things. Anyway we got an idea of the unclear area, so we can continue to develop system.
    2. <Group meeting> 5hours We discuss about ERD and page layout. Now we found good way, which is to discuss page layout and function details based on ERD. We could found difference between page function and ERD. After that, we will draw activity diagram based on page layout!


    05 Oct 2010
    Total: 5hours
    Finally, I have finished the test, which is given by my interviewer. So I submitted by 1pm. However, I got feedback from him at 6pm and he said to me there were some mistakes. Therefore, I have to submit updated version. If I get a job, I wonder I can do both project and the job. But it is a good chance to me to understand my skill level in the industorty.
    1. <Practice for presentation> 2hour We practiced for the presentation, but I have to do the test. This time, I couldn't corporate to other members. I felt sorry. And now I understood what is needed in my presentation. I really want to improve my presentation skills.
    2. <Presentation meeting> 2hour Today, we have a presentation and we can get information of other projects. Now every projects are going on, so it is interesting. If I have a time, I want to do another project also. In this semester, there are many interesting projects. Of course I'm happy with my project, because my teacher is very good and he has fantastic knowledge, what's more he has well business communication. So, I want to learn those from him as much as possible.
    3. <Group meeting> 1hour We have a feedback of ERD. This is a few problem, but overview is OK! So it is good start to design system. And we gradually have an image of our system.  

    04 Oct 2010
    Total: 6hours
    I haven't finished interview's test. The due date is 05/10 by 5 pm.  I really want to finish this test.
    1. <Group meeting> 1hour We reviewed our UML diagram, and we realized we misunderstand some UML diagrams. So, we need to learn about UML diagram more.
    2. <Template image> 4hour I have done creating templates using Visio. This time based on the our paper prototype. So now we can reduce time to developing.  
    3. <ASP.net with jQuery> 1hour I found solution using jQuery in ASP.net. Solution is following. Now I have a confidence of using jQuery in ASP.net.
    • Don't use "runat = server"
    • Don't use src for the "~" mark

      Monday 4 October 2010

      Week-04-CRM

      3 Oct 2010
      Total: 2 hours
      Today I went to interview and to get task, which develop the website within 48 hours. 
      1. <Usecase description> 2hours We created Usecase description, however it needs still to update, because we don't get all information yet. I have learned UML in Japan, but this UML diagram is completely different. So I am still confused. Hopefully, we can get clear idea for the UML diagrams!


      2 Oct 2010
      Total: 5hours
      1. <Group meeting> 5hours We had a meeting to talk about the structure of the presentation, sitemap, paper  prototype, design of the page and ER diagram. Recently we were talking a lot. It is very hard for me to explain my thought. Usually, I could not explain well, so sometimes we were very confused each other. Maybe I need to talk more, however I don't have enough energy:) 
      To do list
      • Create Usecase description
      • Make template
      • Modify ER diagram
      • Update Journal
      • Update blog
      I have a lot of stuff!

      1 Oct 2010
      Total: 5hours

      In this morning, still I was doing Japanese website design. I could learn how to use fireworks, which is very handy.
      1. <Group meeting> 5hours We discuss about activity diagrams and presentation structure. When we reviewed activity diagrams, we realized word definition is very important. For instance, we discuss about time sheet, which records how long accountants take time to a particular client. However, some people thought that is time card, which keep to record how many hours accountants work. Therefore, we lost the point of talking. After meeting, I thought we progress well. Anyway, I was totally exhausted.
      2. <Activity diagram> 1hour After reviewing, I revised activity diagrams. Sometimes I forgot comment of the arrow, so I changed that. This time, there are not so many corrections.
      3. <Install Anti-virus software> 1hour Now our server has very important information, and we connect our PC with using LAN. Therefore, I installed anti-virus software in the server. After installation, server could not see from our PC because of firewall. So I will change the setting.

      30 Sep 2010
       Total: 4hours

      Now I have two jobs, one is flash development and another is Japanese web site design. In the latter job, I have to create design short time. So during this time, I'm busy, but it is good experience. 

      1. <Group meeting> 2hours We discussed about the client meeting. Main person will go overseas for 3 weeks, but we cannot meet him before going. Instead of him, we can meet his wife, so we hope we will have a good time with our client.
      2. <UML Activity diagram> 1hour I revised Activity diagram, because I have some mistake. And sometimes I have grammatical mistake:)
      3. <SQL server setting> 1hour  I have connection problem of SQL server for 2 weeks. Finally, I have soluition for the problem. The solution is following.
      SQL Server setting solution
      When you try to connect from Visual studio,
      • Server name : IP address (Server name sometimes cannot connect )
      • Authentication : Server authentication (In SQL server, default setting is only Windows authentication. Therefore, we have to change setting to allow both authentications. )

      29 Sep 2010
      Total: 8hours
      1. <UML Usecase> 4hours We created UML Usecase, and then reviewed those diagram. After that, our teacher checked our Usecase diagram. This time, he said to us this is OK, but it is not final version. Maybe this diagram will be growing up, because we have not gotten every requirements yet.
      2. <Group meeting> 2hours We reviewed Usecase diagram after that our teacher checked them. Mainly, there is OK, so we started writing one Activity diagram and then we checked our activity diagram. This time they seem well.
      3. <UML Activity diagram> 2hours  I draw Activity diagram for system administrator. This is not so difficult. Therefore, I didn't take long time. But maybe we haven't recognized all functions.

      28 Sep 2010
      Total: 9hours
      1.  <Prepare Presentation> 4hours We practiced about the presentation and also our teacher checked the presentation. His presentation skills are astonishingly well! I want to learn presentation skills from him. And humor is also important. I understand it, but it is difficult for me.  
      2. <Presentation> 2hours I joined the presentation, in this semester, we have only this class. Other time are totally free, however I come to school as much as possible. Our presentation took half one hour, lest of time are other team presentations. We practiced many times, but I need more practice, because sometimes I forgot what I have to talk. Next time, I will try to do my best:)
      3. <UML Usecase> 3hours We reviewed UML Usecase diagram. Actually, academic UML is different from I understood, so I was very confused. Finally, we got an idea of the UML. I hope it will be correct way.    

      27 Sep 2010
      Total: 9hours
      1. <Prepare Presentation> 4hours We prepared tomorrow's presentation many times. It is difficult to make a presentation, but I got an idea of the presentation. Because there is a technique. So, I want to get phrases as much as possible! 
      2. <Making Presentation> 2hours I Prepared for the presentation slide. This time I used not Power Point, that's why I took time to make presentation. Maybe it is the good experience.
      3. <UML Usecase> 0.5hour I updated Usecase diagram. We have finished almost all Usecase diagram.
      4. <SQL server setting> 0.5hours I have still connection problem and I don't know the reason. Therefore after tomorrow's presentation, I want to search the solution of that problem.
      5. <Meeting> 1hours We have a meeting with teacher and group member. Communication is the most important. I want to enjoy doing the project.