Huy’s Blog

Just another WordPress.com weblog

Archive for April, 2009

Using Moodle to build e-learning website

Posted by hqhuy on 30 April, 2009

Posted in FOSS | Tagged: , , | Leave a Comment »

Ảnh trường Bách Khoa

Posted by hqhuy on 28 April, 2009

C1 Building

Water Park

Electronic Library

Posted in Relax | 3 Comments »

Enabling Compiz Fusion On A Fedora 8 GNOME Desktop

Posted by hqhuy on 28 April, 2009

Compiz

This tutorial shows how you can enable Compiz Fusion on a Fedora 8 GNOME desktop (the system must have a 3D-capable graphics card – I’m using an ATI Mobility Radeon 9200 here). With Compiz Fusion you can use beautiful 3D effects like wobbly windows or a desktop cube on your desktop.

This document comes without warranty of any kind! I do not issue any guarantee that this will work for you!

Link : http://www.howtoforge.com/compiz-fusion-fedora8-ati-mobility-radeon-9200

Keyboard Shortcuts

Here’s a list of the most common Compiz Fusion keyboard shortcuts:

SUPER+SHIFT+DRAG LEFT MOUSE = draw fire
SUPER+SHIFT+C = clear fire
CTRL+ALT+DRAG LEFT MOUSE = rotate cube
CTRL+ALT+LEFT ARROW = rotate cube
CTRL+ALT+DOWN ARROW = flat desktop
SHIFT+ALT+UP = initiate window picker
CTRL+ALT+DOWN = unfold cube
ALT+TAB = window switch
SUPER+TAB = flip switcher or ring switcher, depending on which is enabled.
ALT+F7 = initiate ‘move windows’
SHIFT+F9 = water effect
SHIFT+F10 = slow animations
CTRL+ALT+D = show desktop

For Grouping and Tabbing:
SUPER+S = select single window
SUPER+T = tab group
SUPER+Left = change left tab
SUPER+Right = change right tab
SUPER+G = group windows
SUPER+U = ungroup windows
SUPER+R = remove group window
SUPER+C = close group
SUPER+X = ignore group
Hold the SUPER button then select the windows you want to group and then hit SUPER+G.

The SUPER key is the Windows key on most keyboards.

We need a feature list and how to use Compiz including key combination

* Rotate – [Control] +[Alt] +Right Arrow Key or Left Arrow Key
* 3D Cube – [Control] +[Alt] +Left Mouse Click then Drag the mouse
* Scale – Move mouse to Top Right Corner or press [Pause] key. Press [Esc] key to go back.
* Zoom – [Super/Windows] + Right Mouse Click

Posted in FOSS | Tagged: | 1 Comment »

Dawn of a new Century.mp3

Posted by hqhuy on 28 April, 2009

Dawn of a new Century.mp3 in Secret Garden

Posted in Relax | Leave a Comment »

Chương trình mô phỏng các cổng logic

Posted by hqhuy on 26 April, 2009

Chương trình viết bằng java, nhỏ gọn minh họa các cổng logic (not, and, or..) khi được nối với đèn LED.
Chạy online
Download chương trình nguồn

System Requirements

Simcir requires a browser or Java Runtime Environment that support Java1.1.
Successfully tested on following environment.

* Sun JDK/JRE 1.1.7, 1.2.1
* Netscape Communicator 4.08, 4.5
* Microsoft Internet Explorer 4.01 SP1, 5.0

Usage

1. Choice a device from the toolbox and move to right side.
2. Connect them by drag operation.
3. Click a input node to disconnect.
4. Move a device back to the toolbox if you don’t use.
5. Double click the label to edit.

Note

* To simplify the model, all devices transfer only voltage but current.
* Please don’t make infinity loop like a vibrator. :-)
* When logic gate’s input node is not connected, it treated as pulled down.

Link : http://www.d-project.com/simcir/

Posted in Electronic Engineering | Tagged: , , | Leave a Comment »

Simcir the circuit simulator

Posted by hqhuy on 26 April, 2009

Posted in Uncategorized | Tagged: , , | Leave a Comment »

Shortcut Keys in Linux

