RSS

OS

Trick parse option in bash shell

Vấn đề khó khăn khi lập trình trên bash shell là việc truyền các option vào bash shell. Tuy nhiên với thủ thuật nhỏ bash shell của các bạn sẽ trở thành pro hơn :

heocon@heocon-laptop:~$ cat --help
    Usage: cat [OPTION]... [FILE]...
    Concatenate FILE(s), or standard input, to standard output.
    -A, --show-all           equivalent to -vET
    -b, --number-nonblank    number nonempty output lines
    -e                       equivalent to -vE
    -E, --show-ends          display $ at end of each line
    -n, --number             number all output lines
    -s, --squeeze-blank      suppress repeated empty output lines
    -t                       equivalent to -vT
    -T, --show-tabs          display TAB characters as ^I
    -u                       (ignored)
    -v, --show-nonprinting   use ^ and M- notation, except for LFD and TAB
    --help     display this help and exit
    --version  output version information and exit
    With no FILE, or when FILE is -, read standard input.
    Examples:
    cat f - g  Output f's contents, then standard input, then g's contents.
    cat        Copy standard input to standard output.
    Report cat bugs to bug-coreutils@gnu.org
    GNU coreutils home page:
    General help using GNU software: <http://www.gnu.org/gethelp/>
    Report cat translation bugs to <http://translationproject.org/team/>

Code : http://www.mediafire.com/download.php?3f46a0prk3eikvc (more…)

VN:F [1.9.3_1094]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.3_1094]
Rating: 0 (from 0 votes)
08 August 2010 | Linux,Tips & Tricks | | 0 Comments   

How to install DirectX 10 on Windows XP

DirectX 10 on XP with DirectX 10 RC2 Pre Fix

X 9 scenery from Flight Simulator X.

And a rendering of the same scenery with DirectX 10.

Download :

http://uploading.com/files/5mmfdf92/DirectX10_RC2_Fix_3-Pre-Final.zip/

http://hotfile.com/dl/21298387/57d8afa/DirectX10_RC2_Fix_3-Pre-Final.zip.html

http://www.missupload.com/huehqvptlfy0/DirectX10_RC2_Fix_3-Pre-Final.zip.html
http://sharecash.org/download.php?file=211955

(more…)

VN:F [1.9.3_1094]
Rating: 10.0/10 (3 votes cast)
VN:F [1.9.3_1094]
Rating: 0 (from 0 votes)
22 December 2009 | Windows | , | 0 Comments   

How to add Multiple IP Address in Windows 2000,XP,2003

Sometimes, there is a need to have more than one IP Addresses assigned to a PC or a Server

. If you have multiple services running on a server like a webserver and a mail server and want to assign each of these services seperate IP Addresses the Multiple IP addresses will help. While this need not necessarily require to have more than one Network Interface Card (NIC) on the server.

You can add multiple IP Addresses to a single interface card. However, these IP Addresses should be in the same logical network

although in different subnets.

The following procedure will just guide you how to add Multiple IP Addresses:

1. Open Control Panel and Network Connections.

2. Right-click the LAN connection and select properties.

3. Select Internet Protocol (TCP/IP) and click properties.

Windows Internet Protocol (TCP/IP) (more…)

VN:F [1.9.3_1094]
Rating: 10.0/10 (1 vote cast)
VN:F [1.9.3_1094]
Rating: 0 (from 0 votes)

Khắc phục lỗi VGA Intel trên Ubuntu 9.04

Hôm nay lang thang bên ubuntuforum nhặt được cái TUT hay quá, teleport nó về cho anh em tham khảo! (dịch thì được nhưng thuật ngữ chuyên ngành thì mình tịt nên có gi anh em góp ý mình edit)
Tổng quan:
có một số vấn đề về CGA Intel trên 9.04
1. Driver hiện thời trong repo đang có một số vân đề về trình diễn với phương thức tăng tốc EXA, đa số người dùng thấy sự thể hiện 2D rất kém do thiết lập măc định của EXA là ” migration heuristic”. nếu chuyển thiêp lập này thành ” greedy” sẽ làm cải thiện được vấn đề.
2. Phương thức tăng tốc mới và nhanh hơn( UXA) không được đặt làm mặc định do có nhiều thông báolỗi của nhiều ngừoi dùng. Mã này đang được tích cực phát triển, đã đạt nhiều ổn định và hiệu quả hoạt động, các vấn đề đã được giải quyết trong các trình điều khiển mới nhất (cụ thể là trong các trình điều khiển intel, libdrm, mesa và nhân kernel mới nhất 2.6.29.3). Thật không may, Jaunty sẽ không bao gồm các phiên bản mới nhất cần thiết để cải thiện hiệu suất.
3. khả năng xử lí 3D đã giảm đi so với bản 8.10 do các thay đổi về code chính liên quan đên sự ứng dụng vào các code tăng tốc và quản lí bộ nhớ của 9.04. Chính những sự thay dổi này gây ra sự giảm đi trong tác vụ xử lí 3D
4. cả Xorg và driver của intel đều gặp một lỗi do sự phân bố không chính xác bộ nhớ xử lí đồ họa trong bộ nhớ đệm, kết quả là làm giảm suits rất nhiều khả năng xử lí 3D của chip Intel! (more…)

