Clean Installation on Samsung Spica i5700

4 Comments

From my previous post, I shared about how to root Samsung Spica i5700 via kernel of LK2.02. Then, you guys are then able to extend your desire to install any well-known custom ROMs such as Samdroid, Cyanogen, etc. by applaying in the Recevery Mode. It is pretty easy for you guys to do, isn’ it? However, when you try to switch install back and forth with several custom ROMs with additional package, e.g. Intercept3D to draw the best quality of video displaying, you might find the problem that some component installed in one rom conflict to the other custom ROM to not get the best quality of your mobile phone. Then, it’s better to do clean install rather than apply the other custom ROMs to the existing custom ROM.This section will tell you about the procedure of doing clean installation as follows.

NOTE THAT: I will not be responsible for any damages happened to your phone during or after doing clean installation. Hence you must be sure that you really understand all procedure content to do clean installation. In addition, all procedure should be done on Windows XP.

Clean Installation Guide

  1. Flash back to original firmware
    Prerequisite 

    Step to do

    • Close a mobile phone and go in Download Mode by pressing the Volume Down + Camera + Power Button. Importantly, don’t put USB cable connecting between your notebook or PC and the mobile phone. Otherwise, it will go in Download Mode
    • Now, open Odin 4.03 and Press the Reser files button 1 time.
    • Connect the mobile phone to your PC or notebook by using USB cable. Now, it’s the time to check whether your PC or notebook has yet been installed Samsung Spica i5700 or not. If yes, on the COM Port Mapping and Message boxes should be able to recognize your mobile phone. For instance,
      1 (COM 7)
      on the COM Port Mapping with a colour highligthed backgound and
      <1> Added!!!
      <1>Detected!!!
      If not, go back to 4th prerequisite step to install your driver first.
    • On Odin 4.03Program On OPSselect spica3.opsOn One Packageselect your original firmwareOn Optioncheck One Package,Reboot and Protect OPS
    • Press Start ans wait for its operation util it shows “Close serial port and wait until rebooting” on the Message box. Note: For sometimes, “setup connection” is always shown on the message box and it stucks. For example,Download Start… Create File… StartThread Detected : 1 StartThread Detected : 0 StartThread Detected : 0 StartThread Detected : 0 StartThread Detected : 0

      StartThread Detected : 0

      StartThread Detected : 0

      StartThread Detected : 0

      setup connection…

      go to my previous post at the 6th step of Explanation of Root with Leshak kernel v.2.02 to solve a problem

    • Until you’ve got the status on your odin as the picture below. Then you can disconnect the USB between the mobile phone and your PC or notebook.
    • Finish at this section
  2. Install Kernel LK2.08
    Prerequisite  

    Step to do

    • It is the same as my previous at the section of Explanation of Root with Leshak kernel v.2.02 from 1st step til 7th step but the different is at the 5th step in which On PDA, you must select LK2.08 instead of LK2.02.
  3. Go in Recovery mode by pressing the Volumn Down + Call/Answer button + Power button and holding them for awhile during startup section.
  4. Choose to wipe data/cache.
  5. Then, apply your custom ROM in Recovery Mode such as Samdroid or Cyanogen as well.
    Prerequisite 

    • Custom ROM for Froyo 2.2: You can download it from http://www.samdroid.net at the development of Samsung Spica i5700 Section.

    Step to do

    • Note that, each cutom ROM has their own limitation to install. BETTER to clearly understand it.
    • Most of cases are downloading your custom ROM and place it in the first place of your SD card as the figure below. This figure represent that in this case we use SAMDROIDMOD 2.2.2 a9 as custom ROM
    • After that, shut your device down and go in Reovery Mode by pressing the Volumn Down + Call/Answer button + Power button.
    • After that, go to apply zip from SD.
    • Then choose your custom ROM.
    • Then press home button to execute.
    • Go to reboot system. Finally, Finish!

Finally, you got a custom ROM with doing clean installation. Then, you could absolutely get the best performance from your custom ROM on your mobile phone now. Enjoy 🙂

Reference:

