Skip to main content

Posts

Showing posts from November, 2009

First post using stackedit

Welcome to StackEdit! Hey! I’m your first Markdown document in StackEdit 1 . Don’t delete me, I’m very helpful! I can be recovered anyway in the Utils tab of the Settings dialog. Documents StackEdit stores your documents in your browser, which means all your documents are automatically saved locally and are accessible offline! Note: StackEdit is accessible offline after the application has been loaded for the first time. Your local documents are not shared between different browsers or computers. Clearing your browser’s data may delete all your local documents! Make sure your documents are synchronized with Google Drive or Dropbox (check out the Synchronization section). Create a document The document panel is accessible using the button in the navigation bar. You can create a new document by clicking New document in the document panel. Switch to another document All your local documents are listed in the document panel. You can switch from one to anoth

Adding color to VIM and Cygwin

These are notes-to-self more than anything, but maybe you can use them. You can add colorized text to Vim by adding the following to .vimrc in your $HOME directory: " Switch syntax highlighting on, when the terminal has colors " Also switch on highlighting the last used search pattern. if &t_Co > 2 || has("gui_running") syntax on set hlsearch endi If you don't have this file, you can create it using :mkv. You can change your font-settings by editing them with Edit >> Select Font and then typing :set guifont, followed by :mkv!. I prefer Courier New, 9pt. If you want colors for file listings (using ls) in Cygwin, add the following to your .bashrc file in your $HOME directory: alias ls="ls -CF --color"

Dịch Ruby với Scite

Vào thời điểm viết bài, Scite đã có version 2.01, download tại: www.scintilla.org/ SciTE Download.html. Ruby đã có version 1.9.1, download tại http://www.ruby-lang.org/en/downloads/ 1. Download Ruby về, giải nén và cài đặt (trong Windows), nhớ là nếu sử dụng bản 1.9.1 thì cần download thêm các gói cài đặt tại http://www.garbagecollect.jp/ruby/mswin32/en/documents/install.html. Sửa đổi biến PATH của Windows. 2. Cài đặt Scite. 3. Chạy Scite, chọn Option/ open ruby.properties, sửa file ruby.properties bằng cách thêm các dòng: command.name.0.*.rb=irb command.0.*.rb=irb.bat command.is.filter.0.*.rb=1 command.0.subsystem.*.rb=1 File ruby.properties sẽ có dạng: 4. Gõ code Ruby, chọn Language/Ruby, sau đó ấn F5 hoặc chọn Tools/Go để dịch code Ruby ^^.

Install SystemC in Cygwin

Note: This tutorial works with Cygwin 1.5.25-15 and SystemC 2.2.0. Installing Cygwin Hop over to cygwin's website and follow the installation procedure. I would recommend to do a full installation. Installing SystemC SystemC's class library and event based simulator can be downloaded from the SystemC.org website. You need to create a login before you can download the files. Type: export CXX g++ export CC gcc I used the following procedure to install it: Download systemc-2.2.0.tgz and write to a suitable location Unzip the file using tar zxvf systemc-2.2.0.tgz Navigate to the systemc-2.2.0 directory Create a subdirectory as per the INSTALL file called objdir Navigate to the objdir directory create the destination directory mkdir /usr/local/systemc-2.2 Execute ../con

Lý luận Thiền tông trong Thập mục ngưu đồ

Các bức tranh chăn trâu được sáng tạo từ thời nhà Tống ở Trung Quốc (960 – 1279). Ngay từ ban đầu nó đã được xem như là những bức họa tiêu biểu, trình bày về tinh hoa Phật giáo Thiền tông – Trung Hoa. Mười bức tranh Thập mục Ngưu đồ của Thiền tông tương ứng với quá trình hành đạo của một người phát nguyên đạt đến sự giác ngộ và bên trong nó ẩn giấu những tinh hoa của Phật giáo Đại thừa. Sau khi Phật giáo được truyền nhập vào Việt Nam thì một số hòa thượng với kiến thức Hán học uyên thâm đã chuyển đổi nội dung và cách hành văn phù hợp với sự nhận thức của người Việt đối với Thập Mục Ngưu Đồ . Các tác giả sáng tạo nên bộ tranh đã mượn hình ảnh chăn trâu để diễn tả về quá trình “ minh tâm thấu tính ” tức “ con trâu ” là cái bản ngã của ta được ví như một con vật. Nguồn gốc của môn phái Thiền tông lại chính là nằm ở khái niệm “tri hữu” tức nhận biết về sự tồn tại của vật đó. Một khi ta đã minh tâm thấu tính tức là ta đã trở thành Phật là ý niệm nằm sâu trong hình ảnh chăn trâu. Chúng ta

Ý nghĩa hoa sen

Hoa sen (tên khoa học là Nelumbo Nucifera) là loại hoa mọc lên từ rễ củ nằm dưới lớp bùn đất ở dưới nước, hoa thường có màu trắng, hồng, có khi phơn phớt vàng, xanh, tím... Hoa nở vươn khỏi mặt nước, lộ bày đài hoa, nhụy và hạt. Hoa đẹp hương thơm tinh khiết, nên được mọi người ưa chuộng. Ấn Độ giáo có truyền thuyết cho rằng lúc khởi đầu vũ trụ một hoa sen mọc lên từ rốn của thần Vishnu, giữa hoa có Phạm thiên ngói kiết già. Hoa sen lại là một trong tám biểu tượng của Phật giáo, khó có thể kể hết kinh sách Phật giáo nói về hoa sen, sau đây chỉ là phần khái lược. Truyền thuyết kể rằng khi Đức Thích-ca đản sinh, Ngài đi bảy bước và có bảy hoa sen đỡ bàn chân Ngài. Chư Phật, Bồ-tát thường được miêu tả ngồi hay đứng trên đài sen tay cầm hoa sen. Kinh Diệu Pháp Liên Hoa lấy hoa sen làm đề kinh. Các tu viện, chùa chiền, hội đoàn Phật giáo thường trang trí hoặc lấy hoa sen làm biểu tượng. Sở dĩ như thế vì hoa sen đẹp tinh khiết, có hương thơm không nhiễm bùn bên trong hoa có đàn có hạt..