Monthly Archives: November 2013

2 Steps to get happiness from blog writing


Many people have their own blog site and many people also write article at their blog website every day. Although i do not know why people like to write, i can know people who write article at their blog website is happiness.

It’s simple to understand, because if a person do not like to do something, he can no do it continually.There exists many reasons and aims for people to write blog, a aim i think is they can get happiness from blog writing.

Do you have a blog website? Do you want to get happiness from writing and do not let your blog be dead? If you say see, you can read steps below.

Step 1: Do not write blog for money

Nowadays many people build their blog website for making money,however, the aim and dream is very good, but the reality is very cruel.Most of them can not earn money from their blog, meanwhile,they find their blogs are their burden.

The aim to make money by blog writing is no fault, but it is very hard to realize.

For example, If you plan to make money by google adsense at your blog website, i suppose 2,000 visitors to view your blog per day, however, you will find you may earn about 1 dollar per day.

Do you think how long you can attract 2,000 visitors to view your blog website? one month, half a year or a year? From my experience, 80% of blog websites can not realize this aim in one year, so the aim you plan to make money by your blog website is very hard to realize.

Category: Family Life

TAG

2 Steps to use http referer in php


Recently, When i see the traffic number of my blog, i notice most of visitors come form other website. Google Analytics shows what they are,as picture below shows.

php link reference

By Google Analytics, i find most of visitors of my sites are from linkreferral.com, once i find it, i have a question:How to know google analytics know where these visitor come from?

I have search some papers by google and know it is that http referer helps google analytics to know where these visitors are from.

Step 1: What is http referer

I think http referer is a link, which means if you visit my blog by click a google search result, the information ‘google.com’ will be stored up in http referer, then my website or other website statistics tool,like google analytics, will know where you are from.


Today i open a url by my browser, i find my eclipse show error:java.lang.OutOfMemoryError: PermGen space,which means tomcat use too much memory.Then the web system can not be opened correctly.

To fix this problem is easy, you can search much solutions by google, today i introduce my solution steps.

Step 1: Close your eclipse and edit eclipse.ini

If you have opened window of eclipse, you should close it.

Then you should open eclipse.ini file and edit it.

If you do not know where this file is, you can find it at the install path of your eclipse. For example, paht:D:\Program Files\eclipse is my eclipse install path and eclipse.ini file is in directory of D:\Program Files\eclipse.


Nowadays,QR code is used widely,we can see it almost everywhere, cell app, advertisements and some news websites. It is a type of tow-dimensional barcode and provide a new and fashion way to get new message for us. if you plan to add it to your website, your advertisement or video, you may wonder how to create it and today we introduce  to use php and google api to create one.

Step 1: Check some useful information before creating a qr code

qr code is a carrier of message and massage it can carry is limited, 4,296 alphanumeric characters is its toplimit. So if you plan to use a qr code to store up your information, you must be sure the length of your information is not longer than 4,296.

Category: PHP Programming

TAG


Recently, i have met with a problem: when some persons post comments on my blog article, the wordpress system will send a notification to my email, then my email box is exploded.

How to prohibit wordpress from sending a email to me when anyone post a comment on my article, I searched some solutions by google, and the solution is very easy.

Step 1: set up your wordpress to prohibit it from sending email

We can make a setting for our wordpress to prohibit it from sending email to us when anyone post a comments. You should do like this:

Click: Settings–>Discussion

Then you will find a setting item like:

wordpress email notification

You should not select this two items, then save your setting.

And all is ok.

Category: WordPress

TAG


In article 2 Steps to convert png into ico file , i introduce steps to convert a png image into a ico, In that article, we use some online tools to do it.However, if you want to do it by php and plan to build a website to supply service of converting png to ico. I think you can read this post.

To convert png into ico file by php script, you use phpthumb to help us to do it, you can do as follow steps.

Step 1: Download phpthumb

You can click phpThumb to open page to download it, to realize function of converting png into ico, you should download these file:

phpthumb.ico.php

