Langsung ke konten utama


Menampilkan postingan dari Desember, 2012

Ubuntu delete whitespace using vim

MacVim icon, glossy style (Photo credit: Wikipedia)

Well, I share to you to delete white space using vim. Please follow me.
1. Copy function below to ~/.vimrc

function! DelWhiteSpace()
autocmd BufWritePre     *.rb :call DelWhiteSpace()

2. Open a file that has whitespace and write
:call DelWhiteSpace()
3. And write to save and quit

Hopefully this article is useful. :)

fancybox making function condition

Hello guys,
I would to share about making function. You can take condition on your fancybox. In my case:
I have checkbox that should be checked to show the fancybox.

<script type="text/javascript">
    'onStart': function()
      var $list_friends = $('input[id^="friends"][type="checkbox"]:checked');
      var condition_friend = $list_friends.length
      if (condition_friend > 0) {
      } else {

Hopefully this article to be useful. :)

Ubuntu An error occurred while loading the archive.

Ubuntu-logo-unique-image (Photo credit: Jeffpro57) Archive:  /home/lap048/Documents/ahjah/ [/home/lap048/Documents/ahjah/]   End-of-central-directory signature not found.  Either this file is not   a zipfile, or it constitutes one disk of a multi-part archive.  In the   latter case the central directory and zipfile comment will be found on   the last disk(s) of this archive. zipinfo:  cannot find zipfile directory in one of /home/lap048/Documents/ahjah/ or           /home/lap048/Documents/ahjah/, and cannot find /home/lap048/Documents/ahjah/, period.

Solution: 1. Open Terminal and go to     cd ~/Document/ 2. run this:     jar xvf
Hopefully this article useful. Thanks