VN:F [1.9.3_1094]
Rating: 10.0/10 (1 vote cast)
VN:F [1.9.3_1094]
Rating: 0 (from 0 votes)
12 October 2009 | Linux | | 0 Comments   

Windows XP Performance Edition SP3 September 2009

Windows XP Performance Edition SP3 September 2009

XP_Logo

Original Size: 595 mb
New Size: 179 mb (Difference of 416 mb)
(This is the Size of the ISO)

This supports ALL Languages and ALL Keyboard Layouts.

  • This is a FULL Install. You CANNOT Upgrade from previous versions of Windows.
  • There is no validation required. This PASSES WGA. This works 100% with Windows Update.
  • I have included the CD-Key already in the install process. This means at no point will you have to enter it.
  • Some people using Macs or Virtual Machines might need the serial. See Serial.txt if you do need it.
  • Serial.txt is located in the download folder and in a folder on the disc/iso.
  • This has all windows updates through September 2009. This is has been tested numerous times with no errors.
  • This has minimalist Internet Explorer 6. (Use It To Download Firefox, Opera, Safari, Chrome, Etc)
  • This is the x86 version (32Bit).

(more…)

VN:F [1.9.3_1094]
Rating: 8.5/10 (35 votes cast)
VN:F [1.9.3_1094]
Rating: +7 (from 9 votes)

Install Opera

To install and configure opera (since it’s useful for testing web pages to be able to check behaviour, and it’s useful to have another browser around sometimes), do the following:

sudo gpedit /etc/apt/sources.list

or

sudo nano /etc/apt/sources.list

… and add these two lines:

# For latest stable opera:

deb http://deb.opera.com/opera/ stable non-free

* Then do:

sudo wget -O – http://deb.opera.com/archive.key | sudo apt-key add -

sudo aptitude update

sudo aptitude install opera

* Then run opera – Applications -> Internet -> Opera

* Right-click on the tab bar, select Customise -> Toolbars tab -> change the “wrapping” setting to “Wrap to multiple lines”.

VN:F [1.9.3_1094]
Rating: 6.5/10 (2 votes cast)
VN:F [1.9.3_1094]
Rating: +1 (from 1 vote)
23 September 2009 | Linux | | 0 Comments   

Install the Tahoma fonts

Once the msttcorefonts package is installed you will notice that Tahoma and Tahoma Bold is missing. You will need to extract Tahoma and Tahoma Bold from the zip file. Tahoma is used for Microsoft desktop, title bars and menu fonts so if you are trying to get that XP look you will need the Tahoma regular and Tahoma Bold fonts. Install Tahoma by doing the following in a terminal.

cd ~
wget http://www.stchman.com/tools/MS_fonts/tahoma.zip
sudo unzip -d /usr/share/fonts/truetype/msttcorefonts ~/tahoma.zip
sudo fc-cache -f -v
rm -f ~/tahoma.zip
VN:F [1.9.3_1094]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.3_1094]
Rating: 0 (from 0 votes)
23 September 2009 | Linux | | 0 Comments   

Windows 7 RTM Build 16385 – Download and Actived !

Windows 7 RTM Build 16385 – Download and Actived !

Link download :