Posted by hqhuy on 26 April, 2009

Global shortcut keys
Global shortcut keys enable you to use the keyboard to perform tasks related to your desktop, rather than tasks on the currently selected window or application. The following table lists some global shortcut keys:
Shortcut Key Function
Alt+F1 Open the Applications Menu.
Alt+F2 Display the Run Application dialog. See Section 7.1 ― Running Applications for more information.
Print Screen Take a screenshot of the entire desktop. See Section 7.2 ― Taking Screenshots for more information.
Alt+Print Screen Take a screenshot of the currently focused window.
Ctrl+Alt+Arrow keys Switch to the workspace to the specified direction of the current workspace. See Section 2.4 ― Workspaces for more information on working with multiple workspaces.
Ctrl+Alt+D Minimize all windows and give focus to the desktop.
Alt+Tab Switch between windows. A list of windows that you can select is displayed. Release the keys to select a window. You can press the Shift key to cycle through the windows in reverse order.
Ctrl+Alt+Tab Switch the focus between the panels and the desktop. A list of items that you can select is displayed. Release the keys to select an item. You can press the Shift key to cycle through the items in reverse order.

Application Keys
Application shortcut keys enable you to perform application tasks. You can use shortcut keys to perform application tasks more quickly than if you use a mouse. The following table lists some common application shortcut keys:
Shortcut Key Action
Ctrl+N Create a new document or window.
Ctrl+X Cut the selected text or region and place it on the clipboard.
Ctrl+C Copy the selected text or region onto the clipboard.
Ctrl+V Paste the contents of the clipboard.
Ctrl+Z Undo the last action.
Ctrl+S Save the current document to disk.
F1 Load the online help document for the application.

In addition to these shortcut keys, all applications support a set of keys to navigate and work with the user interface. These keys allow you to perform operations that you might normally perform with a mouse. The following table describes some interface control keys:
Keys Action
Arrow keys or Tab Move between controls in the interface or items in a list.
Enter or spacebar Activate or choose the selected item.
F10 Activate the left-most menu of the application window.
Shift+F10 Activate the context menu for the selected item.
Esc Close a menu without selecting a menu item, or cancel a drag operation.

Window shortcut keys
Window shortcut keys allow you to use the keyboard to perform tasks on the currently focused window. The following table lists some window shortcut keys:
Shortcut Key Function
Alt+Tab Switch between windows. A list of windows that you can select is displayed. Release the keys to select a window. You can press the Shift key to cycle through the windows in reverse order.
Alt+F4 Close the currently focused window.
Alt+F5 Unmaximize the current window, if it is maximized.
Alt+F7 Move the currently focused window. After pressing this shortcut, you can move the window using either the mouse or the arrow keys. To finish the move, click the mouse or press any key on the keyboard.
Alt+F8 Resize the currently focused window. After pressing this shortcut, you can resize the window using either the mouse or the arrow keys. To finish the resize, click the mouse or press any key on the keyboard.
Alt+F9 Minimize the current window.
Alt+F10 Maximize the current window.
Alt+spacebar Open the window menu for the currently selected window. The window menu allows you to perform actions on the window, such as minimizing, moving between workspaces, and closing.
Shift+Ctrl+Alt+Arrow keys Move the current window to another workspace in the specified direction. See Section 2.4 ― Workspaces for more information on working with multiple workspaces.

Posted in Uncategorized | Tagged: , | Leave a Comment »

How to resize a partition in Windows Vista

Posted by hqhuy on 24 April, 2009

Because programs such as Partition Magic don’t work on Windows Vista, some of you may be wondering how to resize partitions without losing any data. The good news is that you probably won’t be needing those programs because Windows Vista can manage your partition resizing.

To resize a partition with Windows Vista, follow these steps:

Be sure to back up any valuable information, because there is a slight chance that data can be lost when dealing with partitions.

1) Click on the Start menu

2) Right click on Computer and click on Manage

Computer managment

3) You may get a User Account Control dialog here; just click Continue

4) In the left pane, open up the Storage category and click on Disk Management

Disk management

5) Here, you will find your partitions for your disks. Right click on the partition you’d like to modify.