http://www.thaiandroidphone.com/thread-198-1-1.html

http://forum.samdroid.net/f55/lk2-08-original-firmwares-root-new-superuser-wifi-tether-bb-12-07-2010-a-1193/

: Thank you very much for all necessary components to do clean installation

http://forum.samdroid.net/f56/cyanogenmod-6-1-0-rc1-spica-alpha7-5-discussion-feedback-bug-reports-3303/index14.html

http://forum.samdroid.net/f28/helpdesk-faqs-how-guides-2111/ : the other issues

http://samsungfw.wordpress.com/cyanogenmod-feedback/ : feedback

Add to FacebookAdd to DiggAdd to Del.icio.usAdd to StumbleuponAdd to RedditAdd to BlinklistAdd to TwitterAdd to TechnoratiAdd to Yahoo BuzzAdd to Newsvine

Treating XML input parameters of a SOAP request as a string

2 Comments

When I was doing a senior project with my friends before graduating, I faced a lot of problems that had never found in classes. One problem that I feel like we had no way to solve it is about an XML input parameter of SOAP request. Why? The structure of SOAP request is an XML document as the figure below. As such, when it’s being sent to desired web service, they will treat the SOAP request as an XML via the XML parser to extract the parameter for further uses inside the web services.

<?xml version="1.0" encoding="utf-8" ?>
<soap:Envelope
    xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <soap:Body>
     <SendCustomer xmlns="http://namespace">
       <customer_information>
	       <?xml version="1.0" encoding="utf-8" ?>
		     <customer>
				<id_card>123</id_card>
				<fname>abc</fname>
	         </customer>
	  </customer_information>
     </SendCustomer>
  </soap:Body>
</soap:Envelope>

It would be no problem, If the parameter inside, which is

<?xml version="1.0" encoding="utf-8" ?>
  <customer>
    <id_card>123</id_card>
    <fname>abc</fname>
  </customer>

of this SOAP request, is just an ordinary “string”. The problem is coming because the XML parser will extract the parameter inside as other XML elements by observing from < and & to understand that it’s element and entity of XML document respectively. It will, then, result to not being the structure of SOAP request anymore because of not just a simple string.
Anyway, if there is a problem, there will be solutions. The problem could be coped by telling the XML parser that I want you to treat the parameter as a string instead of treating it as an XML document. The way to tell it like that is to add

<![CDATA[ ...XMLDOC... ]]>

to the input string parameter as the figure below.

<?xml version="1.0" encoding="utf-8" ?>
<soap:Envelope
    xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <soap:Body>
     <SendCustomer xmlns="http://namespace">
       <customer_information>
		<![CDATA[<?xml version="1.0" encoding="utf-8" ?>
			<customer>
				<id_card>123</id_card>
				<fname>abc</fname>
			</customer>]]>
		</customer_information>
     </SendCustomer>
  </soap:Body>
</soap:Envelope>

CDATA is a section on an XML document that is only a character data and not be parsed by the XML parser. Then, it will treat the whole xml imput parameter as a string. Finally, the web services can interpret it.

Reference: http://www.w3schools.com/xml/xml_cdata.asp

Add to FacebookAdd to DiggAdd to Del.icio.usAdd to StumbleuponAdd to RedditAdd to BlinklistAdd to TwitterAdd to TechnoratiAdd to Yahoo BuzzAdd to Newsvine

Cloud Computing – Windows Azure Platform

Leave a comment

About two or three weeks ago, I went to a conference of “Microsoft Cloud Application Development using Visual Studio 2010” presented by Mr. Chalermvong Vijitpiyakul who is a Developer Technical Specialist and MVP of Microsoft. This event was held at MUICT Building, Mahidol University. From this event, I think I got a lot of knowledge about a cloud computing service given by Microsoft, Windows Azure Platform. So, I would love to spend my time to write this article and share the knowledge from what I got from this event. Anyway, I might write the wrong one, so I’m sorry for that and any suggestion is acceptable for me

Why Cloud Computing?