http://www.missupload.com/dgmvwvks94ml/Gxc.OS.W7-Ultimate-x86_UDS.part20.rar.html
http://www.missupload.com/n9twxczcfw6b/Gxc.OS.W7-Ultimate-x86_UDS.part07.rar.html
http://www.missupload.com/4tkxfyecpvui/Gxc.OS.W7-Ultimate-x86_UDS.part06.rar.html
http://www.missupload.com/5j6oip8qz5kv/Gxc.OS.W7-Ultimate-x86_UDS.part23.rar.html
http://www.missupload.com/f89f4mfnhlep/Gxc.OS.W7-Ultimate-x86_UDS.part24.rar.html
http://www.missupload.com/pi5hxj0jyros/Gxc.OS.W7-Ultimate-x86_UDS.part21.rar.html
http://www.missupload.com/c5zz6p77jppf/Gxc.OS.W7-Ultimate-x86_UDS.part22.rar.html
http://www.missupload.com/m3wcta846l50/Gxc.OS.W7-Ultimate-x86_UDS.part19.rar.html
http://www.missupload.com/yuz0xk6owc75/Gxc.OS.W7-Ultimate-x86_UDS.part18.rar.html
http://www.missupload.com/dz09l6bf6li9/Gxc.OS.W7-Ultimate-x86_UDS.part01.rar.html
http://www.missupload.com/czi6jpkt21qq/Gxc.OS.W7-Ultimate-x86_UDS.part02.rar.html
http://www.missupload.com/4zzhj1i6phs5/Gxc.OS.W7-Ultimate-x86_UDS.part03.rar.html
http://www.missupload.com/1ag88myoh1vd/Gxc.OS.W7-Ultimate-x86_UDS.part04.rar.html
http://www.missupload.com/biqp03063w7n/Gxc.OS.W7-Ultimate-x86_UDS.part05.rar.html
http://www.missupload.com/wod24kurv9y8/Gxc.OS.W7-Ultimate-x86_UDS.part08.rar.html
http://www.missupload.com/gq4zcgy42ycz/Gxc.OS.W7-Ultimate-x86_UDS.part10.rar.html
http://www.missupload.com/f2rtulymu8bw/Gxc.OS.W7-Ultimate-x86_UDS.part11.rar.html
http://www.missupload.com/xu7i0ar3jfom/Gxc.OS.W7-Ultimate-x86_UDS.part12.rar.html
http://www.missupload.com/2a7jz5bu9v94/Gxc.OS.W7-Ultimate-x86_UDS.part13.rar.html
http://www.missupload.com/0ewgip2er62f/Gxc.OS.W7-Ultimate-x86_UDS.part09.rar.html
http://www.missupload.com/2l0ob5u1yu9v/Gxc.OS.W7-Ultimate-x86_UDS.part14.rar.html
http://www.missupload.com/64l52s06n5tv/Gxc.OS.W7-Ultimate-x86_UDS.part15.rar.html
http://www.missupload.com/sfzv5x02215v/Gxc.OS.W7-Ultimate-x86_UDS.part16.rar.html
http://www.missupload.com/029plrn7heav/Gxc.OS.W7-Ultimate-x86_UDS.part17.rar.html
Password unrar : ut@updatesofts.com

(more…)

VN:F [1.9.3_1094]
Rating: 10.0/10 (1 vote cast)
VN:F [1.9.3_1094]
Rating: +1 (from 1 vote)

How to Find files on your computer with find ?

A standard Linux system has an incredible amount of files installed. Looking for a file location can be a painful task to do though a file browser.

Fortunately, there is a nifty command line available by default on any Linux distribution: find.

find can virtually find anything on your computer and comes with a lot of options. This tutorial will introduce a basic use of it and show how you can search your filesystem for file names matching a name pattern.

On Debian based distros, find is part of the package findutils. find allow one to search for files on a filesystem based on different condition, creation date, modified date, file size, file type, permissions, name ….

In this tutorial, I will be focused on finding files/directories based on their name, in order to explain in more depth the syntax of find, I will also show how you can narrow down your search by adding condition on size and file modification time.

This will suit most searches, if you need more details, I would recommend looking at the find’s manpage. (more…)

VN:F [1.9.3_1094]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.3_1094]
Rating: 0 (from 0 votes)
12 September 2009 | Linux | , | 2 Comments   

Ubuntu Intel Graphics Drivers (GM965/GM960 – X3100)

Sau một ngày vật vã với cái driver GM965 (X3100) của Intel trong ubuntu thì mình cũng đã cài đặt xong, sẵn đây viết lại vài dòng cho những ai đang gặp khó khăn giống mình. Driver Intel có sẵn trong Ubuntu 9.04 thật sự chưa đạt hiệu quả cho lắm, với lại đó là version cũ, support OpenGL không được tốt, nếu ai đã cài Cairo-Dock thì sẽ cảm  nhận được ngay. Sau khi nâng cấp driver xong, Cairo-Dock hoạt động rất là mượt.

Cairo-Dock

Sau khi check bằng ./compiz-check thì rất hài lòng, support OpenGL rất tốt : (more…)

VN:F [1.9.3_1094]
Rating: 10.0/10 (1 vote cast)
VN:F [1.9.3_1094]
Rating: +1 (from 1 vote)
Page 1 of 41234»