Subscribe to RSS feed

Bài 2 - Tạo 1 Project ASP.NET MVC4

,

Bài thứ 2 trong chuỗi bài "Lập trình Web qua các ví dụ (Kết hợp giữa ASP.NET MVC 4 - Entity Framework - Jquery)"

Trong bài này ta sẽ tìm hiểu cấu trúc của một project ASP.NET MVC4 (loại template là Basic)

Read more...

Bài 1 - Làm quen với mô hình MVC 4 ASP.NET

, ,

Bài đầu tiên trong chuỗi bài "Lập trình Web qua các ví dụ (Kết hợp giữa ASP.NET MVC 4 - Entity Framework - Jquery)". Chuỗi bài này sẽ giúp các bạn phải tìm hiểu kiến thức căn bản về:
  • Mô hình MVC (mới nhất hiện tại là MVC4)
  • Entity Framework
  • Ajax - Jquery


!!! Yêu cầu tối thiểu: biết lập trình C#, có kiến thức về SQL Server (biết thêm javascript thì càng tốt)
Sử dụng Visual Studio 2012, SQL Server 2008.

Mục lục - Bài 1:
+ Giới thiệu về mô hình MVC
+ ASP.NET MVC là gì??
+ Tại sao lại sử dụng MVC
+ Cấu trúc của MVC
+ So sánh giữa ASP.NET MVC và ASP.NET Web Form

Read more...

Dungeon Tapper – The Beast Slayer version 1.0 – Prelaunching time

, ,


Description

Dungeon Tapper – The Beast Slayer is a visually stunning massively defense game running on mobile devices. Entering this world, players arise to almighty and fight with waves of monsters to defense the castle.

Choose your right weapon, equip your powerful gears and enter the battle to keep your people safe and peace. You will be a true hero, a legend!

Read more...

Dungeon Tapper – Beast Slayer is about to launch


After 2 two month working intensively and secretly, we are proud to announce: the Beast Slayer is on ramp to launch
This is a modern style of defensive game. You will be in the role of a hero to defense waves of monsters attack. As you are killing the monster, you will get experience to level up, improve your abilities, loot items for your equipments.
Especially, we bring an interesting feature from MMO game into this: Enchantment. You can empower you current equipments by enchanting them using enchantment gems. Gems are collected whenever you level up or from the events periodically appear while playing.

There are hundreds of monsters, weapons … for you to explore They’re just in you Iphone/Ipad
This game will hopefully be available on app store within February, 2013. Thanks for your supports!

