27 September 2012

Installation of LDAP

Some packages need to install

# apt-get install slapd ldap-utils

This command ask questions, give answers to reconfigure slapd.

#dpkg-reconfigure slapd

Omit OpenLDAP server configuration : No
DNS domain name : debuntu.local
Organization name : company.org
Database backend to use : BDB
Do you want your database to be removed when slapd is purged? : No
Move old database? : Yes
Allow LDAPv2 Protocol? : No

From above settings your Default username set by you is “admin”.
You can now check if you can access your ldap server by typing:

$ ldapsearch -x -b dc=debuntu,dc=local

if its output is

# extended LDIF
#
# LDAPv3
# base <dc=debuntu,dc=local> with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#
# debuntu.local
dn: dc=debuntu,dc=local
objectClass: top
objectClass: dcObject
objectClass: organization
o: company.org
dc: debuntu
# admin, debuntu.local
dn: cn=admin,dc=debuntu,dc=local
objectClass: simpleSecurityObject
objectClass: organizationalRole
cn: admin
description: LDAP administrator
# search result
search: 2
result: 0 Success
# numResponses: 3
# numEntries: 2

You successfully install ldap.

26 September 2012

Remove error coming while installing LDAP server.

I Run this command. This command used for seeing schema of LDAP.

ldapsearch -x -b dc=localhost,dc=local dn

It gives error because I given wrong value to dc here.

Right value is

dc=debuntu,dc=local

Uninstall ldap server

sudo apt-get remove --purge slapd ldap-utils

The Lightweight Directory Access Protocol, or LDAP, is a protocol for querying and modifying a X.500-based directory service running over TCP/IP.

X.500-based directory services include
DAP (Directory Access Protocol)
DSP (Directory System Protocol)
DISP (Directory Information Shadowing Protocol)
DOP (Directory Operational Bindings Management Protocol)

TCP/IP provides end-to-end connectivity specifying how data should be formatted, addressed, transmitted, routed and received at the destination.

Qt presentation given by Jaslin
It gives introduction about Qt framework for C language and tells about it applications.

Use of Qt
mobile and window applications.
Making games
Desktop applications
Websites and many more.

libre cad is an application made in quety.

25 September 2012

Open Source and Free Software

Open source is a computer software that is in from of source code. Rights are defined in a program which should be followed to change and
distribute the software.

Why Free software is better tha Open Source?

Free software is better then open source because its gives freedom to users in which they can do whatever they want with it, no restrictions.

Freedoms
Freedom 0: The freedom to run the program for any purpose.
Freedom 1: The freedom to study how the program works, and change it to make it do what you wish.
Freedom 2: The freedom to redistribute copies so you can help your neighbor.
Freedom 3: The freedom to improve the program, and release your improvements (and modified versions in general) to the public, so that the whole community benefits.

Free software on the other hand is a more informal classification that does not rely on official recognition. In free software we can charge money to distribute copies of that.

where Open source contain license, which defines the rights and obligations that a licensor grants to a licensee. Open Source licenses grant licensees the right to copy, modify and redistribute source code and it may vary person to person.

24 September 2012

OCRFeeder

OCRFeeder is a document layout analysis and optical character recognition system.

Given the images it will automatically outline its contents, distinguish between what’s graphics and text and perform OCR over the latter. It generates multiple formats being its main one ODT.

It features a complete GTK graphical user interface that allows the users to correct any unrecognized characters, defined or correct bounding boxes, set paragraph styles, clean the input images, import PDFs, save and load the project, export everything to multiple formats, etc. OCRFeeder was developed as the project of the Master’s Thesis in Computer Science of Joaquim Rocha.

Try to install ldap server

I am following this blog for installing LDAP server.
http://www.debuntu.org/ldap-server-and-linux-ldap-clients

It gives an error

$ ldapadd -x -W -D "cn=admin,dc=localhost,dc=local" -f ~/people_group.ldif
Enter LDAP Password:
ldap_bind: Invalid credentials (49)

21 September 2012

Doxygen contain config file.It contain 1700 lines of code.

Read config lines from 700 line to 1700 line.
Setting of config file.
Generate document based on settings in configuration file.

#doxygen <config_file>

It generate latex output.
Mscgen is a small program that parses Message Sequence Chart descriptions and produces PNG, SVG, EPS or server side image maps (ismaps) as the output. Message Sequence Charts (MSCs) are a way of representing entities and interactions over some time period and are often used in combination with SDL. MSCs are popular in Telecoms to specify how protocols operate although MSCs need not be complicated to create or use. Mscgen aims to provide a simple text language that is clear to create, edit and understand, which can also be transformed into common image formats for display or printing.

