preload
Dec 15

Recently  , i installed drupal content management system to my yahoo small business web hosting server.  Everything was good except sending email. Every time when i create new user i got this error

Unable to send e-mail. Please contact the site administrator if the problem persists.

I googled so many pages , but i could not find any solution , finally i changed one configuration in my drupal CMS , i.e., I changed my personal email id to yahoo domain email id in site configuration page of druapl. now email system  is perfectly working  . . .

Steps

  1. Login with Drupal using admin privileges
  2. Select the option “Site Configuration” in Admin Menu
  3. Select “Site Information” under this.
  4. In Email Text Box change your personal address [ sam@gmail.com ] to yahoo domain address [ sam@openpeta.com ]
  5. Save your configuration

Screenshot-Site information | Semantic Web - Google Chrome

Thats It

Note : When you purchase yahoo small business plan , yahoo will provide one email id with your domain [ like anto@openpeta.com ] . here anto is the user name and openpeta.com is the domain name  , so use this one in site information email text field .

Sep 20

Most of technical people are trying to migrate from windows to Linux now a days , but they are facing lot of problems with Linux . they do not even know the forums and blogs of Linux which would be useful for finding answer to their query. The main problem of open source is choosing right one for user need. Because so many open source softwares are available for a single thing. Surely user need some supportive forum or website to find that one . open Peta is also doing that job. The idea of this  post coming to my mind from my college friend . One of my colleague asked me about computer graphics program in Linux using C programming language. the questions is

How to draw line, circle , or 2D graphics in Linux Using C or C++?

I was searching Internet and found some softwares for developing graphics applications in Linux. that softwares are listed here

  1. GTK+   – Gnome Tool Kit
  2. QT  -  The X toolkit
  3. SVGALIB   [ #include<vgagl.h> ]
  4. libgraph [ #include<graphics.h> ]

GTK and QT are simple and used for high level Graphical User Interface [ GUI ] development. SVGALIB and libgraph is used for 2D graphics in Linux .  the syntax and functions are some what different for beginners  [specially the user from windows ] but most of users familiar with windows graphics.h header file in C and C++ , so we can move for libgraph which is exact one for windows graphics user . libgraph is an implementation of the Turbo C graphics API (graphics.h) on GNU/Linux using SDL [ Simple Direct Media Player ]. The library requires SDL for primitive graphics and SDL. First you need to install the following dependency packages using synaptic package manager in Ubuntu Linux to develop the graphics applications properly.

  • SDL Library
Installing SDL Library

Installing SDL Library

  • GUILE – GNU’s Ubiquitous Intelligent Language for Extension

GUILE Installation

GUILE Installation

  • After installing these two packages , download the libgraph and install in your system

#sudo su

#tar -xzvf libgraph-1.0.2.tar.gz

#cd libgraph-1.0.2

#make

# make install

For better understanding , watch this video given here ….


Developing Graphics Application

1. Open your favorite text editor and type the following code

1
2
3
4
5
6
7
8
9
10
11
12
13
#include "stdio.h"
#include "graphics.h"
int main()
{
int gd=DETECT, gm=VGAMAX;
initgraph(&amp;gd,&amp;gm, 0);
moveto(0, 0);
setcolor(4);
rectangle(50,50,500,200);
while(!kbhit());
closegraph();
return 0;
}

2. Now compile the program with lgraph library

#gcc line.c -lgraph -o output

#./output

If you get any error in this line like

./output: error while loading shared libraries: libgraph.so.1: cannot open shared object file: No such file or directory

Do the following

sudo cp /usr/local/lib/libgraph.* /usr/lib

3. Now one new window will open , there you will get the output Rectangle in Red color.

Output Window

Output Window

The advantage of libgraph is very easy to remember the syntax  [ all functions are same as turbo c graphics.h ] . still if you are facing any problem to develop graphics applications using this , send your problems through comment page of this post.

Sep 05

PHP LogoYou can find lot of information about PHP Programming in Openpeta site itself , Links of all php toipics are given here for your reference

  1. PHP Basics
    • PHP Simple Program Structure
    • String Handling
    • Array Manipulation
    • Scope of Variables
    • Constant in PHP
  2. PHP Basics – Conditional Statements
    • Simple If Condition
    • If-Else Condition
    • Nested If-Else
    • Alternate Syntax for If-Else in PHP
  3. Looping Statements
    • while loop
    • do-while loop
    • for loop
  4. PHP Cookie – Simple Example
  5. Server Side Validation
  6. File Handling in PHP
  7. File Uploading in PHP
  8. Database Connectivity [ PHP and MySQL]
    Post your valuable comments and suggestions about this article  ………