วันพุธที่ 21 พฤษภาคม พ.ศ. 2557
วันอังคารที่ 20 พฤษภาคม พ.ศ. 2557
วันจันทร์ที่ 19 พฤษภาคม พ.ศ. 2557
How to port existing asp.net MVC 3 application from windows to Linux Running asp.net on ubuntu
When I set out to port .NET application from windows 7 to Linux, I thought its going to be a long laborious process with lots of configurations. But surprisingly it did not take much time. Most of you might have already heard about mono-project, an open source implementation of the Microsoft .NET Framework. It is aimed at helping developers develop cross-platform applications. Yes, like the java, with write once run anywhere ideology. I must say, in whatever I have tried till now, it does a very good job at it. I had been hearing about MONO from quite some time , but never set out to experiment with it. I'll show here in this blog, how I managed to port my application onto Linux.
I will port the same application that I used for explaining my previous blogs Setup NHibernate with PostgreSQL in ASP.NET and Using NHibernate with PostgreSql in ASP.NET MVC. I'm running Ubuntu 12.04 on Oracle Virtual box and will be porting the application on that.
วันจันทร์ที่ 12 พฤษภาคม พ.ศ. 2557
Remote Desktop to Ubuntu 12.04 from Windows 7
1. ติดตั้ง xrdb บน ubuntu ด้วยคำสั่ง sudo apt-get install xrdp
2. เปิด Remote Desktop Connection ใน Windows 7
2. เปิด Remote Desktop Connection ใน Windows 7
วันศุกร์ที่ 2 พฤษภาคม พ.ศ. 2557
How to Reset ( Re-Sync ) MySQL Master-Slave Replication
At Slave Server:
At first we need to stop slave on slave server. Login to mysql server and execute following command.
mysql> STOP SLAVE;
At Master Server:
After stopping slave go to master server and reset the master state using following command.
mysql> RESET MASTER; mysql> FLUSH TABLES WITH READ LOCK;
Take a dump of database is being replicated using following command.
# mysqldump -u root -p mydb > mydb-dump.sql
After taking backup unlock the tables at master server.
mysql> UNLOCK TABLES;
สมัครสมาชิก:
บทความ (Atom)