Graphviz
Graphviz is open source graph visualization software. Graph visualization is a way of representing structural information as diagrams of abstract graphs and networks. It has important applications in networking, bioinformatics, software engineering, database and web design, machine learning, and in visual interfaces for other technical domains.
Features
The Graphviz layout programs take descriptions of graphs in a simple text language, and make diagrams in useful formats, such as images and SVG for web pages, PDF or Postscript for inclusion in other documents; or display in an interactive graph browser. (Graphviz also supports GXL, an XML dialect.) Graphviz has many useful features for concrete diagrams, such as options for colors, fonts, tabular node layouts, line styles, hyperlinks, rolland custom shapes.

A file with the BAK file extension is a Backup file.

Made survey in lime survey to get student information who join for LUG.

20 September 2012

Doxygen is a documentation system for C++, C, Java, Objective-C, Python, IDL (Corba and Microsoft flavors), Fortran, VHDL, PHP, C#, and to some extent D.

It can help you in three ways:

It can generate an on-line documentation browser (in HTML) and/or an off-line reference manual (in ) from a set of documented source files. There is also support for generating output in RTF (MS-Word), PostScript, hyperlinked PDF, compressed HTML, and Unix man pages. The documentation is extracted directly from the sources, which makes it much easier to keep the documentation consistent with the source code.
You can configure doxygen to extract the code structure from undocumented source files. This is very useful to quickly find your way in large source distributions. You can also visualize the relations between the various elements by means of include dependency graphs, inheritance diagrams, and collaboration diagrams, which are all generated automatically.
You can also use doxygen for creating normal documentation (as I did for this manual).
Doxygen is developed under Linux and Mac OS X, but is set-up to be highly portable. As a result, it runs on most other Unix flavors as well. Furthermore, executables for Windows are available.

GPX (the GPS eXchange Format) is a light-weight XML data format for the interchange of GPS data (waypoints, routes, and tracks) between applications and web services on the Internet.

GPX is simple enough to learn in an hour, yet powerful enough to describe complex geographic objects.

LDAP is an application protocol, protocol is meant for fast data communication.
Web applications need to read data again and again for User authentication.
Data stored in directory rather then tables. Accessing directory takes less time as compare to tables stored in database.
LDAP is an application protocol, protocol is meant for fast data communication.
Web applications need to read data again and again for User authentication.
Data stored in directory rather then tables. Accessing directory takes less time as compare to tables stored in database.

Use Doxygen
1. Check if doxygen supports your programming language: First, assure that your programming language has a reasonable chance of being recognized by Doxygen. These languages are supported by default: C, C++, C#, Objective-C, IDL, Java, VHDL, PHP, Python, Tcl, Fortran, and D.

2. Creating a configuration file: Doxygen uses a configuration file to determine all of its settings. Each project should get its own configuration file. A project can consist of a single source file, but can also be an entire source tree that is recursively scanned.

doxygen -g <config-file>

where <config-file> is the name of the configuration file. If you omit the file name, a file named Doxyfile will be created. If a file with the name <config-file> already exists, doxygen will rename it to <config-file>.bak before generating the configuration template. If you use – (i.e. the minus sign) as the file name then doxygen will try to read the configuration file from standard input (stdin), which can be useful for scripting.

Config file is above 1700 loc . I read 700 of them.

19 September 2012

Doxygen is a documentation generator, a tool for writing software reference documentation. The documentation is written within code, and is thus relatively easy to keep up to date. Doxygen can cross reference documentation and code, so that the reader of a document can easily refer to the actual code.
Doxygen supports multiple programming languages, especially C++, C, C#, Objective-C, Java, Python, IDL, Fortran, and PHP. Doxygen is free software, released under the terms of the GNU General Public License.

Problem solved of multiple data stored in database through ajax and php.

The problem was solved by using ‘&’ in front of number .

var number = $('input#number').val();
var message = $('input#message').val();
 $.ajax({
 url : "http://localhost/api/submit.php",
 type : "POST",
 data : "message=" + message + "&number=" + number,
 success : function(result){
 $("div").html(result);
 }
 });

18 September 2012

Get both input values but it paste in single input box post two values in same input text.

Problem solve to get two input values and store in database but in single column.

var number = $('input#number').val();
$.ajax({
 data : "number=" + number,});

Then I search,found solution

var number = $('input#number').val();
var message = $('input#message').val();
 $.ajax({
 url : "http://localhost/api/submit.php",
 type : "POST",
 data : "message=" + message + "number=" + number,
 success : function(result){
 $("div").html(result);
 }
 });

17 September 2012

Sandeep problem

Add the column values of different tables and then have the result in a table row using php-mysql. She tried this

echo "<td>" . $row['total']+$row['labour_charge'] . "</td>";

which did not show desired results.

My solution is :

$plus =$row['total']+$row['labour_charge'];
echo "<td>" . $plus . "</td>";

Jaspreet help

I help him in mysql queries. I make one function to retrieve all type of information contain in brochure.