Thứ Tư, 9 tháng 12, 2015

Sau Khi bạn đã cài đặt xampp vào đường đẫn /opt/lampp thì bạn tiến hành làm theo các bước sau để cài đặt laravel
Bước 1: Cài đặt biến môi trường cho php
Mục đích là thiết lập để hệ thống nhận ra php trong xampp, nếu ai đã cài php thuần rồi thì khỏi phải làm bước này:
export PATH=$PATH:/opt/lampp/bin
Bước 2: Install composer(Yêu cầu để có thể cài đặt laravel)
$ curl -sS https://getcomposer.org/installer | php
$ sudo mv composer.phar /usr/local/bin/composer
Bước 3: Download laravel tại đây, chọn một phiên bản, bạn sẽ tải về một file zip, giải nén nó vào thư mục htdocs của xampp, bạn sẽ được một thư mục cùng tên với file zip tải về, ví dụ mình tải laravel-4.2.11.zip thì khi giải nén sẽ được thư mục laravel-4.2.11, bạn đổi tên lại thành laravel cho dễ làm việc.
Bước 4: Truy cập vào thư mục chứa mã nguồn của laravel:
$ cd /opt/lampp/htdocs/laravel
Bước 5: Chạy lệnh sau để cài đặt laravel
$ /opt/lampp/bin/php /usr/local/bin/composer install 
Bước 6: Sau khi Khởi động xampp, truy cập trình duyệt web vào địa chỉ sau để chạy laravel:
http://localhost:8888/laravel/public/index.php
Nếu xuất hiện thông báo lỗi  Error in exception handler thì do bạn chưa cấp quyền để laravel có thể truy cập vào các file và thư mục trong
app/storage
Để cấp quyền , bạn chạy lệnh sau từ thư mục lavarel:
sudo chmod -R 777 ./app/storage
Cuối cùng, thành quả mà bạn đạt được sẽ như sau:

Thứ Bảy, 5 tháng 12, 2015

Trên linux, việc thao tác với command là điều thường xuyên, có những công việc làm hằng ngày và mỗi lần ta phải gõ rất mất thời gian, có những command hay ta muốn đánh dấu lại để dùng, hay có những command dài ta không nhớ hết, đó là ý tưởng để mình viết command manager, giao diện đơn giản, nhỏ gọn giúp bạn quản lý những command của mình, tạm biệt việc gõ và nhớ command rối rắm
Link download: https://drive.google.com/file/d/0Bx5BOufKI6wETmEydWxESVdPS1E/view?usp=sharing

Thứ Tư, 2 tháng 12, 2015



Mặc định, root user trong ubuntu desktop được disable đi, tuy nhiên chỉ vài thao tác đơn giản sau bạn có thể bật nó lên:
[1] Set root password

trusty@dlp:~$ sudo passwd root
Enter new UNIX password:                      # set root password
Retype new UNIX password:                     # confirm
passwd: password updated successfully
trusty@dlp:~$ su -
Password:                                     # input root password
root@dlp:~#                                   # just switched to root
[2] Nếu bạn bất quyền root thì nên giới hạn những user có thể có quyền này:

root@dlp:~# vi /etc/pam.d/su
# line 15: uncomment and add a group which can switch to root
auth   required   pam_wheel.so   group=adm

root@dlp:~# usermod -G adm ubuntu 
Như vậy là các user nằm ở nhóm adm sẽ có thể trở thành root. Đơn giản quá phải không nào. Chúc các bạn thành công

Thứ Sáu, 25 tháng 9, 2015



Trong windows, việc tạo shortcut cho chương trình là vô cùng đơn giản, tuy nhiên trong ubuntu nó cũng chẳng khó khăn hơn là bao. Gồm 2 bước sau:

Bước 1: Bạn dùng trình soạn thảo văn bản gedit tạo một file mang tên shortcutDemo.desktop rồi copy đoạn code sau vào và lưu lại ở thư mục desktop:

[Desktop Entry]
Encoding=UTF-8
Name=Terminal
Comment=Use the command line
Exec=gnome-terminal
Icon=utilities-terminal
Categories=Application;
Version=1.0
Type=Application
Terminal=0

Giải thích một chút nhé
Mục Name là tên sẽ được hiển thị của shortcut, như ở ví dụ này là Terminal
Mục Exec là đường dẫn thực thi chương trình, tức là cái đường dẫn mà khi thực hiện nó trong terminal thì chương trình sẽ được khởi chạy.
Mục Icon là đường dẫn tới file icon của chương trình

Bước 2: Bạn cần cấp quyền thực thi cho file shortcut vừa tạo ra bằng lệnh sau:
sudo chmod +x ~/Desktop/shortcutDemo.desktop

Okie, đã hoàn thành, bây giờ bạn thấy trên desktop đã xuất hiện một shortcut tên là Terminal, bạn nháy đúp vào nó sẽ khởi chạy của sổ terminal :)), đó là thành quả.
Trường hợp bạn muốn hiển thị shortcut khi tìm kiếm ở thanh dash, bạn chạy thêm đoạn lệnh sau:
sudo cp ~/Desktop/shortcutDemo.desktop /usr/share/applications

Trên đây là các bước để thực hiện, bạn có thể thay thế các thông số ở đoạn code bước 1 sao cho phù hợp với từng chương trình.

Cách 2: cách này dành cho các bạn thích đồ họa ^^
Bước 1: Bạn chạy đoạn lệnh sau trong terminal để cài gnome panel:
sudo apt-get install --no-install-recommends gnome-panel

