Working With Parallel Plesk Panel ...
Creating new MySQL Database User on Plesk
Monday, March 28, 2011
min that thant
WordPress error : The uploaded file could not be moved to .
Wednesday, March 23, 2011
min that thant
Error
Add media files from your computer
The uploaded file could not be moved to /var/www/vhosts/myanmarbeginner.com/subdomains/zayyaroo/httpdocs/wp-content/new_folder.
Now Solved ..
1. Delete uploads folder (wp-content/uploads) by using FTPclient
2. Recreate "uploads" directory with CHMOD 777
That's all ! Cheers !
The row value(s) updated or deleted either do not make the row unique or they alter multiple rows.
Tuesday, March 22, 2011
min that thant
ဒီ error ကတော့ database table အတွင်းက Duplicate data တွေကို ဖျက်တဲ့ အခါပေါ်လာတဲ့ error ပါ. ဘာလို့ပေါ်လာလဲ ဆိုတော့ Table တွေ ဆောက်ကတည်းက ကျွန်တော်က PK ကို သတ်မှတ်မပေးခဲ့ဘဲ ဒီအတိုင်း ဖြစ်သလို ဆောက်ထားခဲ့တာတွေကြောင့်ပါ .. အဲဒီအခါမှာ ကျွန်တော်တို့ Window Form application တွေကနေ တဆင့် Data တွေကို ADO သုံးပြီးသွင်းတဲ့အခါမှာ Database ထဲကို တပုံစံတည်း Duplicate ဖြစ်ပြီး ၀င်သွားတာဖြစ်ပါတယ် .. အဲဒါတွေက loop တွေ ပတ်ရင်း error တက်တဲ့ အခါမှာ ဖြစ်တတ်ပါတယ်..
ဖြေရှင်းနည်း ၃ နည်းရှိတဲ့ အထဲက အောက်က ဟာကတော့ အလွယ်ဆုံးနည်းပါပဲ .. တူနေတဲ့ duplicate data တွေကို ပြန်ဖျက်တာပါပဲ .. ဒီ script လေးကို Execute လုပ်ပေးရင် ရပါပီ..
SET ROWCOUNT 1
DELETE FROM data_table
WHERE column_name = '333'
More info => http://geekswithblogs.net/allensb/archive/2006/07/27/86484.aspx
Getting Data from SQL server by using WCF
Tuesday, March 22, 2011
min that thant
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
namespace WCF_DataLayer
{
[ServiceContract]
public interface IService1
{
[OperationContract]
ListGetWCFdata();
[OperationContract]
void SubmitData(WCF_Data myData);
[OperationContract]
ListGetDataFromServer();
[OperationContract]
void SetWCFdata(WCF_Data myData);
}
[DataContract]
public class WCF_Data
{
[DataMember]
public string uname
{
get;
set;
}
[DataMember]
public string address
{
get;
set;
}
[DataMember]
public int phone
{
get;
set;
}
}
}
Service1.svc
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.Data;
using System.Data.SqlClient;
namespace WCF_DataLayer
{
public class Service1 : IService1
{
ListDataToSave = new List ();
public ListGetWCFdata()
{
ListmyData = new List ();
SqlConnection conn = null;
SqlCommand cmd = null;
SqlDataReader sdr = null;
try
{
conn = new SqlConnection(@"server=zayyaroo\shop1;database=test;
uid=sa;pwd=123;");
conn.Open();
cmd = new SqlCommand("SELECT * FROM WCF_data", conn);
sdr = cmd.ExecuteReader();
while (sdr.Read())
{
WCF_Data data = new WCF_Data();
data.uname = sdr["uname"].ToString();
data.address = sdr["address"].ToString();
data.phone = int.Parse(sdr["phone"].ToString());
myData.Add(data);
}
}
catch (Exception ex)
{
throw ex;
}
finally
{
if (sdr != null)
sdr.Dispose();
if (conn != null)
conn.Dispose();
if (cmd != null)
cmd.Dispose();
}
return myData;
conn.Close();
}
public void SubmitData(WCF_Data myData)
{
DataToSave.Add(myData);
}
public ListGetDataFromServer()
{
return DataToSave;
}
public void SetWCFdata(WCF_Data myData)
{
SqlConnection connection = new SqlConnection(@"server=zayyaroo\shop1;
database=test;uid=sa;pwd=123;");
connection.Close();
connection.Open();
SqlTransaction tran = connection.BeginTransaction();
SqlCommand command = new SqlCommand("INSERT INTO [WCF_data](uname,address,phone)"
+ "VALUES(@uname,@addr,@phone)", connection, tran);
try
{
command.Parameters.Add("@uname", SqlDbType.NVarChar, 50).Value = myData.uname.ToString();
command.Parameters.Add("@addr", SqlDbType.NVarChar, 50).Value = myData.address.ToString();
command.Parameters.Add("@phone", SqlDbType.Int).Value = int.Parse(myData.phone.ToString());
command.ExecuteNonQuery();
tran.Commit();
}
catch (Exception ex)
{
throw ex;
}
finally
{
connection.Close();
}
}
}
}

Form1.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WinForm
{
public partial class Form1 : Form
{
ServiceReference1.Service1Client svcClient = null;
ServiceReference1.WCF_Data oneData = new
WinForm.ServiceReference1.WCF_Data();
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
svcClient = new ServiceReference1.Service1Client();
svcClient.Open();
}
private void btnAdd_Click(object sender, EventArgs e)
{
oneData.uname = tbUname.Text;
oneData.address = tbAddr.Text;
oneData.phone = int.Parse(tbPhone.Text);
svcClient.SubmitData(oneData);
svcClient.SetWCFdata(oneData);
}
private void btnSend_Click(object sender, EventArgs e)
{
dataGridView1.DataSource = svcClient.GetDataFromServer();
dataGridView2.DataSource = svcClient.GetWCFdata();
}
private void Form_closing(object sender, FormClosingEventArgs e)
{
svcClient.Close();
svcClient = null;
}
}
}
Idea come from .. http://www.a2zdotnet.com/View.aspx?Id=110
Social network or Buddypress and me
Monday, March 21, 2011
min that thant
Posted in
wordpress
Download failed. Could not create temporary file. (Wordpress install plugin error)
Sunday, March 20, 2011
min that thant

Wordpress မှာ new plugins တွေ install လုပ်တဲ့ အခါမှာ ပေါ်လာတတ်တဲ့ error ပါ..
Downloading update from http://wordpress.org/wordpress-2.8.6.zip.
Download failed.: Could not create Temporary file
Installation Failed
ဒီအတွက် ကျွန်တော်တို့ wp-content folder ရဲ့ CHMOD ကို 755 ကနေ 777 ကို ပြောင်းပေးလိုက်ရင် ရပါပြီ. အားလုံး တင်ပြီးရင်တော့ 755 ကို ပြန်ပြောင်းပေးလိုက်ပါ..
ဒါကတော့ FileZilla ကို သုံးထားတာ ဖြစ်ပါတယ်..
More info => http://www.winhelponline.com/blog/wordpress-automatic-upgrade-error-could-not-create-temporary-file/
Microsoft Photo Story 3 and me
Saturday, March 19, 2011
min that thant
Photo တွေကနေ songs လေးတွေ ထည့်ပြီး movie လုပ်တဲ့ application လေးပါပဲ .. Bring your digital photos to life.
Overview
Create slideshows using your digital photos. With a single click, you can touch-up, crop, or rotate pictures. Add stunning special effects, soundtracks, and your own voice narration to your photo stories. Then, personalize them with titles and captions. Small file sizes make it easy to send your photo stories in an e-mail. Watch them on your TV, a computer, or a Windows Mobile–based portable device.
ဘာလို့ ဒီအကြောင်းပြောရသလဲဆိုရင် .. ဒီ application ကို Microsoft ကနေ Free version အနေနဲ့ ထုတ်ပေးတာရယ်. Size ကသေးပေမယ့် သူကနေ လုပ်လို့ရတာတွေ တော်တော်များတာရယ် .. သီချင်းအပြင်ကို နောက်ခံ စကားပြောတွေပါ ထည့်သွင်းနိုင်တာရယ် တွေကြောင့်ဖြစ်ပါတယ်.. အောက်က Official site မှာ သွားဖတ်ပြီး ဒေါင်းလုတ်ချနိုင်ပါတယ် ..
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=92755126-a008-49b3-b3f4-6f33852af9c1
Posted in
movie editing,
software
HTTP could not register URL http://+:80/Temporary_Listen_Addresses// because TCP port 80 is being used by another application
Tuesday, March 15, 2011
min that thant
Just need to include the clientBaseAddress attribute with a URI in the binding tag, since the default is using port 80.
(Now change to 8001 and 8000)
< ?xml version="1.0" encoding="utf-8"?>
< configuration>
< system.serviceModel>
< bindings>
< wsDualHttpBinding>
< binding name="WSDualHttpBinding_IServerStock"
closeTimeout="00:01:00"
openTimeout="00:01:00"
receiveTimeout="00:10:00"
sendTimeout="00:01:00"
bypassProxyOnLocal="false"
transactionFlow="false"
hostNameComparisonMode="StrongWildcard"
maxBufferPoolSize="524288"
maxReceivedMessageSize="65536"
messageEncoding="Text"
textEncoding="utf-8"
useDefaultWebProxy="true"
clientBaseAddress="http://localhost:8001/WCFDuplexService">
< readerQuotas maxDepth="32"
maxStringContentLength="8192"
maxArrayLength="16384"
maxBytesPerRead="4096"
maxNameTableCharCount="16384" />
< reliableSession ordered="true"
inactivityTimeout="00:10:00" />
< security mode="Message">
< message clientCredentialType="Windows"
negotiateServiceCredential="true"
algorithmSuite="Default" />
< /security>
< /binding>
< /wsDualHttpBinding>
< /bindings>
< client>
< endpoint address="http://localhost:8000/WCFDuplexService"
binding="wsDualHttpBinding"
bindingConfiguration="WSDualHttpBinding_IServerStock"
contract="IServerStock"
name="WSDualHttpBinding_IServerStock">
< identity>
< userPrincipalName value="wandrus@mbsnav.com" />
< /identity>
< /endpoint>
< /client>
< /system.serviceModel>
< /configuration>
More Info => http://andrusdevelopment.blogspot.com/2008/03/wcf-error-http-could-not-register-url.html
To MSDN
Duplex Service in WCF Step By Step Tutorial
Tuesday, March 15, 2011
min that thant
Here code for IService1.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
namespace WcfService
{
[ServiceContract(SessionMode = SessionMode.Required, CallbackContract = typeof(IService1Callback))]
public interface IService1
{
[OperationContract(IsOneWay = true)]
void AddNumber(int number);
}
public interface IService1Callback
{
[OperationContract(IsOneWay = true)]
void Calculate(int result);
}
}
Here codes for Service1.svc.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
namespace WcfService
{
[ServiceBehavior(InstanceContextMode = InstanceContextMode.PerSession)]
public class Service1 : IService1
{
public void AddNumber(int number)
{
callback.Calculate(number + 10);
}
IService1Callback callback
{
get { return OperationContext.Current.GetCallbackChannel(); }
}
}
}

Web.config မှာ ထပ်ပြီး system.serviceModel => services=> endpoint ရဲ့ binding method ကို wsDualHttpBinding လို့ ပြင်ပေးရပါမယ် .. ဒါမှ Duplex Callback method က အလုပ်လုပ်မှာ ဖြစ်ပါတယ် ..
Codes for Form1.cs
Form1 have only 1 button ..




using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.ServiceModel;
using System.ServiceModel.Channels;
namespace Client
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
InstanceContext instanceContext = new InstanceContext(new MyCallback());
ServiceReference1.Service1Client svcClient = new Client.ServiceReference1.Service1Client(instanceContext);
svcClient.AddNumber(33);
}
public class MyCallback : ServiceReference1.IService1Callback
{
public void Calculate(int result)
{
MessageBox.Show("result=" + result.ToString());
}
}
}
}