Let’s talk about the importance of a cloud computing. A cloud computing provider will provide a full set of storage, network, maintenance and availability, etc. over internet and let users deploy applications over there. So the users no need to invest a lot of money to buy the stuff about hardware, software and network without knowing whether they will really use them or not when the applications have been deployed. In addition, if the users don’t want to use it, they can close the service immediately. The cost of using the cloud service may be cheaper than we buy a lot of things including maintenance. Pay per use of the cloud service is used to keep service charge from customers.

Cloud Service’s Patterns


First of all, in order to give a cloud service to requesters, it’s necessary for those requesters to understand the “patterns” of the cloud service as follows:

  1. On and Off
    It’s analogous to a light switching in which if you want to use a cloud service at a point of time, you’re able to open the service. But if you don’t want to use it, just close it.
  2. Growing fast
    The amount of using a cloud service is gradually increased.
  3. Unpredictable Bursting
    There is one triggered event without recognizing beforehand that causes the amount of using a cloud service is a lot. For instance, at that time, there is nobody going outside his/her residence because of an influenza event or something. So E-commerce will be used a lot for the people who don’t want to go out for ordering things and send them directly to home.
  4. Predictable Bursting
    When any predictable event is coming such as Christmas period or etc., a cloud service is able to handle a peak period of using the cloud service. The way to know this kind of event is to use a statistic.

Cloud Service Type


Next, to indroduce a cloud service type, there are 3 types as follows:

  1. IaaS (Infrastructure-as-a-service)
    This service is to give you ability of providing a servers, networking, storage (hardware layer) over the Internet whose advantage is that we can use a lot of hardware resources such as RAM,CPU, etc. from different hosts to process specific problems with one another so that the problems can be operated very fast. It’s called virtualization. Moreover, it will let user choose which OS should be installed in servers and which DBMS should be use in order to match with our readily installed softwares in order to process or operate works/problems , etc.
  2. PaaS (Platform-as-a-service)
    This service is to hide the complexity of IaaS has about how many servers that I should deploy or how much storage should be used for our applications (Software layer) and let people easily deploy the applications without thinking about the whole structure as IaaS. Anyway, OS and application server stack such as PHP, JAVA, etc must be configured by yourself as well as Database software. One of this service provider that I’m going to focus on is “Window Azure Platform”.
  3. SaaS (Software-as-a-service)
    This service is to give you a web-based software over the Internet. Hence, this software can be accessed from anywhere from your PC or even mobile phone. It’s as if we use an Microsoft Word in a web browser so the Microsoft Word’s file no need to maintain by ourselves. In contrast, if we use Microsoft Word in PC or notebook, the file must be kept by users and it’s risky to be disappered due to harddisk broken, etc.

 

    Window Azure Platform


    There are 3 service components that we must understand before going to use Window Azure Platform.

  1. Windows Azure – A powerful computing service for applications.
    It can be seperated into 3 main components 

    • Compute (Machine) – Provides application scalability. It’s replicated as needed to scale the applications and computational processing power.
    • Storage – Allow users to store data any length and format of time and the users must pay for them
    • Fabric – control works happened between Compute and Storage and it works with “Fabric controller” who control the accessing of resources and communicating with all data centers.
  2. SQL Azure – It’s a DBMS of SQL server but it’s run on the cloud.
  3. Windows Azure platform AppFabric – It’s used for communication between applications and cloud, and
    importantly, control access for applications.

Reference: http://www.qrimp.com/blog/blog.The-Difference-between-IaaS-and-PaaS.html
http://www.qrimp.com/blog/blog.The-Difference-between-IaaS-and-PaaS.html
http://ezinearticles.com/?IaaS-Vs-SaaS-Vs-PaaS:-The-Differences-in-Cloud-Computing&id=5519584

Window Azure Marketplace


Next thing, how we are going to make money from this cloud service. One thing that you can do is to publicly sell inportant data that is usable for some specific applications. For instance, you have all English word data in our database on the cloud and then there is one company wanting to do the “Dictionary Application” on the cloud as well. Then, you can sell the data to the company building Dictionary Application as one requested word to our database per .001 cent something like that. In this scenario, it could happen on “Windows Azure Marketplace”