Bước 2: Bạn chạy tiếp đoạn lệnh sau để tạo shortcut:
sudo gnome-desktop-item-edit ~/Desktop --create-new

Nó sẽ hiển thị một hộp thoại cho bạn điền các thông số cần thiết rất dễ dàng.
Chúc các bạn thành công!


Sau khi cài đặt XAMPP trên ubuntu, bạn có thể tạo một shortcut cho nó để ta có thể chạy nó từ desktop hoặc thanh dash.  Cách làm như sau:

Bước 1: Bạn chạy lệnh
sudo apt-get install gksu

Bước 2: Bạn dùng một trình editor bất kỳ như gedit chẳng hạn tạo một file mang tên XAMPP.desktop ở desktop rồi copy đoạn code sau và lưu lại:

[Desktop Entry]
Encoding=UTF-8
Name=Xampp Manager
Comment=Manage XAMPP
Exec=gksudo /opt/lampp/manager-linux.run
Icon=/opt/lampp/htdocs/favicon.ico
Categories=Application;Development;Web
Version=1.0
Type=Application
Terminal=0

Bước 3: Bạn nhập các lệnh sau:

cd Desktop //lenh nay truy cap den thu muc desktop
sudo chmod +x XAMPP.desktop //lenh nay nham cap quyen thuc thi cho shortcut vua tao
sudo cp XAMPP.desktop /usr/share/applications  //lenh nay nham copy shortcut vua tao vao thu muc applications nham de hien thi trong dask
 
Sau khi hoàn thành 3 bước trên, bạn chạy thử bằng cách nháy đúp vào shortcut trên desktop hoặc vào dash tìm kiếm với từ xampp và chạy, chúc các bạn thành công!

Thứ Tư, 19 tháng 8, 2015




Dưới đây là một số trang để tìm tài liệu it hay mà mình biết, ai còn biết trang nào tốt thì comment nha :)

1. https://it-ebooks.info
2. http://www.ebooksfeed.com/category/it-ebooks/
3. ebook3000.com
4. http://www.ebooks-space.com/
5.http://www.freebookspot.es/
6. http://it-ebooks.org/

Trên đây là một số trang mà mình thấy hay.
Tham khảo thêm: link

Chủ Nhật, 9 tháng 8, 2015



IDM là công cụ download hàng đầu trên windows, nó cho phép chúng ta dùng thử 30 days
Nếu bạn là một tín đồ của nó thì sau 30 days có thể bạn sẽ tìm đến các phương pháp crack,
tuy vậy các chương trình crack lại thường đi kèm với nhiều điều không hay:
Thứ nhất crack đương nhiên vi phạm tác quyền,
Thứ hai crack có thể ảnh hưởng đến máy tính của bạn bởi các chương trình crack ẩn chứa vô số hiểm họa,
Thứ ba crack thì khi update phải crack lại rất bất tiện
Lợi ích của việc dùng thử khắc phục được tất cả các vấn đề ở trên.
Công cụ IDM Trial Reset của mình có thể giúp bạn, nó được viết bằng Batch file, nhỏ nhẹ, tiện dụng
Link download

I. Giới Thiệu về vim
II. Cài đặt vim
III. Sử dụng vim cơ bản
IV. Cài đặt các plugin cần thiết và sử dụng nó.


I. Giới Thiệu về Vim:


Vim là một trình editor được sử dụng rộng rãi ở các hệ điều hành nhân Unix như Linux hay mac. Nó được viết bởi Bram Moolennaar dựa trên các mã nguồn mở và được phát hành lần đầu vào năm 1991. Nó được thiết kế để sử dụng có command-line để viết code, và gần như người viết không còn sử dụng đến chuột máy tính(Hãy quên nó đi là vừa). Vim hổ trọ cho rất nhiều ngôn ngữ lập trình phổ biến.

II. Cài đặt vim:


Sử dụng Terminal trên ubuntu: sudo apt-get install vim

III. Sử dụng vim

Sau khi cài đặt ta bật terminal trong ubuntu:

Thử một file text bất kì nơi thư mục hiện tại

































- Ở đây vim đang ở chế độ VISUAL, tức là chế độ dùng để thao tác với file hiện tại, ví dụ như lưu tập tin, thoát tập tin, save as...
- Để có thể nhập liệu được vào file ta cần chọn chế độ INSERT , nhấn phím i (hoặc INSERT) để vào. Tại đây ta có thể thỏa mái viết vào file text.txt. Sau khi viết xong muốn lưu lại ta cần trở về chế độ VISUAL, nhấn ESC để trở về sau đó gõ :wq . File này sẽ tự động lưu vào và thoát ra ngoài terminal chính.

- Để sử dụng thành thạo vim bạn có thể gõ vimtutor ở terminal để làm theo hướng dẫn
- Sau đây mình hướng dẫn một số lệnh co bản ở chế độ VISUAL để thao tác.
Di chuyển con trỏ:
+ h : sang trái
+ j: đi xuống
+ k: đi lên
+ l: sang phải
Xóa:
+ x: để xóa từng chữ
+ dd: để xóa 1 dòng
+ dw: xóa một từ
+d2w: xóa 2 từ
Sao chép:
+ yy: để copy 1 dòng
+p: để paste dòng đó sau dòng hiện tại
+P: để paste dòng đó trước dòng hiện tại
- Lện thoát:
+:wq: Write an quit, lưu file vừa và thoát ra ngoài
+:q!: Thoát ra nhưng không có cảnh báo
+:q : Thoát ra nhưng sẽ có cảnh báo
+:w tenfilecanluu , dùng để đặt tên file cần lưu