Here some useful links ...
http://www.c-sharpcorner.com/UploadFile/dhananjaycoder/3189/
http://netprogramminghelp.com/wcf/how-to-createperform-duplex-service-contracts-in-wcf/
http://www.codeguru.com/csharp/.net/net_wcf/article.php/c17831__1/Creating-a-Duplex-Service-in-Windows-Communication-Foundation-WCF.htm
MSDN link
Create a Popup Window in ASP.NET
Saturday, March 12, 2011
min that thant
ဒါကတော့ ASP.net Page မှာ ကလစ်လိုက်ရင် နောက် Pop up page တစ်ခုကို ဆွဲခေါ်မယ့် ကုတ်ပါ .. လောလောဆယ်ကတော့ ဒီအတိုင်းလေးပဲ ရေးထားပါမယ် ..
< a href="javascript:;" onclick="window.open('Chat.aspx?textbox=txtStartDate','cal','width=300,height=300,left=270,top=180')">Chat</a>
ဒီမှာ Chat.aspx ဆိုတာကတော့ ခေါ်မယ့် page ပါ .. နောက် textbox ဆိုတာကတော့ ပို့ပေးလိုက်ချင်တဲ့ parameter .. နောက်က ဟာတွေကတော့ အကျယ် အမြင့်နဲ့ ပေါ်စေချင်တဲ့ နေရာပါ...
More info => http://www.dotnetjohn.com/Articles.aspx?articleid=67
Posted in
ASP.Net
How To Setup Subdomain In Plesk Panel
Wednesday, March 09, 2011
min that thant
Setting up Subdomain Website In Parallel Plesk Panel
ဒါကတော့ Plesk Panel မှာ စတင်ပြီး Domain အကောင့် ဖောက်တာ ဖြစ်ပါတယ် .. အများအားဖြင့်တော့ VPS တွေက Subdomain က unlimited ရပါတယ် .. (တနည်းပြောရင် ဒီဟာက ကျွန်တော်တို့ VPS မှာ ဆိုဒ်တစ်ခု နေရာချဖို့ အတွက် ပြင်ဆင်တာပဲ ဖြစ်ပါတယ်) .
Subdomain ရွေးပြီးပြီဆိုရင် သူ့အတွက် file တွေ တင်ဖို့ကို FTP account ပါ ဖောက်ပေးရပါမယ် .. ဒီမှာ မူရင်း ဒိုမိန်းနဲ့ အတူတူထားမလား ကို မထားတော့ပါဘူးလို့ ရွေးပေးပါမယ် .. သပ်သပ်စီဖြစ်သွားအောင်ပါ ..
ပြီးရင် Plesk Panel ထဲက DNS setting မှာ နောက် Subdomain တစ်ခုတိုးလာတာ တွေ့ရပါမယ် .. 

