Zola's blog

You never know what you can do till you try.

Posted on by Zola


ushahidi logo small

ushahidi logo

I heard a lot of people talk about Ushahidi, in official site said that The Ushahidi Platform is an open source web application for information collection, vizualisation and interactive mapping, it allows people to collect and share their own stories using various mediums such as SMS, Web Forms, Email or Twitter. so I try to install it on my Dreamhost hosting server. it is have iOS application, it is universal application means work well with iPhone/iPod/iPad once download.

go to http://download.ushahidi.com/ then download Ushahidi, unzip,  open readme.html file, check out Required Extensions, Dreamhost offer all of bellowing php extensions:

  1. PCRE must be compiled with –enable-utf8 and –enable-unicode-properties for UTF-8 functions to work properly.
  2. iconv is required for UTF-8 transliteration.
  3. mcrypt is required for encryption.
  4. SPL is required for several core libraries.
  5. mbstring which speeds up Kohana's UTF-8 functions.
  6. MySQL which is required for database access.
  7. IMAP which is required for email functionality.

and have to chmod bellow files to 777  ,make sure those folders writable,

chmod -R 777 application/config
chmod -R 777 application/cache
chmod -R 777 application/logs
chmod -R 777 media/uploads
chmod 777 .htaccess

 

last night I tried many times to install Ushahidi, I follow all instructions but still  failed , always show me "500 Internal Server Error" even go to http://[Your Ushahidi URL]/installer on on begin,

  1. I try to remove .htaccess the I can finish installer process , but I can't login to /ushahidi/admin
  2. I try to change site_domain on config.php, always show me  Internal Server Error
  3. I try to change index_page to index.php on config, Can't login
  4. I try to change RewriteBase /ushahidi/ to "RewriteBase /" on .htaccess, still show me  Internal Server Error
  5. I try to comment "RewriteRule .* index.php/$0 [PT,L]" on .htaccess, show me Internal Server Error
  6. I try to remove "RewriteRule .* index.php/$0 [PT,L]"  and add "RewriteRule ^(.+)$ index.php?kohana_uri=$1 [L]" on .htaccess, show me Internal server error
  7. I try to download newest version from https://github.com/ushahidi/Ushahidi_Web ,it doesn't work
  8. I try to comment "Options +FollowSymlinks", it is work!
what a stupid Ushahiti is! there are a lot of user talk about that issue for years in forums.ushahidi.com but still haven't official solution, I have  to blog it on my blog,offer a solution and hope anyone can happy.
Patching solutions and the key point is :
  1. remove or comment "RewriteRule .* index.php/$0 [PT,L] " from .htaccess
  2. add "RewriteRule ^(.+)$ index.php?kohana_uri=$1 [L]" on .htaccess
  3. remove or comment"Options +FollowSymlinks",
  4. after installing, creat a new account, the go to dh_phpmyadmin copy new user's password hash code to Administror's password, then login with admin and new password. in my experience , default username and password doesn't work.
  5. enjoy it.

I am beginner of Ushahidi and hope Ushahidi getting better,I hope someone from Ushahidi leave a message and tell me truth: why not put kohana_uri behind index.php?

Posted on by Zola | Posted in technical | Tagged , , ,


Posted on by Zola


wordpress make me in trouble ,for example, when I write blog post online, the post id increase automatically,I try google a solutions in blogsearch.google.com, I get a method finaly, but I am not sure it is work.

copy below code into funtions.php , step by step , wp-amdin --> appearance --> editor --> Theme Functions, added below code

/* 关闭自动保存和修订版本 */
remove_action('pre_post_update', 'wp_save_post_revision' );
add_action( 'wp_print_scripts', 'disable_autosave' );
function disable_autosave() {
wp_deregister_script('autosave');
}

I am put this notes here, now post  id is 13, will it increase after save draft ? hope not. let me wait for minutes。

after 30 minutes,modify post many times,

ok, seems it is work now.

Posted on by Zola | Posted in technical


Posted on by Zola


step by step:

  1. Locate your blog rss address ,ex: http://feed.zuola.com/
  2. Make a simple web page, add code with below format : <a href="http://www.google.com/reader/atom/feed/http://feed.zuola.com/?n=3721" >save as atom </a> , red block is your blog rss address,replace it with your rss address,  green block is your maximum article number,you can change it to 10,000 if you want;
  3. Login to http://reader.google.com with your google account;
  4. Open your web page , click   "save as atom " with right button,then you get a atom format file ,another simple ways is, sent a mail to yourself, body is a link like this http://www.google.com/reader/atom/feed/http://feed.zuola.com/?n=3721 , click   "save as atom " with right button when you receive your email.
  5. upload atom format file to your own site, get a link
  6. Going to  http://atom2rss.semiologic.com/ ,Specify your atom format file location URL, convert it ,get rss format file,transform done.
  7. Finally, we get all of your blog article with rss format, we can import to most blog ,include wordpress ,or blogger.com