IV. Cài đặt các plugin cần thiết và sử dụng nó.


-Để quản lý và cài đặt dễ dàng các plugin thì ta cần cài đặt một cái plugin quản lý. Ở đây mình xin giới thiều Pathogen, ngoài ra cũng có các plugin tương tự khác như Vundle.
- Mục đích của các plugin giúp lập trình nhanh- tiện lợi - vui vẻ hơn
- Để cài đặt plugin Pathogen
+ Sử dụng command-line :
mkdir -p ~/.vim/autoload ~/.vim/bundle && \ 
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
+ Vào
vimrc để chỉnh sử lệnh bổ sung: vi ~/.vimrc
vimrc là 1 file chứa các lệnh nhằm cài đặt cơ bản lên vim ví dụ như để hiển thị số dòng của file trong vim ta chỉ cần vào file vimrc và thêm dòng: set number
Tại đây để thực thi được pathogen ta thêm dòng này vào:

execute pathogen#infect()
syntax on
filetype plugin indent on


// dòng 1 để thêm pathogen
//dòng 2 để hiển thị phân biệt cú pháp bằng các màu khác nhau như giữa các tên hàm và lệnh
// chế độ bật để có thể thêm các plugin(Đoán đại nghĩa =D)

Sau khi cài xong bạn có thể gõ cd ~/.vim sau đó gõ ls sẽ hiển thị thư mục autoload ở thư mục này sẽ chứa file pathogen.vim → đây chính là mã nguồn của nó.
Bạn có thể vào đây để biết rõ hơn về plugin này: https://github.com/tpope/vim-pathogen


- Cài các plugin tiếp theo thông qua github.
Lệnh:
cd ~/.vim/
git init

git submodule add https://github.com/scrooloose/nerdtree.git bundle/nerdtree
git submodule add https://github.com/fs111/pydoc.vim.git bundle/pydoc
git submodule add https://github.com/ervandew/supertab.git bundle/supertab
git submodule add https://github.com/vim-scripts/taglist.vim.git bundle/taglist
git submodule add https://github.com/vim-scripts/pythoncomplete.git bundle/pythoncomplete
git submodule add https://github.com/fholgado/minibufexpl.vim.git bundle/minibufexpl
git submodule add https://github.com/alfredodeza/pytest.vim.git bundle/pytest
git submodule add https://github.com/nvie/vim-flake8.git bundle/flake8

git submodule init
git submodule update
git submodule foreach git submodule init
git submodule foreach git submodule update


Bạn có thể vào đây để xem hướng dẫn sử dụng git trên ubuntu: https://www.howtoforge.com/tutorial/install-git-and-github-on-ubuntu-14.04/

Để biết rõ thêm các plugin trên bạn có thể vào các link github trên để tìm hiểu rõ thêm về các plugin. Ở đây mình sẽ nói sơ một số plugin trên.

Chia cửa số màn hình terminal.

Dùng nhiều cửa sổ màn hình để so sánh code với nhau. Trong vim để làm được điều này, thì tại chế độ VISUAL.

- Chia theo chiều dọc: vsplit

- Chia theo chiều ngang: split

Để di chuyển giữa các cửa sổ thì dùng tổ hơp phím Ctrl - w + phím di chuyển. Để tiện thì ta thêm và ~/.vimrc những dòng này

map <C-j> <C-w>j

map <C-k> <C-w>k

map <C-l> <C-w>l

map <C-h> <C-w>h



Sau khi thêm dòng này ta chỉ cần dùng Ctrl + phím di chuyển để đến với các màn hình khác nhau

Các plugin hỗ trợ phần nhiều cho lập trình Python.

=> Trên đây là những tip mình viết về vim cho những bạn muốn tìm hiểu, mình cũng chỉ bắt đầu sài vim hơn 2 tháng nên mong các bạn giúp đỡ và góp ý thêm. Thank you for reading. Happy day.

Thứ Bảy, 8 tháng 8, 2015


Nếu bạn không muốn động chạm tới crack, không muốn vi phạm tác quyền thì những cách sau đây có thể giúp bạn.

Normally there are two types of restrictions for shareware. The first one is the demo version with limited or crippled functionality that doesn’t have an expiry date and another type is the fully functional trial version that expires after a certain period of time. The amount of days given to try are normally around 30 days but it could be shorter or longer depending on the author of the software. In the earlier days, you can easily run the expired software by simply backdating the date on your Windows operating system but some software has got smarter to detect this and instantly ends the trial period.
Software Expired
You might think to yourself, how does the shareware knows how many days left in the trial period? Most of the time these commercial and freeware protectors drop some information somewhere deep inside your computer after installation so they know when it was installed and then comparing with the official current time pulled from the Internet. It is possible to find the location that records that information by using file or registry monitoring software including third party uninstaller software such as Revo Uninstaller but it can be tedious and frustrating work.
Here’s a few simpler ways on how you can extend trial periods of software using various different methods.
1. NirSoft RunAsDate
As the name might suggest, RunAsDate performs a trick on the trial software that has expired by injecting the time and date you specify into its process. This has a similar effect to manually setting your system clock to a different time and date, but in this instance your real clock remains unchanged. RunAsDate can also have multiple instances of its program running at once, and each one can have a separate date, all different to the real one.
As a simple example, if you’re using the popular archiver WinZip and its 30 day trial period has expired, it won’t let you use the program anymore, and you either have to purchase a license or uninstall it. Using RunAsDate, you can set the date back to be within the trial period making WinZip usable again. The image below is WinZip after the 30 day trial has passed, note the “Use Evaluation Version” is now grayed out.
WinZip trial has expired
If you now load up RunAsDate, all you have to do is browse for the application to use the program on, in this case “C:\Program Files\WinZip\WINZIP32.EXE”, then choose a date and time from the pop-out calender to before the trial period expired. Now simply press the Run button.
RunAsDate
RunAsDate has a few other options such as allow arguments to be applied to the executable, and also a useful option to create a desktop shortcut which will automatically launch the application with the configuration options you’ve supplied in the window. The Immediate Mode check box can be used to inject the date/time earlier in the process, but is known to cause crashes on some programs, especially those using .NET.
trial period extended
If you run WinZip after entering the right date and time numbers and press Run or launch it via a shortcut, you’ll notice it no longer says expired and the Evaluation button is clickable again. Although time and date altering isn’t going to work on all trial software that has an expiry, it is a very quick and easy thing to try out first before turning to more advanced methods.
Download NirSoft RunAsDate