Windows Azure Platform Appliance


However, instead of using Windows Azure Platform in a cloud, we can locally use it at your home as a private cloud computing. This ability is provided by Windows Azure Platform Appliance.

Platform Portal & AppFabric Environment


When we want to configure the cloud component running and operating in the way as we want, “Platform Portal” in Window Azure will allow you to do those jobs. In the Windows Azure Platform, the operating can be run up to 99% availability in the AppFabric environment in which the processing nodes will be reserved 3 nodes at least for server or database nodes as usual.

REST protocol


It’s used to address the resource in the meaningful way. For instance, the URL in the data format as pomzung.wordpress/2010/12/30 so we could implicitly understand if this is activated, it will open the article in December 30, 2010 of pomzung blog. When we compare with the old representation one such as pomzung.wordpress/content?id=”23423″, it’s so hard to understand.

Encode/Decode Base64 (8 bits)
It’s an encoding which convert the binary data into printable characters or texts in order to send it through network (bit by bit).
 
64 characters to encode and decode
+-[a-z][A-Z][0-9]
 
Reference:
http://stackoverflow.com/questions/4070693/why-base64-encryption

Importance of Windows Azure Platform
It’s a protocol used to communicate and exchange information between Windows Azure SDK for a specific language used to develope a deployed application and Windows Azure

Affinity


In a cloud computing, it’s a necessary to set a location between databases and deployed applications closely in order to faster communicate with one another. It calls the databases and deployed application as the same affinity group.

Others


Content Delivery Network (CDN)

Copies contents, consisting of media, downloadable objects, etc., and place to near servers of that user in order to reduce bottleneck for communication across the world instead of communicate with only one central server.
Reference: http://en.wikipedia.org/wiki/Content_delivery_network
 
Windows Azure Platform Training Kit

A tool helping beginners easily understand Window Azure Platform

Certificate of Windows Azure

In order not to require to enter username and password all the time when we ‘re logging in Window Azure Platform by using IIS

For more information:
http://www.mrmie.com/Blogs/Default.aspx

All in all, by introducing the overview of cloud computing as well as Windows Azure Platform, I hope you guys being able to get some ideas when to use cloud technology. Especially, the Windows Azure could be one important choice for you to run applications on cloud technology.

Add to FacebookAdd to DiggAdd to Del.icio.usAdd to StumbleuponAdd to RedditAdd to BlinklistAdd to TwitterAdd to TechnoratiAdd to Yahoo BuzzAdd to Newsvine

Rooting with Samsung Spica i5700

1 Comment

Introducing one of a smart phone using Android Platform which is developed from the Linux Operating system is Samsung Spica i5700. First time, Samsung Spica i5700 doesn’t get all authorization to alter something inside as same as Linux has “sudo” showing that we use a full authorization now in which any command can be operated under sudo. Analogously to sudo in Linux command, the mobile phone must be “rooted” to get all full authorization under android platform. Now, I will teach you step by step how to root your Samsung Spica i5700 in order.

Note: I will not be responsible for any damages happened to your phone during or after rooting. Hence you must be sure that you really understand all rooting content.


Prerequisite

  1. Please, do rooting on Windows XP
  2. Debugging mode is required to be enable. To do this, Go to Settings –> Applications –> Development –> USB debugging
  3. Your mobile phone should already have been ROM 2.1 DXJC4. Others aren’t guaranteed.
  4. The driver of Samsung Spica i5700 is required for Windows XP Install by downloading from this link. The following is the instruction of installing the driver
    1. Extract the zip
    2. Put USB cable already attached with Samsund Spica i5700 in USB port of your PC or notebook
    3. On Windows XP, do as follows:
      1. Right Click at Computer –> Propoerties
      2. Choose Hardware tab –> in the submenu, choose Device Manager
      3. Go and search the ? icon of Samsung Spica i5700
      4. Right Click –> Update Driver
      5. Three Options that let you choose for the “Can windows connect to Windows Update to search for software” question, choose “Yes,this time only”
      6. The question “If your hardware come with an installation CD or Floppy disk, insert it new” with “What do you want the wizard do” –> choose “Install from a list or specific location”
      7. Then you choose a location of the driver folder that you extracted it from the zip and go through one step of the folder. It will then show three folders which are
        • Modem
        • Ports
        • USB
      8. From now on, you might try by yourself which folder or their subfolder is able to be installed at first.
      9. Then, go back to step iii. and do until all 3 folders have been installed.

    NOTE: Sometimes, during installation of driver, it might not find its wanted file, you have to find for it by choosing a file being in one of three folders of the driver folder.

    Reference: http://www.ehow.com/how_4921037_update-display-drivers-windows-xp.html

  5. Required Programs


