system

Solve Skype Problem after changed computer date

17 Oct , 2014  

This is weird! When i changed my computer date, suddenly i can’t send message in conversation. To solve this issue, first download SQLiteBrowser for Windows

http://sourceforge.net/projects/sqlitebrowser/?source=typ_redirect

Then, go to :

1
C:\Users\<Your User>\AppData\Roaming\Skype\<your-skype-account>

Edit “main.db” with SQLitebrowser. Go to browse data and select messages.
Now delete messages that more than the date in your computer. Solved!

system

Delete git branch both remote and local

30 Apr , 2012  

There are simple way to delete git branch locally and remote.
But first thing to do, you should move from branch that you will delete.
Just checkout master or development branch and start removing git branch.

1
2
3
git checkout <not-branch-name>
git branch -D <branch-name>
git push origin :<branch-name>

To create new github branch that clone from another branch and checkout automatically :

1
2
git checkout -b <new-branch>
git push origin <new-branch>

Simple!

,

system

Solve VIM NERDTree: 1 invalid bookmarks were read

30 Jan , 2012  

It’s little bit annoying if I see this error :

1
NERDTree: 1 invalid bookmarks were read

This is because NERDTreeBookmarks still keep the cache even bookmarks already deleted from VIM.

To delete NerdTree cached in VIM is by :

1
rm -rf ~/.NERDTreeBookmarks

,

system

How to solve error syntastic loc_list in VIM

5 Jan , 2012  

I don’t know what the problem really are when I see this error every opening file in VIM :

1
syntastic loc_list error

But, it just need single line to fix it by :

1
let b:syntastic_loclist = []

Now, I can get rid of the error that caused by syntastic plugin in VIM.

,

system

Install and configure zend eclipse in Ubuntu

4 Dec , 2011  

Using Zend Eclipse PHP in Ubuntu will boost our performance to build PHP applications. In other hand, I was using Netbeans before and have many problems with Ubuntu Oneiric 11.10. So, let start with Zend Eclipse and download it latest packages from :

1
http://code.google.com/p/zend-sdk/downloads/

Extract it packages into “/opt”. It’s preferable before extracting, you set /opt into 777 permission and revert back later after extract. We need to run eclipse with user permission (non-root).
More…

,

system

Solving WordPress not loaded properly in NGINX

24 Oct , 2011  

I have built a few wordpress sites on HAProxy and NGINX. Somehow, my clients tell me that wp-admin doesn’t loaded properly. When start new post or editing, text menu doesn’t load properly. Also, when show button clicked on image manager, it will get nothing.

So, i try to check and got this by firebug :

1
Jquery is not defined

So, i open nginx conf, this is the past version :

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
....
    index  index.php index.html index.htm;

    # catch all
    error_page 404 /index.php;
    location = /favicon.ico {  
        log_not_found off;
        access_log off;
    }
 
    location = /robots.txt {
        allow all;
        log_not_found off;  
        access_log off;
    }
   
    location / {
        # This is cool because no php is touched for static content
....

Then i change into this one :

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
...
    index  index.php;
   
    location / {
        # This is cool because no php is touched for static content
        try_files $uri $uri/ /index.php;
    }

    # catch all
    error_page 404 /index.php;
    location = /favicon.ico {  
        log_not_found off;
        access_log off;
    }
 
    location = /robots.txt {
        allow all;
        log_not_found off;  
        access_log off;
    }
...

And all issue are solved!
It’s pretty weird, but changes NGINX conf solve this problem.

,

system

Uninstall Xcache and solving error Failed loading cannot open shared object file: No such file or directory

23 Jul , 2011  

When you got this

1
"Failed loading /usr/lib/php5/20090626/xcache.so:  /usr/lib/php5/20090626/xcache.so: cannot open shared object file: No such file or directory

This because you not removing xcache configuration from php.

In this example, i using php5-fpm. If you’re using apache2 + php5, so you can find it on /etc/php5/apache2/

How to solve this problem:

1
1. Removing extension="xcache.so" from /etc/php5/fpm/php.ini
1
2. Delete file xcache.ini /etc/php5/fpm/conf.d

,

system

One engine for several / multiple sites in WordPress 3.2 domain using NGINX

17 Jul , 2011  

Multiple sites in WordPress 3.2, by default, it’s only supported on subdomain. But, we want create multiple sites by one wordpress engine on several domains. We want this wordpress serve independent domain. Just like what Drupal have, WordPress can do thing too (not in easy way). I will use pydemo.com as example.

What we will do?

1. Checking WordPress on Fresh or already installed.
2. Add DNS Wildcards.
3. Set NGINX configuration to works with wordpress multiple sites.
4. Enable multiple sites feature in WordPress 3.2 which it disable on default installation.
5. We need WordPress MU Domain Mapping plugin to redirect WordPress into independent sites.
More…

,

system

How to disable Crontab in WordPress 3.2

17 Jul , 2011  

When page load, WordPress will doing cron stuff. This meaning, every page load by visitors, WordPress always checking what task in cron queque. If you curios how cron is working on WordPress, see this :

1
2
3
4
5
6
7
8
9
10
wp-settings.php:
+requires wp-includes/default-filters.php
-contains the action hook to the function wp_cron()

+requires wp-includes/cron.php
-contains functions that perform cron related tasks, including the wp_cron() function
-above functions make http request to wp-cron.php

wp-cron.php:
-actually does the schedule checking and executes anything as needed.

So, to disable cron in WordPress, you should define DISABLE_WP_CRON in wp-config.php.

1
define('DISABLE_WP_CRON', true);

Credit to : http://wordpress.org/support/topic/wp_schedule_event-events-dont-fire

system

How to disable comments in WordPress 3.2.1

17 Jul , 2011  

Disabling comments in WordPress 3.2 is not different as old wordpress version before. But for new guy at WordPress, it’s confusing. Actually, new WordPress hiding several option like revision, author and discussion which have disable comments feature.

So, before we can disable comments, we should show this menu in our editing Post or Page. Go to top right corner ( When you editing Post or Page ) and click “Screen Options”. There will be several options there. Click on “Discussion”. Then, scroll on bottom page and you will see option for enable / disable comments & trackbacks.

You can also switch on another Screen options like Author, slug, revisions , Excerpts and else.

How to disable comments in WordPress