2. Trial-Reset 4.0
This is the final version released in 2010 by “The Boss”, and is able to scan and remove 45 types of commercial and freeware protections including some software that uses custom protectors such as Reflexive, Namo, ABBYY, WinRAR, WinZip and etc. In fact if you know the registry location of where the trial information are recorded for a shareware program, you can create your own text file and save it in the Lists folder.
Trial-Reset
Do note that Trial-Reset does not modify the shareware in anyway. It simply cleans the registry keys generated by the protectors which are normally not removed even after uninstalling the software. This is how a lot of shareware knows you have no trial period left, even if you uninstall and re-install the program again. Trial-Reset is very easy to use. To start scanning, simply click on the All located at the bottom left. The scanning will take a while since some of the methods require scanning the hard drive. The right pane will show all the detected keys that are used by any shareware titles.
You can backup, view or delete the keys, add to protect or auto cleaning list from the right click context menu. If you have a lot of shareware installed, there will be quite a number of results and you will need to do a trial and error to find the key that is associated with the software that you want to reset the trial period.
Download Trial-Reset 4.0 including Source Code
3. Time Stopper
Time Stopper is a program that behaves in a similar way to RunAsDate and fools the expired application into thinking it’s still within the trial period. This tool does differ slightly though because you don’t have the option to directly run the expired program from Time Stopper, but instead it is designed specifically to run from a desktop shortcut with the new time and date injected when you run the program from the shortcut.
Time Stopper
Simply run Time Stopper and locate the trial software executable with the Browse button. Choose the new time and date from the pop-out calender, and then give the shortcut icon a name and finish by clicking the create button. Like Nirsoft RunAsDate, this tool will work on some shareware programs and not others but is easy enough to try.
Download Time Stopper

4. Using a Software Installation Monitor
This method may not seem that obvious at first, but actually can work quite well in many circumstances. The theory is simple in that you use a standard piece of installation monitor software which watches the files and registry entries that a program creates when it installs, and then can completely uninstall the software including everything that doesn’t get removed by the standard uninstaller. This often has the effect of also removing registry entries shareware might leave behind to watch its trial expiry status.
As an example, this can be achieved for the Internet Download Manager shareware program when its 30 day trial expires. We happen to know that the trial status of IDM is stored in the registry key “HKEY_CURRENT_USER\Software\Classes\CLSID\{07999AC3-058B-40BF-984F-69EB1E554CA7}”, but IDM doesn’t remove this key when you uninstall through its own uninstaller and the time/date trick doesn’t work. Therefore once the trial period expires, the information remains on your computer and it will stay expired even if you re-install the program again in future.
Complete Uninstall
To demonstrate, we installed Comodo Programs Manager which is one of the better installation monitor’s around, and let it automatically monitor the install of IDM. Then once the trial period for IDM has expired, we simply select it for a “Complete Uninstall” in Comodo Programs Manager. After the standard uninstaller has finished, Programs Manager will show the extra files and registry entries that have been left behind. Expand the Registry tree and looking at the keys, we can see the IDM key which controls the trial period status is listed for removal. Continue the removal and if you re-install Internet Download Manager, its trial status will be reset to 30 days.
registry key left intact after uninstallation
This method is obviously not foolproof but if you can install the trial software for the first time after installing the installation monitor, and the trial information is kept in the registry or a data file, one of these programs has a chance of picking it up and removing it which will reset the trial period.

5. Registry Trash Keys Finder
This might be a better solution these days because it is up-to-date. Unlike the Trial-Reset program which was last updated more than 2 years ago, it may not work on shareware that uses a newer version protector. Although Registry Trash Keys Finder is free, there are some limitations where some of the protection keys are not shown. The full version of Registry Trash Keys Finder is only available after donating to the author of this tool and it removes the limit.
Registry Trash Keys Finder Free
As you can see at the screenshot above, there are 3 registry keys that shows {FREEWARE-VERSION-CAN’T-SHOW-THIS-KEY} for the Armadillo protector which cannot be seen nor deleted. We wanted to test the full version so badly that we donated to get it. From the “what’s new” area, we read that they’ve recently added a search routine for the latest Alawar.com games keys so we decided to put Alawar games to the test.
We downloaded a game from Alawar called Sticky Linky and played the whole free 60 minutes. Once the 60 minutes free play time is up, it shows 0 minutes game time left and we can no longer play the game until we purchase the game.
0 minutes game time left
We ran Registry Trash Keys Finder full version and Alawar came up in the search results.
Registry Trash Keys Finder Full version
The Alawar key is deleted and running Sticky Linky now gives us another 60 minutes of free game time!
Alawar Play for Free
The Registry Trash Keys Finder full version has successfully extended the trial period of a game and it should also work for other software too. Other than just resetting the trial period, it also acts as a registry cleaner/optimizer where it detects obsolete registry keys of uninstall/app paths/SharedDLLs/Installer/MUICache/Help, unused file extensions, empty CLSID and TypeLib key, invalid name of CLSID and many more.
Download Registry Trash Keys Finder

