Tuesday, 6 March 2012

Hello to Myself

Hello To Myself Lyrics (Dream High 2 OST) – YeEun (Wonder Girls)

Hello yeo-gin icheonshibinyeon iworaju chu-un gyeou-riya
Where are you eolmana kakka-i wah i-nni
keutorok wonhadeon kkume

yeo-gi nan ajing neomeojigo tto ul-ko
dachigo jichyeoseo i-reoseol himjocha eop-seo
keuchiman neon nal bogo utket-ji

Hello to myself hello to myself ul-ji malla-go nal wiirohaeju-llae
Hello to myself hello to myself hal su it-da-go neo marhaeju-llae
Hello hello ul-jima Hello hello i-reona

How are you eotteon-i kkumeurirundaneun geon cheongmal kkojibeodo apeuji
anh-ni
eocheomyeon ijen ne-gen pyeongbeomhan il-sangira ttaeron jikyeomni
hokshi neodo wehrob-go jichimyeon yeo-gi kkumkkudeon nal giyeo-khaeju-llae

Hello to myself hello to myself yeo-gi nal saenggakhamyeo useo ju-llae
Hello to myself hello to myself gaseum beokcha-ge haengbo-khae ju-llae
Hello hello useobwah Hello hello keureohke

Hello to myself hello to myself
yeo-gi nal saenggakhamyeo useo ju-llae
Hello to myself hello to myself
kkumkkudeon nari-jji maraju-llae

Translation:
Hello, this is February 2012, a very cold winter
Where are you - how close are you
To the dream that I wanted so bad?

Here, I'm still falling and crying again
I'm hurt and tired and have no strength to get up
But you would probably see me and smile

Hello to myself hello to myself
Will you comfort me, saying don't cry?
Hello to myself hello to myself
Will you tell me that I can do it?
Hello hello - don't cry - Hello hello - get up

How are you - how is it to fulfill your dream?
Doesn't it hurt when you pinch yourself?
Or is it sometimes boring because it's become a normal routine for you?
If you ever get lonely and tired, will you remember me, who used to dream here?

Hello to myself hello to myself
Will you think of me here and smile?
Hello to myself hello to myself
Will you be happy to the point where your heart overflows?
Hello hello, smile - Hello hello, just like that

Hello to myself hello to myself
Will you think of me here and smile?
Hello to myself hello to myself
Will you not forget me, who used to dream?

SPFile Class Vs SPList

From : http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfile.aspx

SPFile Class

SharePoint 2010
This topic has not yet been rated Rate this topic
Represents a file in a SharePoint Web site that can be a Web Parts page, an item in a document library, or a file in a folder.
System.Object
  Microsoft.SharePoint.SPFile
Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
[SubsetCallableTypeAttribute]
public class SPFile
Use the GetFile or GetFileAsString method of the SPWeb class to return a single file object. Otherwise, use the Files property of either the SPWeb or SPFolder class to return an SPFileCollection object that represents the collection of files for a site or folder. Use an indexer to return a single file from the collection. For example, if the collection is assigned to a variable named collFiles, use collFiles[index] in C#, or collFiles(index) in Visual Basic, where index is the index number of the file in the collection, the file name including extension, or a Web site relative, site collection relative, or absolute URL.
This example adds a file from the document library of one site to the Shared Documents document library of another site and its subsites.
For an example that shows how to upload a local file to a folder on a SharePoint site programmatically, see How to: Upload a File to a SharePoint Site from a Local Folder.
SPSite oSiteCollection = SPContext.Current.Site;
SPWeb oWebsiteSrc = oSiteCollection.AllWebs["Source_Site_Name"];
SPWebCollection collWebsites = 
    oSiteCollection.AllWebs["Destination_Site_Name"].Webs;

SPFile oFile = oWebsiteSrc.GetFile("Source_Folder_Name/Source_File");
string strFilename = oFile.Name;
byte[] binFile = oFile.OpenBinary();

foreach (SPWeb oWebsite in collWebsites)
{
    if (oWebsite.GetFolder("Shared Documents").Exists)
    {
        SPFolder oFolder = oWebsite.GetFolder("Shared Documents");
        oFolder.Files.Add(strFilename, binFile, true);
    }
    oWebsite.Dispose(); 
}
oWebsiteSrc.Dispose();
NoteNote
Certain objects implement the IDisposable interface, and you must avoid retaining these objects in memory after they are no longer needed. For information about good coding practices, see Disposing Objects.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Saturday, 3 March 2012

New week, NEW JOB

Hi!
I've been travelling for the time eing. Penang-johor-penang-shah alam-penang-vietnam...fuhhhh what a tough month. So, back to the office work keep on increasing just like an exp graph. :( sigh
 now, i need to solve the linkage between FMEA-Control whichj i thought had long resolve. Hahaha..being management is such a GREAT thing when they can say a DONE work is still NOT DONE and NOT SATISFYING. :( sigh

Ok, back to what i want to complete this week :
first i need to change the FMEA + Control Plan + SPC to become a two way data entry.This will be done by changing the dropdown to a combobox, and adding this codes :

public void school_Changed(object sender, XmlEventArgs e)
{
  using (SPSite FormSite = new SPSite(ServerInfo.SharePointSiteUrl.ToString()))
  {
    using (SPWeb FormWeb = FormSite.OpenWeb())
    {
      //Get the list and query for the item - "Schools" is the name of the list I am retrieving
      SPList LookupList = FormWeb.Lists["Schools"];
      SPQuery MyQuery = new SPQuery();
      //"Title" is the field where I keep the school name
      ///my:myFields/my:school is the xpath to the school field
      MyQuery.Query = "<Where><Eq><FieldRef Name='Title' /><Value Type='Text'>" + GetDomValue("/my:myFields/my:school") + "</Value></Eq></Where>";
      SPListItemCollection ReturnedItems = LookupList.GetItems(MyQuery);
      //Add the item to the lookup list if no items were returned in the query
      if (ReturnedItems.Count == 0)
      {
        SPListItem NewItem = LookupList.Items.Add();
        ///my:myFields/my:school is the xpath to the school field
        NewItem["Title"] = GetDomValue("/my:myFields/my:school");

Then Walla!

Next i want to change the inner e form of FMEA to a more user friendly thing. That one need some brainstorming. Last time i just use email alert, this time...errrr~ dont know yet.

Last thing is to revamp the control plan form. hmmmm :( sigh.
Its STILL A BIG FAT BLURR~