Friday, 22 October 2010

Use Xampp in Fedora 12

Hi everyone, I have installed Linux OS which is Fedora 12. So, I installed some softs for my PC and installed-xampp is one of these. Of course, I installed  successfully. Therefore, I post the entry that someone who look for this.
I will instruct step-by-step to obtain success:
1. download xampp.
2. untar to specific /opt by the way: tar xvfz fileName -C /opt
3. start xampp: /opt/lampp start(with root permissions)
4. If something go wrong, you might type something like this to fix:
    -
$chcon -t execmem_exec_t '/opt/lampp/bin/php-5.3.1'


and the same with "mysql" and "httpd"
and finally:
setsebool -P allow_execstack on


Monday, 18 October 2010

Config Boost C++ libraries in Eclipse

I have found the way to config Boost C++ libraries in Eclipse on the Internet. Hence, I will share this to everyone who need:
"I just went through the whole process of installing MinGW, compiling boost and installing Eclipse CDT and I'm able to compile simple programs using boost:regex. I'll write down all the steps. I hope that can be of help.
I've installed MinGW and MSYS in their default location.
Here are the step I took to build boost:
  • Download boost-jam-3.1.18-1-ntx86.zip from http://sourceforge.net/projects/boost/files/boost-jam
  • Put bjam.exe somewhere in your PATH
  • Unpack boost in C:\mingw\boost_1_42_0
  • Open an msys terminal window and cd /c/mingw/boost_1_42_0
  • In the boost directory run bjam --build-dir=build toolset=gcc stage
To configure Eclipse:
  • Add CDT to Eclipse 3.5 from the update site
  • Create a new C++ project
  • Under the Project menu select properties
  • Make sure the configuration is Debug [Active]
  • In "C/C++ General" > "Paths and Symbols"
    • Under the Includes tab select the GNU C++ language and add C:\MinGW\boost_1_42_0
    • Under the Library Paths tab add C:\MinGW\boost_1_42_0\stage\lib
  • In "C/C++ Build" > "Settings"
    • Select MinGW C++ Linker > Libraries
    • Click on the add button for Libraries (-l)
    • Type libboost_regex-mgw34-mt-d (without the .lib) 

Source: http://stackoverflow.com/questions/2519727/linking-boost-to-my-c-project-in-eclipse

Monday, 19 July 2010

Summer 2010

Long time, I don't post any entry for my blog. Suddenly, I feel to have something which I want to say about SUMMER 2010.
When I entered into university in summer 2008, I don't have a long holiday. It's about 2 weeks for maximum. Now, even in this summer I just have 5 days-off for relaxing after fourth semester. It's too short, right? Thereby, I need time to relax, but I cannot. Because of I have some works to do. So I cannot ignore and I wanna make perfect in the future. However, I feel sometimes bored and tired.
Do you know? I always brace my computer through day-by-day: read read, code code, etc..:( these things make me feel bored, even I have ever thought that why I throw these in few day to do whatever I like. Moreover, I can crazy because of present works. Popular people told that: "The Young should do whatever you want. When they are older, they cannot do and then they feel repented.". This is the quote I wanna talk to everyone. It's can be say that "Life is fighting".
Everyone should relax and work such that balanced life. Don't dream about a dream which hardly cannot become true. Nevertheless, you are living in the world, you have to ambitions, desires to work. And then you will find what's happness and life will never boring.

That's the my thinking and emotions which I wanna public to everyone.

Wednesday, 16 December 2009

Writing Task 2

Topic: To be successful in education it is more important to be a good student than to have good teacher. Would you support that statement?

Essay:
Currently, most students desire to learn successfully in education. It is believed that it is more essential to be an excellent student than to have good teachers. In this essay, I will offer several reasons to support this statement, after considering its negative aspects.

Although there are good and bad students in every country, all of them want to succeed in education. It is simply because they will receive a great deal of awards and opportunities when they are good students. For example, when an intelligent student joins a big competition, he or she can get high prize that creates his or her reputation. This is exactly an instance which makes students study more and more.
Another reason supporting this statement is that students are able to have great jobs in the future once they succeed in education. In other words, they will earn a large amount of money and might become as rich Bill Gates, for instance. Although someone wants to become a good student, they have to practise and learn to be creative. Furthermore, if students are not so talented, once they concentrate on learning, they will be eventually good students.
On the other hand, I donot totally agree with this statement. It is definitely advantages if students have great leaders who will teach students a lot of their experiences and knowledge. This is the additional factor which makes everyone to become good students. However, the necessary factors are students who will decide the issues of the learning process.

To sum up, all things considered, it can be concluded that good student is being one of main factors to become successful in education. Nevertheless, we should not ignore teachers' missions which is teaching students possible everything.

Wednesday, 25 November 2009

Something I have done in Ubuntu

Today(November 24, 2009), I installed a new OS that is Ubuntu 9.0.4. So, I have to set up some necessary soft-wares and how to run a program. Therefore, I will introduce to everyone whatever I found:
1. How to run a C/C++ program by typing terminal:
- you should type following statement:
g++ code.cpp -o yourprogname
./yourprogname
Example: g++ test.cpp -o test
./test
- Note: you must install g++ which is the GNU C++ compiler
2. How to unrar in Ubuntu:
- you should type:
sudo apt-get install unrar-free
or for a non-free option, you can use:
sudo apt-get install unrar