Explanation of Root with Leshak kernel v.2.02

  1. Place the file named LK2-02_update+ring_link_solve_by_earthchie.zip on the outramost folder of SD card on your mobile phone.(Not in any subfolder on SD card)
  2. Close a mobile phone and go in Download Mode by pressing the Volume Down + Camera + Power Button. Importantly, don’t put USB cable connecting between your notebook or PC and the mobile phone.
  3. Now, open Odin 4.03 and Press the Reser files button 1 time.
  4. Connect the mobile phone to your PC or notebook by using USB cable. Now, it’s the time to check whether your PC or notebook has yet been installed Samsung Spica i5700 or not. If yes, on the COM Port Mapping and Message boxes should be able to recognize your mobile phone. For instance,
    • 1 (COM 5)
      on the COM Port Mapping with a colour highligthed backgound and
    • <1> Added!!!
      <1> Detected!!! If not, go back to 4th prerequisite step to install your driver first.
  5. On Odin 4.03 Program
    • On OPS
    • select spica.ops

    • On PDA
    • select i5700_LK2-02_PDA.tar

    • On Option
    • check Reboot and Protect OPS

  6. Press Start ans wait for its operation util it shows “Close serial port and wait until rebooting” on the Message box.Note: For sometimes, “setup connection” is always shown on the message box and it stucks. For example,

    Download Start…
    Create File…
    StartThread Detected : 1
    StartThread Detected : 0
    StartThread Detected : 0
    StartThread Detected : 0
    StartThread Detected : 0
    StartThread Detected : 0
    StartThread Detected : 0
    StartThread Detected : 0
    setup connection…

    • Close Odin 4.03 and open it again
    • Choose all options as same as step 5. Anyway, don’t yet press start
    • Disconnect USB cable between your mobile phone and your PcC or notebook
    • Remove the battery out and put the battery in again from your mobile phone
    • Go to Download mode by pressing the Volume Down + Camera + Power Button
    • Connect USB cable
    • Press start on Odin 4.03
  7. You can solve this problem by follows:

    Reference: http://www.thaiandroidphone.com/thread-70-1-1.html

  8. Now you can disconnect the USB between the mobile phone and your PC or notebook. Your mobile phone is now rooted with LK2.02 after rebooting.
  9. Now, we want to add extra package by LK2-02_update+ring_link_solve_by_earthchie.zip to better in kernel. So you need to shut your mobile phone down.
  10. Go in Recovery Mode on the mobile phone by pressing the Volumn Down + Call/Answer button + Power button and holding them for awhile during startup section.
  11. After, the mobile phone is now on Recovery Mode, choose Apply any zip from SD by pressing the arrows to go up or down and press ok to choose Apply any zip from SD.
  12. It will show SD CARD : LK2-02_update+ring_link_solve_by_earthchie.zip. Then, press OK. If it doesn’t show, it represents that you haven’t completed the 1st step.
  13. Press home for comfirmation and wait for it to complete.- choose Reboot system now or press Home + Back for rebooting
  14. Finish !