Disk Shink Volume

6) Click on Extend Volume or Shrink Volume to extend or shrink the selected partition.

Posted in Uncategorized | Tagged: , , | Leave a Comment »

Mạch tạo dao động

Posted by hqhuy on 24 April, 2009

Mạch dao động được ứng dụng rất nhiều trong các thiết bị điện tử, như mạch dao động nội trong khối RF Radio, trong bộ kênh Tivi mầu, Mạch dao động tạo xung dòng , xung mành trong Ti vi , tạo sóng hình sin cho IC Vi xử lý hoạt động v v…
Mạch dao động được chia là hai loại :
- Mạch tạo dao động hình sin
- Mạch tạo xung : gồm xung vuông và xung tam giác
Mạch tạo xung vuông
• Mạch dao động đa hài
Mach da hai
Mạch dao động đa hài tạo xung vuông

* Bạn có thể tự lắp sơ đồ trên với các thông số như sau :

* R1 = R4 = 1 KW
* R2 = R3 = 100KW
* C1 = C2 = 10µF/16V
* Q1 = Q2 = đèn C828
* Hai đèn Led
* Nguồn Vcc là 6V DC

Tổng giá thành lịnh kiện hết khoảng 4.000 VNĐ

• Mạch dao động dùng IC

IC 555

* Bạn hãy mua một IC họ 555 và tự lắp cho mình một mạch tạo dao động theo sơ đồ nguyên lý như trên.
* Vcc cung cấp cho IC có thể sử dụng từ 4,5V đến 15V , đường mạch mầu đỏ là dương nguồn, mạch mầu đen dưới cùng là âm nguồn.
* Tụ 103 (10nF) từ chân 5 xuống mass là cố định và bạn có thể bỏ qua ( không lắp cũng được )
* Khi thay đổi các điện trở R1, R2 và giá trị tụ C1 bạn sẽ thu được dao động có tần số và độ rộng xung theo ý muốn theo công thức.

T = 0.7 × (R1 + 2R2) × C1
T = Thời gian của một chu kỳ toàn phần tính bằng (s)
f = Tần số dao động tính bằng (Hz)
R1 = Điện trở tính bằng ohm (W )
R2 = Điện trở tính bằng ohm ( W )
C1 = Tụ điện tính bằng Fara ( W )

T = Tm + Ts
T : chu kỳ toàn phần
Tm = 0,7 x ( R1 + R2 ) x C1 Tm : thời gian điện mức cao
Ts = 0,7 x R2 x C1
Ts : thời gian điện mức thấp

Chu kỳ toàn phần T bao gồm thời gian có điện
mức cao Tm và thời gian có điện mức thấp Ts

* Từ các công thức trên ta có thể tạo ra một dao động xung vuông có độ rộng Tm và Ts bất kỳ.
* Sau khi đã tạo ra xung có Tm và Ts ta có T = Tm + Ts và f = 1/ T

* Thí dụ bạn thiết kế mạch tạo xung như hình dưới đây.

Mạch tạo xung có Tm = 0,1s , Ts = 1s

Bài tập : Lắp mạch dao động trên với các thông số :

* C1 = 10µF = 10 x 10-6 = 10-5 F
* R1 = R2 = 100KW = 100 x 103 W
* Tính Ts và Tm = ? Tính tần số f = ?

Bài làm :

* Ta có Ts = 0,7 x R2 x C1 = 0,7 x 100.103 x 10-5 = 0,7 s
Tm = 0,7 x ( R1 + R2 ) x C1 =
= 0,7 x 200.103 x 105 = 1,4 s
* => T = Tm + Ts = 1,4s + 0,7s = 2,1s
* => f =1 / T = 1/2,1 ~ 0,5 Hz

Nguon : hocnghe.com.vn

Posted in Electronic Engineering | Leave a Comment »

Kiểm tra giữa kỳ môn KTĐT

Posted by hqhuy on 23 April, 2009

Bạn có muốn làm lại bài kiểm tra giữa kỳ môn KTĐT không?


Posted in Electronic Engineering | Tagged: | 1 Comment »