PVA – Archives

Sưu tầm những bài viết hay trên internet…

Cannot add the item because the item to add it to is not a solution folder or the solution

5 Awesome Web Based Time Tracking Software Solutions

From: http://workawesome.com/software/web-based-time-tracking-software/

As a web worker, I understand the importance of time tracking. You’ll always find me urging people to track the time they spent working. Why? Well, there are distractions galore. There are social networking sites, YouTube, chat and what not. Hence, at the end of the day, I want to see how many hours I spent doing “real work.”

I prefer using cloud-based, or I should say online time tracking software. This list talks about some nice web based time tracking software applications which you might find useful. Check them out and offer any of your own recommendations below. Read more of this post

How to install MS Office 2007 on Crunchbang Linux

1. Install PlayOnLinux and use PlayOnLinux to install Office 2007

2. After installing Office 2007, I have a problem. I cannot enter license key because the textbox doesn’t allow me to type. Then I found a solution from the Internet as follows

  • Go to your Wine’s system32 directory (~/.wine/drive_c/windows/system32) and rename riched20.dll and riched32.dll so that they’re backed up.
  • Download RichEdit30.exe (I got it from here http://www.cxtra.net/site4/modules.php?name=Content&pa=showpage&pid=74) and save it to that same system32 directory.
  • Run “wine richedit30.exe” and button through the dialogue.
  • There should now be two new riched20.dll and riched32.dll files there.
  • Copy those two files to your PlayOnLinux system32 directory for Office 2007 (should be at ~/.PlayOnLinux/wineprefix/Office2007/drive_c/windows/system32)
  • Run one of the Office programs and you should now be able to enter the Product Key.

It worked for me.

(Vim) Find by file content In Your Project

From: http://lostechies.com/derickbailey/2010/05/11/vim-grep-find-all-occurrences-of-text-in-your-project/

The search pattern is as easy as any other / search, with a few different options:

:vim[grep][!] /{pattern}/[g][j] {file} ...
  • The /pattern/ is a standard vim search pattern
  • The “g” option find all matches – including multiple matches on the same line.
  • The “j” option turns off the auto-goto first match feature.
  • The file list allows you to specify individual files, or wild-card searches, including recursive search with file globs

There are a lot of great tips and tricks on that wikia page. You’ll want to read up on them to get an idea of what you can really do with this.

Read more of this post

PHP Formatter in eclipse

Zend Captcha is not shown – Zend 1.11.9 issue

From: http://stackoverflow.com/questions/6726987/zend-1-11-9-form-decorators-captcha. Thank to Koncz Szabolcs

Solution: add ‘decorators’ to the options of teh captcha and had to specify there all the decorators.

//Add a captcha     
$this->addElement('captcha', 'captcha', 
 'label'      => 'Please enter the 5 letters displayed below:',         
 'required'   => true,         
 'captcha'    => array(             
 'captcha' => 'Figlet',             
 'wordLen' => 5,             
 'timeout' => 300         
 'decorators' => array('Captcha', 'Errors', 'Labels', etc)     

Cannot change Apache default Document Root

I changed apache default DocumentRoot (/srv/http) to another place (/home/pva/www) but I got Error 403. Follow this post, I discovered that my home folder have 700 permission. So I had to change it to 755 then the problem has been solved.

cài đặt YAOURT trong Achlinux

From: http://tutroc77.blogspot.com/2010/07/repoarchlinuxfr-kho-bo-xung-cho.html

Địa chỉ kho: http://repo.archlinux.fr

Kho này có nhiều gói phần mềm hay, như gói “yaourt” (bình thường phải cài gói này thông qua AUR), hay gói “bin32-wine” (WINE 32-bit dành cho Archlinux x86_84)

Thêm kho này bằng cách sửa file /etc/pacman.conf

# nano /etc/pacman.conf

Đối với Archlinux 32-bit, thêm vào cuối 2 dòng sau:

Server = http://repo.archlinux.fr/i686

Đối với Archlinux 64-bit, thêm vào cuối 2 dòng sau:

Server = http://repo.archlinux.fr/x86_64

Bây giờ, để cài đặt YAOURT, chỉ cần dùng pacman:

# pacman -Sy
# pacman -S yaourt

Thật đơn giản

show all error in Social Engine 4

Search the following in application/index.php

// Main app
else {

Then add the following after that


gnome3 – No default terminal command has been defined

Description of problem:
Modify keyboard settings, shortcut and set Alt-t to launch terminal. Close,
pres Alt-t and adialog saying "No terminal command has been defined".

Version-Release number of selected component (if applicable):
Fedora 16 Beta

How reproducible:

Steps to Reproduce:
1. Launch Settings Keyboard
2. Modify shortcut for launching terminal to Alt-T
3. Pres Alt-T

Actual results:
Error dialog

Expected results:
Launching new instance of terminal

How did i fix it?
gconftool-2 --type=string --set "/desktop/gnome/applications/terminal/exec" "gnome-terminal"

Get every new post delivered to your Inbox.