tux Do not start MySQL on startup

Stopping to autostart mysql service

(firstly u must be sure to there is a<strong> /etc/init.d/mysql or mysqld</strong> )

# chkconfig --list | grep mysqld
mysqld          0:off   1:off   2:off   3:on   4:on   5:on   6:off
# chkconfig --level 345 mysql off
error reading information on service mysql: No such file or directory
# chkconfig --level 345 mysqld off
# reboot
December 20, 2009
Posted in Linux Tips — admin @ 3:34 pm

tux How to autostart MYSQL (init.d and chkconfig)

chkconfig

The chkconfig command can also be used to activate and deactivate services. If you use the chkconfig –list command, you will see a list of system services and whether they are started (on) or stopped (off) in runlevels 0-6 (at the end of the list, you will see a section for the services managed by xinetd.
(more…)


Posted in Linux Tips — admin @ 3:30 pm

tux Drawing Line With DDA Algorithm using OpenGL in C++

The code is based on the popularly used dda line drawing algorithm.It picks up two point from the window and change the color of pixels which are closest to vectorial line between them.
(more…)

December 6, 2009
Posted in C++, OpenGL — TaZ @ 9:38 pm

tux xml to text with php

There is lots of xml reading methods and classes. Some of them is too compicated. if you want to read xml with real php and simpliest way, u can use this code

(more…)

December 2, 2009
Posted in Php — banias @ 8:57 pm

tux How to Use Template Class or Function in C++ (Stack Implemantation)

How to Use Template Class or Function in C++ (Stack Implemantation)

1-How to use a function with different data types in c++. i mean, i have a function
that name is abs() and i want to use it just like this:

int x;foo(x); or
float x;foo(x); or
char x;foo(x)…
(more…)

November 30, 2009
Posted in C++ — banias @ 12:44 pm

tux How to Decoding Morse and Encoding Morse with Python

Python Morse Converter

Maybe one day you can meet an asume alien girl however she don’t know any language except morse alphabet (she communicates only this way:-)). So, what will you do? Dont be sad cause i wrote a python code to decode what she says and encode yours.
(more…)


Posted in Python — banias @ 12:35 pm

tux How to find wordpress sites by google

u cant find directly wordpress sites by google. u can search like ‘powered by wordpress’ but that will not be effective.
(more…)

November 22, 2009
Posted in Uncategorized — banias @ 10:47 pm

tux wordpress get page number (template tag)

if you want to get active pages number u can use this
(more…)


Posted in Uncategorized — banias @ 2:02 pm

tux javascript infix and postfix example with stack

Infix calculator
postfix calculator
infix to postfix algorithm
postfix to infix algorithm
stack methods
how to do infix and postfix notation with stack
(more…)


Posted in Algorithm — banias @ 1:26 pm

tux How to Make a Stack using Linked List in C++

c++ stack codes

(more…)

November 21, 2009
Posted in C++ — TaZ @ 10:19 pm
Next Page »