Nguồn bài viết: 
https://www.raymond.cc/blog/how-to-extend-the-trial-period-of-a-software/2/
Tác giả: RayMond

Chủ Nhật, 2 tháng 8, 2015




Sau đây mình xin chia sẻ với các bạn 2 trang web dùng để tra cứu ip và dns,... mà mình rất tâm đắc
đó là trang http://whatismyipaddress.com/


và trang https://whois.domaintools.com .

 2 trang này có các công cụ tra cứu cực kỳ chất lượng bao gồm nhiều thứ, các bạn có thể tự khám phá. Mình cũng từng sử dụng nhiều trang khác như checkip.org hay whatismyip.com ,,,.. nói chung là rất nhiều trên mạng nhưng chất lượng và uy tín thì không bằng 2 trang này.
Bạn nào có trang khác chất lượng thì bình luận bên dưới nhé. Cám ơn.

Thứ Bảy, 1 tháng 8, 2015

Genymotion là một công cụ rất tốt để chạy các ứng dụng android, tuy vậy khi bạn tải về một máy ảo bằng geny thì hay gặp tình trạng download rất chậm, vì vậy hôm nay mình sẽ hướng dẫn các bạn một cách để tải về các máy ảo này bằng idm, rất nhanh :)
Mời các bạn xem video ở dưới

Thứ Năm, 23 tháng 7, 2015

Chắc hẳn nhiều bạn khi cài win8, 8.1, and higher 64bit thì bị gặp lỗi không thể format phân vùng để cài đặt: " Failed to format the selected partition.[ error: 0x8004242d] ", khi click vào xem chi tiết lỗi thì nhận được thông báo sau:

Rất ức chế phải không ạ :(

Nguyên nhân lỗi đã được nêu rõ, "Trên EFI systems, windows chỉ có thể được cài đặt trên trên GPT disks"

Có một số cách khắc phục điều này:

Cách 1: Các bạn chuyển đổi sang GPT, về lợi ích của gpt so với mbr, cách chuyển đổi từ mbr -> gpt, xem thread của VN-ZOOM UEFI Team

Cách 2: Là cách mà mình sẽ hướng dẫn sau đây(nhanh, gọn, và dành cho những ai lười giống mình :))

Cách này cũng có 2 phương án:

-Một là sửa bộ cài win:

- Sau khi attract bộ cài win ra usb hoặc ổ cứng, các bạn chú ý xóa những thư mục(hoặc file) sau:
Thư mục efi\boot các bạn xoá file bootx64.efi



Thư mục efi\microsoft\boot các bạn xoá các file cdboot.efi, cdboot_noprompt.efi, efisys.bin, efisys_noprompt.bin, memtest.efi


- Hai là lựa chọn khi cài usb:
Lúc cắm usb để cài win, trên máy asus, khi nhấn phím esc để boot vào thiết bị gắn ngoài, một số máy khác như del, sony vaio cũng tương tự, thay vì các bạn chọn dòng có chữ UEFI thì các bạn chọn dòng không có chữ UEFI nhé, như hình dưới các bạn sẽ chọn dòng KingstonDataTraveler 108PMAP, được mình đánh dấu màu cam
(2 dòng này chỉ khác nhau mỗi chữ UEFI)



Okie vậy là bạn đã khắc phục được lỗi ở trên rồi, lời khuyên là bạn nào nhận thấy các ưu điểm của uefi thì nên chuyển đổi sang UEFI, còn bạn muốn nhanh thì làm giống mình:)

Thứ Bảy, 27 tháng 6, 2015

Khi chạy một ứng dụng từ máy ảo trong Eclipse, mặc dù đã build thành công trước đó nhưng bạn vẫn gặp lỗi khó chịu "Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse log for stack trace". Sau đây là cách khắc phục:
Bưới 1: Chuột phải vào Project, chọn properties
Bước 2: Chọn mục Java Build Path
Bước 3: Tại tab Libraries, chọn mục Android Dependencies, sau đó, click Remove
Bước 4: Click OK để hoàn thành.
Xem hình sau:

Thứ Năm, 25 tháng 6, 2015


Mình tình cờ biết được trang web này khi đang chém gió với một số anh em vn-zoom, các bạn chỉ cần truy cập vào http://web.archive.org/ sau đó gõ địa chỉ trang web cần xem ở quá khứ rồi nhấn Browse History, sau đó các bạn có thể chọn thời gian xem mà mình cần.
Chúc các bạn thành công.

Thứ Tư, 24 tháng 6, 2015



Phiên bản sdk mới nhất đến hiện tại là Revision 24.3.3 nhưng trong các sách hay các tutorial dạy android thì thường dùng các phiên bản cũ hơn. Các phiên bản này có sự khác nhau khiến cho người học cảm thấy khó khăn khi tiếp cận, vì vậy mình sẽ hướng dẫn các bạn cách tải bản cũ của adroid sdk tool.
Đầu tiên bạn vào trang này https://developer.android.com/tools/sdk/tools-notes.html sau đó các bạn nhìn mục Revisions nó sẽ hiện các phiên bản, ví dụ như
SDK Tools, Revision 24.3.3 (June 2015)
SDK Tools, Revision 24.3.2 (June 2015)
SDK Tools, Revision 24.3.1 (June 2015)