[C#/C Sharp/.Net/Winform] Trying to Login to a Forum or post auto via C# Winforms application using HttpWebRequest

, , , ...

C# Code example:
            try
            {
                Uri uri = new Uri("http://www.efireplus.com/forum/login.php");
                string data = "vb_login_username=userid&vb_login_password=password";
                HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(uri);
                request.Method = WebRequestMethods.Http.Post;
                request.ContentLength = data.Length;
                request.ContentType = "application/x-www-form-urlencoded";
                StreamWriter writer = new StreamWriter(request.GetRequestStream());
                writer.Write(data);
                writer.Close();
                HttpWebResponse response = (HttpWebResponse)request.GetResponse();
                StreamReader reader = new StreamReader(response.GetResponseStream());
                string tmp = reader.ReadToEnd();
                response.Close();
                richTextBox1.AppendText(tmp);               
            }
            catch (Exception ex)
            {
                textBox3.Text = ex.ToString();
            }


For HTML Code example:
<form name="loginfrm" id="loginfrm" action="login.php?do=login" method="post" onsubmit="md5hash_2(vb_login_password, vb_login_md5password, vb_login_md5password_utf, 0);">
 
<input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="User Name" onblur="myUnTip();" onmouseout="myUnTip();" onfocus="if (this.value == 'User Name') this.value = '';myTip();"   />
 
<input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" id="navbar_password" size="10" tabindex="102" />
 
<input type="submit" class="button" value="Log in" tabindex="104" title="Enter your username and password in the boxes provided to login, or click the 'register' button to create a profile for yourself." accesskey="s" />

[C#][.NET] Xác định kết nối Internet

Cách 1:
       bool CheckConnect() 
       {
            HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://www.xxxxxxxxx.com");
            request.Timeout = 5000;
            request.Credentials = CredentialCache.DefaultNetworkCredentials;
            HttpWebResponse response = (HttpWebResponse)request.GetResponse();

            if (response.StatusCode == HttpStatusCode.OK)
            {
                Console.WriteLine("IsSIPServerAvailable: " + response.StatusCode);
                return true;
            }
            return false;
       }

Cách 2:
     [DllImport("wininet.dll", CharSet = CharSet.Auto)]
     private extern static bool InternetGetConnectedState(ref InternetConnectionState_e lpdwFlags, int dwReserved);

     [Flags]
     enum InternetConnectionState_e : int
     {
        INTERNET_CONNECTION_MODEM = 0x1,
        INTERNET_CONNECTION_LAN = 0x2,
        INTERNET_CONNECTION_PROXY = 0x4,
        INTERNET_RAS_INSTALLED = 0x10,
        INTERNET_CONNECTION_OFFLINE = 0x20,
        INTERNET_CONNECTION_CONFIGURED = 0x40
      }

      bool CheckConnect() 
      {
           InternetConnectionState_e flags = 0;          
           return InternetGetConnectedState(ref flags, 0);
      }

[Chia sẻ] - Kết nối C# với Maple ( tiếp theo)

, ,

Đây là 1 ứng dụng kết nối Maple với C#
Đang bận nên chưa viết gì được thêm

Giải phương trình bậc 2 với các hệ số a,b,c nhập vào

Link: http://www.fileserve.com/file/7q6xqq5

Chú ý xuất kết quả từ Maple sang String thì nên dùng hàm printf trong Maple. Good luck...

Linux và những vấn đề phát sinh

,

Sao mà xài Ubuntu thì cũng có cái thích thật, nhưng mà sao mình bị phát sinh lắm vấn đề thế này. Vì vậy khuyên những người chưa biết gì nhiều về máy tính nên cài Ubuntu vào học lại từ đầu. Hix

1. Phần mềm gần như mới hoàn toàn
2. Vấn đề âm thanh của speaker laptop và headphone (update kernel là xong)
3. Touchpad và mouse
....
4. Dòng lệnh
5. Giao diện

SourceCode Chương trình giải nguyên hàm tự động

Screenshot:


Làm từ hè nhưng lười nay mới upload lên.
Thực hiện: Nhóm học tập lớp CNTN02 - Đại học Công nghệ thông tin - ĐH QG TP.HCM
Phát triển: EarlyRain - CNTN02

Chưa phải là giải ngon lành tất cả các bài toán nguyên hàm nhưng tạm thời thì đã giải dc các bài toán trong sách giáo khoa và đề thi đại học cao đẳng (đề chung) từ 2010 trở về trước.

Kiến thức cần nắm được:
1. biểu diễn tri thức và xử lý tri thức
2. Lập trình Maple và C#


Core được viết trên Maple
Interface được viết trên C#

Source (cho công việc tìm hiểu - Cài Maple và Visual C# vào): http://www.mediafire.com/?me360ebg2768pic
Ai cần bản đóng gói cho công việc học tập thì hú cái.

Nói chung viết xong rồi cũng chẳng update, support gì cho nó, ace nào quan tâm thì lấy source phát triển.

Được sống đã là hạnh phúc

, ,

Bất kỳ ai, trong một giây phút không bốc đồng, không khổ hạnh, không thù hận, không căm ghét ức chế bất mãn… cũng có thể trìu mến tự nói với bản thân rằng cuộc sống của mình thế này là được. Đạt được ước mơ, có người yêu, nhặt được tiền, được săn đón và khen ngợi…, người ta có thể nói chắc nịch là tôi hạnh phúc. Nhưng đó chỉ là một khỏanh khắc bạn thấy hạnh phúc, không phải là một tinh thần hạnh phúc dài lâu. Hôm nay có người yêu, mai bị đá, bạn không còn thấy hạnh phúc nữa. Đó là thứ hạnh phúc mà bạn nhờ người khác đem lại cho mình. Vậy có thứ hạnh phúc nào mình có thể tự sản sinh ra được không?

Có.

Read more...

June 2013
M T W T F S S
May 2013July 2013
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30