phpthumb.functions.php

Tips and Warnings:

1. If you can not download these two files, you can email me or leave your comment, i will send to you

2.To use phpthumb, you should make your php gd library enable, you can read article “2 Steps to make PHP GD library enable”  to enable it.

2 Steps to make PHP GD library enable


If you plan to use php to process some images, you should make PHP GD library enable, to make it enable you can do like this.

Step 1: Check it enable?

You can create a php file and paste code below, then open it by your browser.


<?php

phpinfo();

?>

If you find result like below, you can be sure PHP GD library enable has been enable in your php develope evironment, and you can use it to process some images. If not, you can read step 2.

php gd library

2 Steps to make you download ebook easily


Yesterday,i read a book “Find Financial Freedom: I Did and You Can Too”  in google books, however, there is only 35 pages for preview, i really want to know more content about this book, so i plan to search some download links for this book by google search, it is a pity that i can not find any download links. Although i did not find some download links, i also want to introduce some ways that can make your download ebook more easily.

Step 1: Know the book title of book author

To find download links of a book, if you have known the title and author name of this book, i think i can find download links more easily  than you do not, for example, if you want to download book  ”Find Financial Freedom: I Did and You Can Too”  and author is ‘Peter Wilmore ’, you can do like step 2 to find download links.

Category: Internet

TAG


If you are a blogger, one thing i think you must encounter: how to add unique and valuable content for your blog site? At the beginning of your building blog site, i must believe you have many contents to write or think, however, After you have built your website for several days, you will find it is hard to add content for your blog website every day.

It is understood easily that people encounter this problem. because we are not  a writer or professional expert. For example, if you have built a blog on how to cooking,however, you are not a cooker, although you know some knowledge on cooking, when you have written some articles, you will find nothing about cooking in your brain.That means people have limited knowledge on one topic, once we have write what we have known, we will can not write more. This is reason that we can add more unique and valuable content for our blog site.

To solve this problem to add more content for our blog is not hard, we only need time to do like this.

Step 1: Focus on your blog and interest

Interest is the best teacher to us, if  topic of your blog is not your are interesting in, i think it is hard for you to write continually.So before we solve problem on how to add more unique and valuable content for our blog, you should know what is your interest.

Category: Internet


To study python programming you should to know how to run python scripts, if you are using windows system, you can read ‘2 steps to run python command line in cmd‘, however, if you are using BSD’ish Unix system, you can do as follow steps.

Step 1: Check python interpreter has been installed on your unix system

Before you start to follow steps, you should make sure python interpreter has been installed, if not, you should install it, because executing python scripts need it. After you have installed, you should find the install path of it. Continue reading

2 steps to run python command line in cmd


Some friends are studying python programming in windows system, but they all meet with a problem: python command line can not be executed in cmd window.

That is a easy problem, we can solve it by steps blow:

Step 1: Check path you install python

If you have installed python interpreter, you should find its installed path, for example, it is C:\pyhon25, this path will be used in step 2.


MD5 is an encryption algorithm and is be used in many applications. It also have some types, for example, 16-bit,32-bit or 128-bit, In java, if you want to use 32-bit md5 to encrypt string, you can do like this:

Step 1: Create a 32-bit MD5 class in java

In java, a sample source code of  32-bit MD5 class is :


import java.security.MessageDigest;
public class MD5 {
 public static String encryptStr(String s){
 char hexChars[] = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'};
 try {
 byte[] bytes = s.getBytes();
 MessageDigest md = MessageDigest.getInstance("MD5");
 md.update(bytes);
 bytes = md.digest();
 int j = bytes.length;
 char[] chars = new char[j * 2];
 int k = 0;
 for (int i = 0; i < bytes.length; i++) {
 byte b = bytes[i];
 chars[k++] = hexChars[b >>> 4 & 0xf];
 chars[k++] = hexChars[b & 0xf];
 }
 return new String(chars);
 }
 catch (Exception e) {
 return null;
 }
 }

}