Sau đó các bạn thay đổi link sau
http://dl-ssl.google.com/android/repository/tools_rXXX-windows.zip
http://dl-ssl.google.com/android/repository/tools_rXXX-linux.zip
http://dl-ssl.google.com/android/repository/tools_rXXX-macosx.zip

XXX các bạn thay bằng phiên bản cần tải, ví dụ mình cần tải SDK Tools, Revision 24.3.1 (June 2015) cho windows thì mình sẽ sửa link thành
http://dl-ssl.google.com/android/repository/tools_r24.3.1-windows.zip

Chúc thành công.
Ngoài ra các bạn có thể tìm thấy các bản adt bundle tại đây http://downloads.puresoftware.org/files/android/adt-bundle/

Tham khảo thêm:
http://stackoverflow.com/questions/23456946/problems-with-new-adt-bundle
https://code.google.com/p/android/issues/detail?id=73102
http://stackoverflow.com/questions/27449206/what-is-the-final-version-of-the-adt-bundle
http://web.archive.org/web/20131129095326/http://developer.android.com/sdk/index.html#download

Liên quan: http://stackoverflow.com/questions/22755432/new-android-application-project-cant-create-blank-activity


Chủ Nhật, 21 tháng 6, 2015

VPN service Hola, which has millions of users, recently came under fire for not being as up front with their users as they should have been. In the past weeks it has been revealed that Hola does the following:
  • allows Hola users to use each others’ bandwidth
  • sells their users’ bandwidth to their sister company Luminati (which recently helped facilitate a botnet attack)
  • and, according to Vectra research, Hola can install and run code and additional software on their users’ devices without their users’ knowledge.
If you are an Hola user or if you know someone who uses Hola, please make sure you/they are aware of this.
The service, which can be downloaded either as an app or as a browser extension, is a peer-to-peer network that allows people to use other Hola users’ bandwidth to anonymize their browsing activities and to circumvent geo-restricted content.


What many users did not realize is that they were essentially exit nodes and other Hola users could use their bandwidth to carry out illegal activity, like accessing child pornography.
Additionally, Hola sells its users’ bandwidth to its sister company, Luminati. Prior to the end of May, Hola did not mention Luminati on its website. Luminati’s premium service, which was originally advertised as being an anonymization network, uses Hola’s users as nodes to redirect traffic through. Hola’s connection to Luminati was exposed after a Luminati client launched a DDOS attack on 8chan, using Hola’s network (users) as a botnet.
Researchers at Vectra, a security company that identifies cyber attacks, dug a little deeper and discovered that Hola can also download and install additional software without the user’s knowledge and can install and run code without the user’s knowledge as well. Furthermore, Vectra found that Hola contains a built in console, “zconsole”. Zconsole allows direct human interaction with an Hola node even when Hola is not being actively used by a user. With access to the console an attacker could, as Vectra points out, “accomplish almost anything” and launch a large and targeted attack.
What we can learn from this
There is one main lesson people should learn from the Hola situation: research the products you download and use.
What many people may not have been aware of in this situation was how their bandwidth could be abused by fellow Hola users and how much control Hola had. A VPN helps you to anonymize all of your browsing activities – and to access content in geo-restricted regions by redirecting it through other servers. This can, for example, be useful if you travel or live abroad and want to access content from your home country.
What you should research before choosing a VPN service
Before deciding which VPN service to use, research the VPN provider and make sure the provider you choose is trustworthy. Find out what methods they use. If they use servers to redirect traffic through, make sure you know who owns the servers, what they do with the data that flows through the servers and whether or not they keep your data or sell it to third parties.
Avast for example, offers free antivirus, but our Avast SecureLine VPN is a premium service. We charge for our VPN services, because we pay extra to own and maintain servers around the world to redirect traffic through. We do not log the data that flows via our VPN services.
Know how much control your VPN service really has Hola is available as an app and browser extension and as mentioned above, Vectra found that Hola is able to do a lot more than just redirect your traffic. Hola can download and run additional code through your browser, without your knowledge. Of course a VPN service is always going to have access to your personal data (otherwise it wouldn’t work). However, even if they don’t provide a VPN feature, browser extensions have immense control over your browser that most users may not be fully aware of.
“Browser extensions can see everything you see in your browser, as well as everything you type in your browser, including passwords. Untrustworthy browser extension vendors can easily misuse this data and it is therefore extremely important that users be careful when choosing which browser extensions to install. On top of that, browser extensions can also manipulate search results and slow down your browser.” Thomas Salomon, head of Browser Cleanup product development at Avast.
What you should do before downloading a browser extension
When deciding on whether or not you should download a browser extension, you should also first make sure the extension comes from a reliable and trusted source, read both professional and user reviews about the extension and read the extensions terms and conditions before downloading it.
What you should do if you have a bad extension installed on your browser If you are worried that you may have malicious extensions (they are often added when installing an otherwise legitimate program without you even noticing) installed on your browser or have an extension that is difficult to remove, you should run Avast Browser Cleanup. Avast Browser Cleanup is a tool that removes malicious and poorly rated add-ons and restores your browser to its initial and clean state. Avast Browser Cleanup is included in Avast and is now also available as a stand-alone product.
Keeping your browsing safe
Our browsing information is extremely valuable: we bank online, keep in touch with our loved ones via email and social media, search for everything under the sun on the Internet. Piece all this information together and you have someone’s complete identity, not something you want to hand over to just anyone.
VPNs and browser extensions, like Hola, become dangerous the minute they abuse their power, without openly informing their users of what they are doing. It is therefore vital that you are aware of what software you have installed on your computer and what extensions you have installed on your browser to keep your private information private.

