Thứ Bảy, 18 tháng 3, 2017

PHP 5 Global Variables - Superglobals

Superglobals were introduced in PHP 4.1.0, and are built-in variables that are always available in all scopes.

PHP Global Variables - Superglobals

Several predefined variables in PHP are "superglobals", which means that they are always accessible, regardless of scope - and you can access them from any function, class or file without having to do anything special.
The PHP superglobal variables are:
  • $GLOBALS
  • $_SERVER
  • $_REQUEST
  • $_POST
  • $_GET
  • $_FILES
  • $_ENV
  • $_COOKIE
  • $_SESSION
This chapter will explain some of the superglobals, and the rest will be explained in later chapters.

Thứ Hai, 17 tháng 8, 2015

12 Rules of Overriding in Java


Overriding is a core concept in Object Oriented Programming as well as in Java programming language. Understanding what it is, how it works and what the rules are is very important for every Java programmer, especially those who are preparing for the OCPJP exam (exam topic: Java Class Design > Override methods).Therefore, this tutorial compiles a comprehensive summary of concepts and rules regarding overriding in the Java language, with easy-to-understand code examples.

Thứ Năm, 7 tháng 5, 2015

Struts 2 - Spring - Hibernate Integration Tutorial Part 2 - Java-Based and Annotations

Welcome to the second part of the Struts - Spring - Hibernate integration tutorial series! In the first part, I guided you how to build a Struts - Spring - Hibernate project with XML configuration. In this second part, you will build a project with the same functionality but with Java-based code and annotations. There is no XML at all! Absolutely no XML!

Struts 2 - Spring 4 - Hibernate 4 Integration Tutorial Part 1 - XML Configuration

Welcome to the first part of Struts - Spring - Hibernate integration tutorial series! Let imagine you are assigned a legacy project which is based-on Struts 2 framework. Your critical mission is to add Spring and Hibernate to the project and make sure these three guys (Struts, Spring and Hibernate) working together in harmony. And imagine this is the last chance you can impress your boss (he promises you with salary increase or promotion if you can get the project done perfectly). Being excited, you’re looking around for solutions and finally reading this page!

Thứ Tư, 15 tháng 10, 2014

Xử lý các sự kiện trong java

Các hệ thống GUI xử lý các tương tác người dùng với sự trợ giúp của mô hình hướng sự kiện (event-driven). Tương tác của người dùng có thể là di chuyển chuột, nhấn phím, nhả phím v.v…Tất cả các thao tác này thiết lập một sự kiện của một loại nào đó.

Thứ Ba, 16 tháng 9, 2014

What is TCP/IP?

TCP/IP stands for Transmission Control Protocol / Internet Protocol. It defines how electronic devices (like computers) should be connected over the Internet, and how data should be transmitted between them.
TCP - Transmission Control Protocol

Thứ Tư, 10 tháng 9, 2014

Sưu tầm : Tổng quan về giao thức mạng UPnP


UPnP (Universal Plug and Play) là một giao thức mạng giúp các thiết bị với khả năng kết nối mạng trong gia đình có khả năng nhận ra nhau và truy cập một số dịch vụ (services) nhất định của nhau, bất kể thiết bị đó thuộc chủng loại nào hoặc chạy hệ điều hành gì. Được xây dựng dựa trên các nền tảng thông dụng nhất của Internet như TCP/IP,  HTTP, XML, các thiết bị có UPnP sẽ tự động tìm thấy nhau trong mạng khi chức năng UPnP đang hoạt động mà không đòi hỏi nhiều thao tác cấu hình, tiết kiệm nhiều công sức cho người sử dụng. Ứng dụng thường gặp nhất của UPnP là stream dữ liệu media (nhạc, phim) giữa các thiết bị trong mạng và gửi tín hiệu điều khiển giữa các thiết bị này.

Thứ Hai, 8 tháng 9, 2014

Sưu tầm :Chạy Linux từ firefox

1. MPlayer, Google Chrome, VLC, MythTV... có chung điểm gì? Chúng đều xài thư viện FFmpeg. Rất nhiều phần mềm khác sử dụng thư viện này và có thể cái tivi hay chiếc điện thoại của bạn cũng sử dụng FFmpeg.

2. Xen, VirtualBox, Linux Kernel-based Virtual Machine... có chung điểm gì? Chúng đều dùng công nghệ của QEmu. Xen nghe có vẻ xa lạ? Amazon EC2, và có thể công nghệ điện toán đám mây mà bạn đang dùng, sử dụng Xen.

Thứ Năm, 4 tháng 9, 2014

Sưu tầm: Làm an toàn thông tin thì học gì?

1 Giới thiệu

Tôi nhận được thư từ của nhiều bạn hỏi về việc nên học gì và như thế nào để có thể tìm được việc làm và làm được việc trong ngành an toàn thông tin (information security). Tôi nghĩ việc đầu tiên bạn cần phải làm là in toàn bộ bài viết "Làm thế nào để trở thành white hat hacker" ra giấy, nhưng đừng đọc, mà hãy để chúng trong toilet khi nào cần thì xài dần.

Thứ Sáu, 29 tháng 8, 2014

Giao diện người dùng và các control trong Android SDK

Trong hướng dẫn này, tôi sẽ lướt qua các giao diện người dùng sắp xếp và điều khiển Android. Cung cấp một số ví dụ mang lại cho bạn từng bước thông qua việc tạo ra và thực hiện những việc hoàn thành một ứng dụng Android.