That idea is from you xu 's wufetcher.py  ,source code form here: http://www.youxu.info/wufetcher.txt ,I can't run wufetcher.py correctly in my server, so a write a manually method doing same thing, hope it give some help to you.

Xuyou has export Aiweiwei's sina blog from google reader : http://blog.youxu.info/2009/07/04/aiweiwe/

here link is a backup of Aiweiwei's sina blog : http://aiweiweiai.wordpress.com/

Posted on by Zola | Posted in technical | Tagged , ,


Posted on by Zola


A few days ago, I was met a guy from Facebook, he were know my name after Hillary Clinton Speech ,and give me lot of praises, and will give me some help if I need. I said, I just do something for fun,for myself, maybe sometimes is also useful for other people. of course I need money, but I am always do something by single person, I can't accept money from foreign NGO, if I build a team or organization to accept donations,may get arrest and questions . Independents individual or organizaion it is very difficult to live  in China ,will get financial problem, and policy problem form government, Chinese government do a lot of  research about NGO to make sure that there isn't risk form independent organization , to make sure everything under the control.

In China, independent person was called dissidents, independent organization was called "illegal organization", both of them will get trouble.

Today, I was heard a messages from twitter,

政法委今年维稳重点除传统的“疆独、藏独、台独、轮子及民运”这“五毒”、民族分裂、宗教极端和恐怖主义「三股势力」外,还加入“维权军人组织、地下工会和农民上访团体”这“工农兵内三股势力”

That news source said this year,Politics and Law Committee of China  focus on five traditional organization to holding stability,

  1. East Turkistan separatists;
  2. Tibetan separatist;
  3. Taiwan separatists;
  4. Falun Gong;
  5. Democratic Movement.

and three evil forces:

  1. ethnic separatism;
  2. religious extremism;
  3. terrorism.

but add new three evil forces

  1. rights the military organization;
  2. underground trade unions;
  3. farmers in petitioning groups.

in fact,very funny ,these additional evil forces are "Workers, peasants, soldiers,"  they had support for Chinese Communist Party in 60 years . I think every organizations will be government's enemy if they looking for independent. seems our government wanna control every parties and organizations, but it will be biggest target of others finally.

The government is very powerful and evil, how can I improve our country? I think freedom speech and news transparence is very inportant, I want do some debate  with government,or with anyone any organization, if vevryone think about our country future and do something,our environment will be change. we need change,need improve, need debate,need express our mind. so, debate and comment about social problem detail is very important, and safely. I worried about revolution but evolution are welcome.

Posted on by Zola | Posted in views


Posted on by Zola


hi,I am Zola , The Zola, is me! many people said shame on me because  I can't speak English very well,yes ,I am not always thinking in English, but I will try my best. so,I will record my thinking in English, and want communicate with foreign people,I want to be international. of course, grammar is not important,I think many foreign people will guess,I will keep writing ,reading,talking,my English level will improve. here is my English blog http://blog.zuola.com/

Ok,let me introduce myself, I was born in 1981, Hunan Province,China, Male, below is my resume,as you guess,it is not writen by me :)

Zhou Shuguang, a.k.a. Zola, is a self-taught internet technologist and former network administrator who received his certification as a network engineer in 2004. Since May 2004, Zola has maintained a blog at http://www.zuola.com where he shares often useful and interesting information, occasionally focused on social issues. In 2007, Zola reported on what was being called "the most awesome nail house in history" in Chongqing, subsequently attracting the attention of traditional media. Since then, Zola has participated on the reports of various sensitive stories and breaking news events such as the "Resist P-Xylene Plant" Demonstration in Xiamen, the Yilishen scandal in Shenyang, the "Weng'an Uproar", the CCTV headquarters fire, the stabbing of a prominent blogger in Qianliexian, and the news of Hangzhou resident Tan Zhuo who was killed by a speeding sports car. By reporting on these and other events, through various social networking platforms, Zola has since received widespread international attention. He is one of the many veterans fighting the censorship of news and Internet restrictions in China. Zola has received interviews by both domestic and international media, and is the subject of much academic discussion in the area of new media. Zola has been invited to Beijing Foreign Studies University, Beijing University, Tianjin Normal University to exchange with journalism students. Zola continues to host seminars on new media technology in Beijing, Guangzhou and throughout mainland China. At present, Zola has been providing independent blog services and other technical training services for netizens.

okay,now,there is a question, what do you want in this blog? photography? landscape? joke? news? story?  no idea ? no suggestion?  ok,  I should make decision by myself ,I am not sure what is happen in the future, anything will share in this blog.

PS: Dont' forget  subscribe my rss http://blog.zuola.com/feed in Google Reader

Posted on by Zola | Posted in thinking