Thứ Năm, 18 tháng 6, 2015

cmd


a   
   ADDUSERS Add or list users to/from a CSV file
   ADmodcmd Active Directory Bulk Modify
   ARP      Address Resolution Protocol
   ASSOC    Change file extension associations•
   ASSOCIAT One step file association
   AT       Schedule a command to run at a specific time
   ATTRIB   Change file attributes
b
   BCDBOOT  Create or repair a system partition
   BCDEDIT  Manage Boot Configuration Data
   BITSADMIN Background Intelligent Transfer Service
   BOOTCFG  Edit Windows boot settings
   BROWSTAT Get domain, browser and PDC info
c
   CACLS    Change file permissions
   CALL     Call one batch program from another•
   CERTREQ  Request certificate from a certification authority
   CERTUTIL Utility for certification authority (CA) files and services
   CD       Change Directory - move to a specific Folder•
   CHANGE   Change Terminal Server Session properties
   CHKDSK   Check Disk - check and repair disk problems
   CHKNTFS  Check the NTFS file system
   CHOICE   Accept keyboard input to a batch file
   CIPHER   Encrypt or Decrypt files/folders
   CleanMgr Automated cleanup of Temp files, recycle bin
   CLIP     Copy STDIN to the Windows clipboard
   CLS      Clear the screen•
   CMD      Start a new CMD shell
   CMDKEY   Manage stored usernames/passwords
   COLOR    Change colors of the CMD window•
   COMP     Compare the contents of two files or sets of files
   COMPACT  Compress files or folders on an NTFS partition
   COMPRESS Compress one or more files
   CONVERT  Convert a FAT drive to NTFS
   COPY     Copy one or more files to another location•
   Coreinfo Show the mapping between logical & physical processors
   CSCcmd   Client-side caching (Offline Files)
   CSVDE    Import or Export Active Directory data 
d
   DATE     Display or set the date•
   DEFRAG   Defragment hard drive
   DEL      Delete one or more files•
   DELPROF  Delete user profiles
   DELTREE  Delete a folder and all subfolders
   DevCon   Device Manager Command Line Utility 
   DIR      Display a list of files and folders•
   DIRQUOTA File Server Resource Manager Disk quotas
   DIRUSE   Display disk usage
   DISKPART Disk Administration
   DISKSHADOW Volume Shadow Copy Service
   DISKUSE  Show the space used in folders
   DOSKEY   Edit command line, recall commands, and create macros
   DriverQuery Display installed device drivers
   DSACLs   Active Directory ACLs
   DSAdd    Add items to active directory (user group computer) 
   DSGet    View items in active directory (user group computer)
   DSQuery  Search for items in active directory (user group computer)
   DSMod    Modify items in active directory (user group computer)
   DSMove   Move an Active directory Object
   DSRM     Remove items from Active Directory
e
   ECHO     Display message on screen•
   ENDLOCAL End localisation of environment changes in a batch file•
   ERASE    Delete one or more files•
   EVENTCREATE Add a message to the Windows event log
   EXIT     Quit the current script/routine and set an errorlevel•
   EXPAND   Uncompress CAB files
   EXTRACT  Uncompress CAB files
f
   FC       Compare two files
   FIND     Search for a text string in a file
   FINDSTR  Search for strings in files
   FOR /F   Loop command: against a set of files•
   FOR /F   Loop command: against the results of another command•
   FOR      Loop command: all options Files, Directory, List•
   FORFILES Batch process multiple files
   FORMAT   Format a disk
   FREEDISK Check free disk space
   FSUTIL   File and Volume utilities
   FTP      File Transfer Protocol
   FTYPE    File extension file type associations•
g
   GETMAC   Display the Media Access Control (MAC) address
   GOTO     Direct a batch program to jump to a labelled line•
   GPRESULT Display Resultant Set of Policy information
   GPUPDATE Update Group Policy settings
h
   HELP     Online Help
   HOSTNAME Display the host name of the computer
i
   iCACLS   Change file and folder permissions
   IEXPRESS Create a self extracting ZIP file archive
   IF       Conditionally perform a command•
   IFMEMBER Is the current user a member of a group
   IPCONFIG Configure IP
   INUSE    Replace files that are in use by the OS
l
   LABEL    Edit a disk label
   LODCTR   Load PerfMon performance counters
   LOGMAN   Manage Performance Monitor logs
   LOGOFF   Log a user off
   LOGTIME  Log the date and time in a file
m
   MAKECAB  Create .CAB files
   MAPISEND Send email from the command line
   MBSAcli  Baseline Security Analyzer
   MEM      Display memory usage
   MD       Create new folders•
   MKLINK   Create a symbolic link (linkd) •
   MODE     Configure a system device COM/LPT/CON
   MORE     Display output, one screen at a time
   MOUNTVOL Manage a volume mount point
   MOVE     Move files from one folder to another•
   MOVEUSER Move a user from one domain to another
   MSG      Send a message
   MSIEXEC  Microsoft Windows Installer
   MSINFO32 System Information
   MSTSC    Terminal Server Connection (Remote Desktop Protocol)
