PHP5 Method Chaining


Introduction
In this article, I’ll be talking about a useful new feature introduced in PHP5 as part of the OOP improvements over PHP4. This feature is called Method Chaining and enables us to do pretty cool things like:

PHP Code:
$object->method_a()->method_b()->method_c();

So really what’s this all about? Well, one change (of many) between PHP4 and PHP5 is that now methods can return objects. That’s only a small change but allows for a new way of thinking about how you handle objects and their methods.

Tiếp tục đọc

Android LinearLayout example


What is Android layout?

Layout denotes the architecture of the application, where and how the controls should be organized in the UI.It defines the layout structure and holds all the elements that appear to the user.

Android allows us to create layouts for the applications using simple XML file and those layouts must be placed in /res/layout folder.

We can declare the layout in two ways and here we will discuss first way of doing it:

  1. Declare UI elements in XML
  2. Create UI elements at runtime using Java.

Android TableLayout example


What is Android layout?

Layout denotes the architecture of the application, where and how the controls should be organized in the UI.It defines the layout structure and holds all the elements that appear to the user.

Android allows us to create layouts for the applications using simple XML file and those layouts must be placed in /res/layout folder.

We can declare the layout in two ways and here we will discuss first way of doing it:

  1. Declare UI elements in XML
  2. Create UI elements at runtime using Java.

How to import android project in eclipse


I sensed from the comments and mails.that developers are facing problem in importing existing Android project to Eclipse I decided to write a separate post on it which just discuss about how to import android project in eclipse.

I have also discussed the trouble shooting procedures to be followed when you face issues in importing Android project.

Tiếp tục đọc

GỬI CÁC BẠN PROGRAMMER, VÀ DÂN IT NÓI CHUNG…


Được trích từ bài viết của bạn sakura196 trên ddth
Vừa rồi trong công ty mình đã xảy ra trường hợp đáng thương tâm.
Một đồng nghiệp của mình đã qua đời trong lúc làm việc vì đột quỵ. Thật khủng khiếp, anh ấy chỉ mới 28 tuổi, và vợ anh ấy đang mang thai. Mặc dù anh ấy có tiền sử bị bệnh tim, nhưng làm việc đến tận 9h đêm trong nhiều ngày liên tiếp rõ ràng là nguyên nhân chính dẫn đến tai nạn đáng tiếc đó.

Tiếp tục đọc

Install Grub Customizer 2.5.7 in Ubuntu/Mint (New Release)


Install Grub Customizer 2.5.7 in Ubuntu/Kubuntu/Mint (Gnome or KDE)

Grub Customizer – a new graphical GRUB 2, You can now select the default boot entry, change the menu visibility and timeout, set kernel parameters, disable recovery entries and change screen resolution (GFX_MODE) – all by using Grub Customizer.

Hướng dẫn dự phòng và khôi phục gói dữ liệu Ubuntu bằng APTonCD


Quản Trị Mạng – APTonCD là một cách dễ dàng để lưu dự phòng các gói cài đặt (package) vào đĩa cứng hay file ISO. Bạn có thể khôi phục gói nhanh chóng để cài đặt trên hệ thống Ubuntu khác mà không cần tải bất cứ thứ gì.

Sau khi sử dụng APTonCD, người dùng có thể cài đặt những gói được lưu dự phòng chỉ với một thao tác, bổ sung thêm gói, hay khôi phục chúng trên bộ lưu đệm APT (APT cache).

Sau khi sử dụng APTonCD, người dùng có thể cài đặt những gói được lưu dự phòng chỉ với một thao tác, bổ sung thêm gói, hay khôi phục chúng trên bộ lưu đệm APT (APT cache).

Tiếp tục đọc