Uploading Website content with FTP client
ဒီအပိုင်းကတော့ ကိုယ်လုပ်ချင်တဲ့ script (php) ကို Upload တင်ပေးတဲ့ အပိုင်းဖြစ်ပါတယ် .. free php script များစွာ ရှိပါတယ် .. အဲ အမျိုးအစားပေါ်မူတည်ပြီးတော့ များစွာရှိပါတယ် .. ဖရီးဒေါင်းလုတ်ချလို့ ရပါတယ် .. Script တွေ အကြောင်းကတော့ သူ့ ဆိုဒ်တွေမှာ ဖတ်ကြည့်လို့ ရပါတယ်..
Blogs တွေ အနေနဲ့ကတော့ WordPress 3.1 ,b2evolution 4.0.4,Textpattern 4.3.0, NucleusCMS 3.63, Geeklog 1.7.2
Content Management တွေ အနေနဲ့ကတော့ MODx 2.0.7,Joomla 1.6.1 , Drupal 7.0 ,e107 0.7.24, Mambo 4.6.5, XOOPS 2.5.0, PHP-Nuke 8.0, phpwcms 1.4.7
eCommerce တွေ အနေနဲ့ကတော့ Stamps.com , ShopSite 10.sp2.r2 , Marketecture 4.3.0 ,
Magento 1.5.0.1, Zen Cart 1.3.9h , OSCommerce 2.3.1, CubeCart 3.0.20, AgoraCart 5.2.005, TomatoCart 1.1.3
Forum တွေ အနေနဲ့ phpBB 3.0.8, Simple Machines Forum 1.1.13, bbPress 1.0.2, PunBB 1.3.4, Vanilla Forums 2.0.17.8 .
Social Networking အနေနဲ့ BuddyPress 1.2.8 , Pligg 1.1.3
Wiki အနေနဲ့ MediaWiki 1.16.2, WikkaWiki 1.2.sp.1, PmWiki 2.2.24, DokuWiki 2010-11-07
Photo Galleries ဆိုဒ် တည်ဆောက်လိုသူ တွေ အတွက် . Zenphoto 1.4.0.1, Gallery 3.0.1 ,Coppermine 1.5.12, Pixelpost 1.7.3, Piwigo 2.1.6, 4images 1.7.9 စသည် ဖြင့်များစွာ ရှိပါတယ် ..