n
   NET      Manage network resources
   NETDOM   Domain Manager
   NETSH    Configure Network Interfaces, Windows Firewall & Remote access
   NBTSTAT  Display networking statistics (NetBIOS over TCP/IP)
   NETSTAT  Display networking statistics (TCP/IP)
   NLSINFO  Display locale information (reskit).
   NLTEST   Network Location Test (AD)
   NOW      Display the current Date and Time 
   NSLOOKUP Name server lookup
   NTBACKUP Backup folders to tape
   NTDSUtil Active Directory Domain Services management
   NTRIGHTS Edit user account rights
   NVSPBIND Modify network bindings
o
   OPENFILES Query or display open files
p
   PATH     Display or set a search path for executable files•
   PATHPING Trace route plus network latency and packet loss
   PAUSE    Suspend processing of a batch file and display a message•
   PERMS    Show permissions for a user
   PERFMON  Performance Monitor
   PING     Test a network connection
   POPD     Return to a previous directory saved by PUSHD•
   PORTQRY  Display the status of ports and services
   POWERCFG Configure power settings
   PRINT    Print a text file
   PRINTBRM Print queue Backup/Recovery
   PRNCNFG  Configure or rename a printer
   PRNMNGR  Add, delete, list printers and printer connections
   ProcDump Monitor an application for CPU spikes
   PROMPT   Change the command prompt•
   PsExec     Execute process remotely
   PsFile     Show files opened remotely
   PsGetSid   Display the SID of a computer or a user
   PsInfo     List information about a system
   PsKill     Kill processes by name or process ID
   PsList     List detailed information about processes
   PsLoggedOn Who's logged on (locally or via resource sharing)
   PsLogList  Event log records
   PsPasswd   Change account password
   PsPing     Measure network performance
   PsService  View and control services
   PsShutdown Shutdown or reboot a computer
   PsSuspend  Suspend processes
   PUSHD    Save and then change the current directory•
q
   QGREP    Search file(s) for lines that match a given pattern
   Query Process / QPROCESS  Display processes
   Query Session / QWinsta   Display all sessions (TS/Remote Desktop)
   Query TermServer /QAppSrv List all servers (TS/Remote Desktop)
   Query User    / QUSER     Display user sessions (TS/Remote Desktop)
r
   RASDIAL  Manage RAS connections
   RASPHONE Manage RAS connections
   RECOVER  Recover a damaged file from a defective disk
   REG      Registry: Read, Set, Export, Delete keys and values
   REGEDIT  Import or export registry settings
   REGSVR32 Register or unregister a DLL
   REGINI   Change Registry Permissions
   REM      Record comments (remarks) in a batch file•
   REN      Rename a file or files•
   REPLACE  Replace or update one file with another
   Reset Session  Delete a Remote Desktop Session
   RD       Delete folder(s)•
   RMTSHARE Share a folder or a printer
   ROBOCOPY Robust File and Folder Copy
   ROUTE    Manipulate network routing tables
   RUN      Start | RUN commands
   RUNAS    Execute a program under a different user account
   RUNDLL32 Run a DLL command (add/remove print connections)

s
   SC       Service Control
   SCHTASKS Schedule a command to run at a specific time
   SET      Display, set, or remove session environment variables•
   SETLOCAL Control the visibility of environment variables•
   SetSPN   Edit Service Principal Names
   SETX     Set environment variables
   SFC      System File Checker 
   SHARE    List or edit a file share or print share
   ShellRunAs Run a command under a different user account
   SHIFT    Shift the position of batch file parameters•
   SHORTCUT Create a windows shortcut (.LNK file)
   SHUTDOWN Shutdown the computer
   SLEEP    Wait for x seconds
   SLMGR    Software Licensing Management (Vista/2008)
   SORT     Sort input
   START    Start a program, command or batch file•
   STRINGS  Search for ANSI and UNICODE strings in binary files
   SUBINACL Edit file and folder Permissions, Ownership and Domain
   SUBST    Associate a path with a drive letter
   SYSMON   Monitor and log system activity to the Windows event log
   SYSTEMINFO List system configuration
t
   TAKEOWN  Take ownership of a file
   TASKLIST List running applications and services
   TASKKILL End a running process
   TELNET   Communicate with another host using the TELNET protocol
   TIME     Display or set the system time•
   TIMEOUT  Delay processing of a batch file
   TITLE    Set the window title for a CMD.EXE session•
   TLIST    Task list with full path
   TOUCH    Change file timestamps    
   TRACERT  Trace route to a remote host
   TREE     Graphical display of folder structure
   TSDISCON Disconnect a Remote Desktop Session
   TSKILL   End a running process
   TSSHUTDN Remotely shut down or reboot a terminal server
   TYPE     Display the contents of a text file•
   TypePerf Write performance data to a log file
   TZUTIL   Time Zone Utility
v
   VER      Display version information•
   VERIFY   Verify that files have been saved•
   VOL      Display a disk label•
w
   W32TM    Time Service
   WAITFOR  Wait for or send a signal
   WEVTUTIL Clear event logs, enable/disable/query logs
   WHERE    Locate and display files in a directory tree
   WHOAMI   Output the current UserName and domain
   WINDIFF  Compare the contents of two files or sets of files
   WINRM    Windows Remote Management
   WINRS    Windows Remote Shell
   WMIC     WMI Commands
   WUAUCLT  Windows Update
x
   XCACLS   Change file and folder permissions
   XCOPY    Copy files and folders
   ::       Comment / Remark•

Nguồn: http://ss64.com