Skip to main content

Posts

Showing posts with the label Linux

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...

Install latest R (3.2.5) on Debian Jessie

Installing R on Ubuntu/Debian is quite painful, especially when you want to install the latest version. I have no clue why this situation stills for a long time, but this is a way to work around. On terminal: ```bash Appends the CRAN repository to your sources.list file You could replace jessie-cran3 by the newer one Find the correct value at https://cloud.r-project.org/ sudo sh -c 'echo "deb http://cran.rstudio.com/bin/linux/debian jessie-cran3/" >> /etc/apt/sources.list' Adds the CRAN GPG key, which is used to sign the R packages for security. sudo apt-key adv --keyserver subkeys.pgp.net --recv-key 381BA480 sudo apt-get update sudo apt-get install r-base r-base-dev ``` Installing h2o : ```bash to retrieve curl-config otherwise you may have a problem with RCurl sudo apt-get install libcurl4-gnutls-dev ``` R install.packages ("h2o")

How to auto indent in vim

For many years, vim still be one of the most common editor for developers. There are (too) many shortcuts and commands for vim to remember, so sometimes it is quite difficult. For auto indent, one feature I feel very important, especially when you copied the code from somewhere: 1G=G 1G: move to the first line =: auto indent G: go to end of file

Cảm nhận về Ubuntu 8.10

Cuối cùng thì Ubuntu 8.10 đã ra mắt, với một cái tên khó nhớ, và biểu tượng là một con tựa như cừu. Cảm nhận đầu tiên là cập nhật từ 8.04. Mặc định thì Ubuntu 8.04 sẽ không cập nhật lên Ubuntu 8.10, vì bản 8.04 là bản LTS - Long Term Support. Với một vài chỉnh sửa nhỏ, thì điều này được giải quyết. Tiếp theo, phải nói ngay rằng, cơ chế cập nhật Ubuntu rất chuối. Với tình hình net của Việt Nam - chính xác hơn là ở Hà Nội thôi - thì để cập nhật Ubuntu phải mất kha khá thời gian, mà trong lúc cập nhật hầu như không làm được nhiều việc, nên tớ thường để máy đi chơi (ngủ). Thế nhưng, Ubuntu lại không cập nhật luôn một lèo, để sáng mai tớ dậy nó trình ra một cái báo cáo, mà giữa chừng lại đưa ra những câu hỏi xác nhận ngớ ngẩn, trong lúc tớ ngủ khì, và đinh ninh là mình sẽ có bản 8.10 vào sáng mai. Thế là phí một đêm bật máy. Trái với truyền thống, bản Ubuntu này không cập nhật cho Firefox lên bản 3.1 beta, với cái Trace Monkey nổi đình nổi đám, mà vẫn sử dụng Firefox 3.0.3, và OpenOffice...