အဲဒီမှာ httpdoc ထဲကို သုံးချင်တဲ့ script ကို တင်ပေးပြီး စတင် Run နိုင်ပါပြီ။
Adding Subdomain Name in DNS record
ဒီအပိုင်းကတော့ ကျွန်တော်တို့ Hosting ထဲက DNS server ကြီးမှာ Subdomain name ကို အပ်ဖို့ ဖြစ်ပါတယ် .. ဒါက ကျွန်တော်တို့ ၀ယ်ထားတဲ့ VPS နဲ့ မဆိုင်ပါဘူး .. သပ်သပ်ဝယ်ထားတဲ့ Domain name နဲ့ပဲ ဆိုင်ပါတယ် .. ကျွန်တော်တို့ ၀ယ်ထားတဲ့ Domain name ထဲက Domain Administration ထဲကို ၀င်ပြီး ခုနက အသစ် Subdomain နဲ့ ၄င်း ကို တင်ပေးထားတဲ့ address (this mean that ipaddress from Plesk panel) ကို A type Record မှာ ဖြည့်ပေးရပါမယ် .. ဒါဆိုရင် နောက် နာရီ အနည်းငယ် (DNS update လုပ်ပြီးတဲ့ အခါ) ကျွန်တော်တို့ ဆိုဒ်ကို မြင်တွေ့ရမှာ ဖြစ်ပါတယ် ...
Adding Subdomain to Domain Administration
Posted in
domainName,
Webserver,
website
How do I use a custom domain name on my blog?
Wednesday, March 09, 2011
min that thant
Update Your Blogger Settings



