Thứ Sáu, 4 tháng 3, 2011

Game mini cực hay - Angry Birds 2011 Full Tested Working

Rating: 0.0/5 (0 votes cast)
angrybirds big Angry Birds 2011 Full Tested Working
“Lemme tell ya, these ain’t no ordinary finches we’re talkin’ about. These here are the Angry Birds, the ones that’s gonna kick you in the ‘nads. And they’re the ones on your side. They must be from Galapadapados, or sumptin’.” – Col. Angus, Bird Expert.
The survival of the Angry Birds is at stake. Dish out revenge on the green pigs who stole the Birds’ eggs. Use the unique destructive powers of the Angry Birds to lay waste to the pigs’ fortified castles.
Angry Birds features hours of gameplay, challenging physics-based castle demolition, and lots of replay value. Each of the 120 levels requires logic, skill, and brute force to crush the enemy.
Protect wildlife or play Angry Birds!


Download here:

Bảo vệ USB khỏi virut - Protect Your USB Drive From Virus


Usually, most of the virus and worms copies to your USB drive easily. No matter what you do, you cannot stop this action form virus when you insert your USB drive to infected computer. But to prevent from un-authorized copying of viruses you can make your USB storage device completely full so that no more files can be added to it.
But filling up the storage device will not be practical as you have to add some heavy contents there and you won’t like to put large contents which will often hectic job. But after following this tutorial you’ll feel easier to do that.
Initially assume that you have some files in your USB drive and you want to fill up the remaining space.

First download USBDummyProtect (an executable 4KB ZIP file). Once you’ve downloaded the file extract it and copy the exe file in to your USB root drive.
You can see in the first image that we’ve about 1GB disk space left, this tool will help you to fill the remaining space easily by creating a dummy file.
Once the exe file has been copied, run the program by double clicking it. As soon as the program runs, the program starts to create a dummy file that has enough size to fill of all the remaining space of your USB storage device.
Once the dummy file creation is successful you’ll be notified. Press enter to close the program.
You can see a dummy.file in your USB drive.
Also check out your USB device disk space.
It must have filled now with zero space available. This will prevent other infectitous programs to copy itself to your USB drive.
Incase if you want to copy some files from your own non-infected PC then delete the dummy.file and again run the program.
Hope this tutorial was helpful.


Thứ Năm, 3 tháng 3, 2011

Game nông trại biển cả - Farm Frenzy 3: Ice Age

    Farm Frenzy 3: Ice Age


Chill out with an all-new Farm Frenzy adventure! Join Scarlett as she travels to the North Pole to check out a farm she purchased through a news ad. When she arrives, she not only finds the property in a state of disrepair, but also meets two brothers who could use her help making ice cream. While whipping up chilly treats in 90 levels of frosty fun, you'll breed and care for penguins and other arctic animals, manufacture new products and enjoy a parade of visual gags in Farm Frenzy 3: Ice Age!
  • 90 all-new levels
  • 12 new products
  • 22 hilarious visual gags
  • A special surprise guest!




Download here:


Các lỗi thường gặp trong MySQL của người lập trình PHP

  Cơ sở dữ liệu là một thành phần cơ bản cho các ứng dụng web. Nếu bạn đang sử dụng PHP thì MySQL là ngôn ngữ đi kèm phổ biến nhất.
   PHP là tương đối dễ dàng và hầu hết các người phát triển mới có thể viết mã trong một vài giờ. Tuy nhiên, xây dựng một cơ sở dữ liệu vững chắc, đáng tin cậy cần có thời gian và chuyên môn. Dưới đây là một số sai lầm trong MySQL  tồi tệ nhất tôi đã gặp  ...

1. Sử dụng MyISAM hơn là InnoDB 

     MySQL có một số cơ sở dữ liệu, nhưng bạn có nhiều khả năng gặp phải MyISAM và InnoDB. MyISAM được sử dụng bởi nó mặc định. Tuy nhiên, trừ khi bạn đang tạo ra một cơ sở dữ liệu rất đơn giản, hoặc thử nghiệm, vì nó gần như chắc chắn là sự lựa chọn sai lầm! MyISAM không hỗ trợ ràng buộc khoá ngoại, giao dịch, đó là rất cần thiết cho tính toàn vẹn dữ liệu. Ngoài ra, toàn bộ table đã bị khoá bất cứ khi nào một record được thêm vào hoặc được cập nhật, điều này gây ra một ảnh hưởng bất lợi về hiệu suất khi sử dụng phát triển. 

Giải pháp đơn giản là : sử dụng InnoDB.

2. Sử dụng hàm mysql  củaPHP 
     PHP đã cung cấp các hàm thư viện MySQL. Nhiều ứng dụng dựa vào mysql_query, mysql_connect, mysql_fetch_assoc, v.v... nhưng PHP manual  nói rằng:


Nếu bạn đang sử dụng MySQL phiên bản 4.1.3 hoặc mới hơn khuyên bạn 

nên sử dụng phần mở rộng MySQLi thay vì phần mặc định.
     MySQLi (hoặc phần mở rộng MySQL được cải thiện), có một số lợi thế:

  • Giao diện hướng đối tượng.
  • Các câu leecnhj tiền xử lý (mà giúp ngăn ngừa sự tấn công  SQL-injection và tăng hiệu suất)
  • Hỗ trợ transaction
    Ngoài ra, bạn nên xem xét PDO nếu bạn muốn hỗ trợ nhiều cơ sở dữ liệu.
3. Không xem xét kỹ thông tin người dùng nhập vào
     Không bao giờ tin tưởng người dùng nhập vào, Xác thực bằng mỗi chuỗi nhập vào bằng cách sử dụng  các hàm kiểm tra phía máy chủ PHP hơn là dựa vào javascript. Cách đơn giản tấn công SQL Injection phụ thuộc vào mã như:

$username = $_POST["name"];
$password = $_POST["password"];
$sql = "SELECT userid FROM usertable WHERE username='$username' AND password='$password';";
// run query...
    Điều này có thể bị bẻ khóa bằng cách nhập vào "admin'; --" trong trường username. Các chuỗi SQL sẽ tương đương với:

SELECT userid FROM usertable WHERE username='admin';
   Các cracker có thể đăng nhập như là "admin", họ không cần biết mật khẩu vì nó là chú thích trong SQL. 
4. Không sử dụng UTF-8
    Bạn quên chỉnh dữ liệu ở định dạng UTF-8, khiến nó không thể hiển thị đúng ở một số ngôn ngữ. Mặc dù MySQL không hoàn toàn hổ trợ, nhưng vẫn sẽ tốt hơn khi chuyển về UTF-8.
5. Yêu thích PHP hơn là MySQL
     Khi bạn mới bắt đầu PHP, bạn có xu hướng muốn giải quyết tất cả với PHP. Điều đó có thể dẫn đến các mã không cần thiết và chậm hơn. Ví dụ, thay vì sử dụng hàm AVG() của MySQL, bạn lại sử dụng một vòng lặp PHP để tính trung bình theo tổng hợp tất cả các record trong table
     Nhưng đổi lại, cũng cho các truy vấn SQL vào vòng lặp PHP. Thông thường, nó có hiệu quả hơn để chạy một truy vấn sau đó loop qua các results trả về của câu truy vấn.
     Nhìn chung, tận dụng những thế mạnh của cơ sở dữ liệu của bạn khi phân tích dữ liệu.
 
.