Now, your mobile phone can do a lot of things more than an unrooted phone. Especially, the features available for you after rooting are

  1. App2SD – install application inside your SD card, not internal memory on your mobile phone
  2. Screenshot – let you be able to capture screen on your mobile phone. No need to use Android Development Tools (ADT) on Eclipse to capture it anymore.
  3. Custom ROM for Samsung Spica i5700 – Many features available including multitouch! A well-known one is “CyanogenMod
    See: Samdroid

Credit: http://www.thaiandroidphone.com/thread-198-1-1.html

http://forum.samdroid.net/

Last but not least, You may be surprised it why I shouldn’t have done with it as soon as possible because it’s very easy to do,right? (I hope :)). I hope you are enjoy with your new rooted phone of Samsung Spica i5700 with several new features in which they’re only provided for a rooted user.

Add to FacebookAdd to DiggAdd to Del.icio.usAdd to StumbleuponAdd to RedditAdd to BlinklistAdd to TwitterAdd to TechnoratiAdd to Yahoo BuzzAdd to Newsvine

Running MPICH2 on Ubuntu with a Single Host

2 Comments

MPICH2 is one of parallel programming that it’s usually used in a cluster. Sometimes, we might ask how to install it with a single host because of studying purpose in order to easily get familiar with MPICH2 via your notebook or PC. Hence, I would like to introduce you how to install MPICH2 on the OS of Ubuntu running on a single host.

 

Prerequisite

  1. Install the C compiler by using Terminal and type as following:
    sudo apt-get install build-essential
     
    followed by your administrator password

  2. Link: HOW to INSTALL C Compiler on ubuntu OS

  3. Install Python 2.7
    sudo apt-get install python2.7
    followed by your administrator password
  4. libssl-dev package for SMPD by using Synaptic Package Manager. Then, search and install it.
  5. (Optional) Fortran by using Synaptic Package Manager. Then, search and install the followings:
    • libcnf-dev
    • gfortran-multilib
    • gfortan-4.4-multilib

Instruction for MPICH2 Installation

  1. Download mpich2 from this. The downloaded file has extension file named .tar.gz
  2. Extract the tar xfz of mpich2 by using Terminal and typing the command
    tar xfz <the zip name>  


    Then, go to that directory by cd

    cd <the filed extracted from the zip name>

    or using GUI of Ubuntu to extract
     

    Then, enter the following command:

    ./configure –prefix=/usr/local –enable-cxx –enable-debuginfo –with-device=ch3:nemesis –with-pm=smpd –disable-f77 –disable-fc
     

    Description :

    • –prefix is equal to the folder location that you want to install the MPICH2
    • –with-pm is an option to choose what a process manager you want to use for MPI and I choose smpd and it works! However, there are additional PMs such as mpd,hydra and gforker but i don’t know how to configure to be usable for MPICH2
    • –with-device = a communication device in which “nemesis” is the best

    Note: 4th step of the prerequisite procedure –> if it’s not completed, you must include –disable-f77 and –disable-fc on the command

  3. Type
    • sudo make
      followed by your administrator password
    • sudo make install
      followed by your administrator password
  4. Restart is required
  5. Then Compile
     
    mpicc -o <execute filename> <compiled filename>

     
  6. Before run, you have to make smpd start by
    smpd -s
     

    Note: 

    • For the first time, it will ask the “pharse”, so you can enter any number. Then it would be kept on the file named .smpd at your home directory. Then, it’ll ask would you like to save this phrase in ‘home/your/.smpd’ so you press y then enter.
       
    • It may be necessary for using several computers to compute the same job via smpd as their process manager if the other computers have the same pharse as the master is
    • It’s required Internet Access, so it is a must to open internet connection
  7. Then run by
    mpiexec -np <execute filename> <compiled filename>  

    or

    mpirun -np <number of process> <executed filename>

More information: http://www.mcs.anl.gov/research/projects/mpich2/index.php

All in all, you can finally run MPICH2 on your notebook or PC without requiring a complex cluster. Life is easier with MPICH2.

Add to FacebookAdd to DiggAdd to Del.icio.usAdd to StumbleuponAdd to RedditAdd to BlinklistAdd to TwitterAdd to TechnoratiAdd to Yahoo BuzzAdd to Newsvine