Update the DNS Settings



အခုဖော်ပြခဲ့တာတွေက ဒီ ဘလော့လိပ်စာကို Subdomain (.co.cc or .myanmarbeginner.com) အနေနဲ့ ပေးချင်တဲ့သူတွေ အတွက်ပါ ..တကယ်လို့ ကိုယ့် ဘလော့ကို (.com) Domain (naked Domain) ပေးမယ်ဆိုရင်တော့ အောက်ပါအတိုင်း လုပ်ရပါမယ်။
A Record လေးခု လုပ်ပေးရပါမယ် .. အဲဒါတွေအတွက် Data က .. အောက်ပါ အိုင်ပီများနဲ့ပါ..
216.239.32.21
216.239.34.21
216.239.36.21
216.239.38.21
ပြီးရင် CNAME Record တစ်ခု လုပ်ပေးရပါမယ် ။။ Data နေရာမှာတော့ ကိုယ့် (.com) လိပ်စာကို www ဖြုတ်ပြီးထည့်ပေးပါ ..
Cheers!
More info => http://www.google.com/support/blogger/bin/answer.py?hl=en&answer=55373
Posted in
blog,
domainName,
Webserver,
website
Working with myhosting.com ..(VPS hosting)
Monday, March 07, 2011
min that thant
၁ ရက်နေ့က စပြီး myhosting.com ကနေပြီး VPS ဆာဗာ ၁ လစာကို ၀ယ်ပြီး စမ်းကြည့်နေပါတယ် .. ဆရာမရှိ ဘာမရှိနဲ့ ဒီနေ့ ရ ရက်နေ့မှ စပြီး Joomla site တစ်ခုအဖြစ် ရုပ်လုံးပေါ်လာပါတယ် .. အရင်တုန်းက သူငယ်ချင်းတစ်ယောက် (ရာမညဖိုးလပြည့်) ဆီကနေ Hostmonster.com ကို ယူပြီး စမ်းကြည့်ဘူးပါတယ် .. အဲဒီတုန်းက Share web hosting ပါ. သုံးထားတဲ့ Control panel က (Cpanel) ပါ .. အခုကျတော့ VPS hosting ဖြစ်သွားတဲ့ အပြင် သုံးတဲ့ Control panel က (Parallel Plesk) လို့ ခေါ်တဲ့ဟာ ဖြစ်ပါတယ် .. ဗားရှင်းက 9.5.4 ပါ ..
အခုတော့ ရုပ်လုံးပေါ်လာပီ ဖြစ်လို့ လုပ်နည်းလေးတွေ သဘောတရားလေးတွေ လည်း သိသင့်သလောက်တော့ သိလာပါပြီ .. ဒါကို ကျူတိုရီရယ် သဘောမျိုးနဲ့ နောက် VPS သုံးမယ့်သူများ အထောက်အကူရအောင် ရေးပေးပါ့မယ်. ကျွန်တော့်လိုမျိုး မဖြစ်အောင်ပါ .. ×××××××××××××××××××××××××××××××××××××××××××××××××××××××××××
ဒီနေရာမှာ ကျွန်တော်တို့ သုံးမယ့် VPS server ဆိုတာ အကြောင်းကို အနည်းငယ် ရှင်းပြဖို့ လိုလာမှာ ဖြစ်ပါတယ် .. အရင်ဆုံး VPS ကို စတင်ကြားဘူး သွားတာကတော့ MyanmarTutorial က ကိုသီဟ ရေးထားတဲ့ ဆောင်းပါး တစ်ခုကပဲ ဖြစ်ပါတယ် . အဲဒီကနေပြီး ကိုယ့်ဟာကို ကိုယ်ပိုင်ကွန်ပြူတာမှာ Webserver တွေ စတင်ဆောက်ဖြစ်ခဲ့ပါတယ် .
What is VPS?
VPS = Virtual private server 

How to setup LAMP server on CentOS
Sunday, March 06, 2011
min that thant
http://www.tothetech.com/tips-tricks/commands-to-setup-lamp-server-in-centos.html
http://jazzymarketing.com/main/content/chapter-2-install-webmin
http://www.1a-centosserver.com/
Posted in
CentOS


















