Posts

Showing posts from April, 2013

Ways to be a Professional Android Application Developer

The things were dream but come as a reality in your mind when you thought about android application development. There are no hidden clue is related on Android Application Development instead hard work. Your passion and hardworking capability can make sure this dream comes true.  But you have to follow some structural way and step by step procedure to achieve this. Sometimes structured way can help you but it is not true most of the time. I want to share my experience with you that may help you but not must allowable for you, you can follow your own way. Own way is the best way and android developers community are always ready to get rid of your development problems. So you are the step away and ready to get help from me because I want to share my personal experience. Make sure you have passion and hardworking capability:  The first thing is your passion and hardworking capability. You want to learn Android Application Development  pros and cons but before that: Are you ready to get it

Supported HTML tag for Android TextView

Android TextView show the text but you can format this text by using HTML tag. Sometime it's necessary to use HTML tag in TextView. Android TextView support some HTML tag. To get you know, here I provide the lists of supported HTML tag for Android TextView. Useful HTML tag for Android TextView:  You can use this tag inside TextView or other android widget like Button as a text.  Before starting your works, you have to look over the supported HTML tag for TextView. Check this list below: <a href="..."> <b> <big> <blockquote> <br> <cite> <dfn> <div align="..."> <em> <font size="..." color="..." face="..."> <h1> <h2> <h3> <h4> <h5> <h6> <i> <img src="..."> <p> <small> <strike> <strong> <sub> <sup> <tt> <u> Now the question is how I can use this tag inside TextView. If you

Private Browsing

Image
  Before explaining this topic in detail , let me tell you something which is related  and really needed to understand the importance of this topic. You are reading this post it means at least you know how to browse internet, but here i am going to introduce new thing which is very useful in terms of security. When you browse the web, following details are stored either  in the browser cache or in your hard-disk: • History of Browsing. • Cache memory items • Cookies • Login Details You may have solution for this like “Clearing all the History”. But when you are accessing internet from insecure places like others computers, using  public Wi-Fi, cyber cafés , making transaction etc.,there is always risk of leaving trace of the websites you visit. In such cases the ‘Private Browsing ’ comes into the picture. Private Browsing allows you to browse the Internet without saving any information about which sites and pages you’ve visited. What does Private Browsing not save? • Search Bar and For

Website Content Migration from Drupal to Wordpress

WordPress is absolutely free and open source content management system (CMS) coded in PHP language. It is simple and easy to use open source technology based on PHP and MySQL framework. It has variety of features such as built in template library, plug in based architecture support. The plug in feature in the website gives superb feel to the bloggers with awesome features and functions. Wordpress provides high customization, robustness and flexibility. Nowadays many people are thinking of migrating their website from Drupal to WordPress. At first glance, it seems easy but actually it requires a lot of patience and care in doing it. For example: You have a WordPress website installed with its theme and now you want to get all the contents into your WordPress database such as pages, posts, comments, forums etc. from your Drupal website. One way of doing this is you can replicate the data of the comments (from comments table of Drupal to comments table of WordPress), posts (from node and

Visitor Counter Script Using PHP

Image
If you have noticed that many websites display their total numbers of visitors.In this tutorial I am going to explain you how to create a simple visitor counter using php. For this, 1) Create one table called “visitor_counter” in your database. 2) Create file named “counter.php”. Step1: Creating “visitor_counter” Table CREATE TABLE `visitor_counter` ( `counts` int(10) NOT NULL default '0' ) Step2: Creating “counter.php” File <?php  // Database Details $host="localhost"; $username="root"; $password=""; $db_name="test"; $tbl_name="visitor_counter"; // Connect to server and select database. mysql_connect("$host", "$username", "$password")or die("cannot connect to server "); mysql_select_db("$db_name")or die("cannot select DB");  $sql="SELECT * FROM $tbl_name"; $result=mysql_query($sql); $rows=mysql_fetch_array($result); $counter=$rows['counts']; // se

Account verification using PHP

Image
If you haven't read my previous article then, please Read This . It will be very helpful.So many times you may have experienced this , When you sign up to join any website, they may want to verify your email address by sending confirmation link to your email address. You'll learn how this thing works in this tutorial. In this tutorial, we are going to create  4 php files 1. join.php 2. join_ac.php 3. confirm.php 4. settings.php And 2 tabels 1. temp_users 2. registered_users Logic 1. When users sign up. We will create a random set of confirmation code. 2. Keeping the details and confirmation code in table "temp_users ". This is temporary table, we have to move this details  to table "registered_users" after email address has been verified. 3. After a sucessfull insertion of details into table "temp_users", send confirmation link to email that users used to sign up, if email is invalid they will not receive our email. 4. They have to click on confirm

simple clock using canvas API

Tips for New Drupal Developers

Image
   (1) Basic URL Structure for Drupal Content After you have completed your drupal installation, in next step you are supposed to  create new content.For that navigate directly to this URL (where yoursite.com is your domain name): http:// yoursite.com/node/add Content within a Drupal site are called nodes. A node may be an image, a page, a story, an announcement, a poll, a web form, or a job listing — In general you can consider node as a single unit of content. For example, if you want to create a new page, you can go to the following URL: http://yoursite.com/node/add/page Once you create content, you can find its nid (node ID), its a unique identifier for that node, in the URL. You can easily determine the nid through the URL,see the following url , where [nid] is the node ID of that page: http:// yoursite.com/node/[nid] (2) Setting Up Basic Site Information Some standard information gets collected and displayed on your basic Drupal setup, such as the name of the website, the e-ma

Select only one radion button from listview (Example with source code)

I got this same problem few days ago and I searched it over and over but I did not come out with a perfect solution. And I know that many guys already got this problem. Here is the step by step procedure that will show you how to implement this scenario for android. I think you have basic idea to implement Listview in android. For this project we have to use two xml templates one will hold the listview and another will hold the listview template(where we can put the radio button). We can name one template main_listview.xml and another template item_listview.xml. Lets see how I created this.  First of all create a project and name it RadioListSingle and create two xml layout. One for main_listview.xml and another one for item_listview.xml.  The main_listview.xml: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:tools="http://schemas.android.com/tools"     android:layout_width="match_parent"     android:layout_height=&quo

Database Transaction basic: ACID properties

Database transaction: A transaction is a unit of program execution that accesses and possibly updates various data items.A transaction has many program segment such as read segment, write segment etc. We combine all segment as a unit and call it database transaction. A transaction require to maintain the following properties. These properties are often called the ACID properties. Given below the ACID properties of a transaction: Atomicity:   All operations of a transaction must be completed otherwise the program must aborted. Consistency: Database consistency stats that only valid data will be written to database. Database consistency says that total sum of enter program of a transaction must unchanged. If a transaction violets the database consistency rules, the entire database will be rolled back and the database restored. Isolation: Isolation means multiple transactions occurring at same time but not impact each other execution. A transaction X and another transaction Y occur at sam

Dense, Sparse and Multilevel Indices

Image
Dense indices: Think that we have a database file. That file has an index and a record. The index is A, B, C and the record is A, B, B, C.   In   the record (A, B, B, C) , the index file has every value (A, B, C). If   a   index file has all search key value we call it Dense index.   See the example below Dense index   must have all key but in sparse index has only some key values. Sparse index: Sparse index   contains only some search key value.   It   applicable   when records are sequentially ordered on   search key . To search the key C, at first we search largest value in   index file   by comparing this <=C. So the value is B. Then we search sequentially starting at the record to which the index record points. Multilevel Index: Even if we use a sparse index, the index itself may become too large for efficient processing when the database has thousands of rows. Indices with two or more levels are called multilevel indices. Multilevel indexing are closely related to   tree struc

Database indexing with example

Image
What is database indexing? Think of your textbook index. In textbook index all important topic/key you found their. Database index is same as textbook index.Consider the image above, Using some branch name we created a index file. This index file we use to search any branch name in the database table and their associated information. So using index we can easily search any information in the database. There are two basic kinds of indices. Ordered Indices:   Based on a sorted ordering of the values. Hash Indices:   In hash index we uses a search key and it's associated pointer. We store the search key and associated pointers in a backet and use a hash function to identify the bucket. Ordered Indices: Ordered index means an index file, keys are organized in sorted order. If the search keys ordered in sequentially we call it   primary index . And if the search key ordered in different from sequential order of the file are called   secondary indexes. Consider the figure  the index file

Difference between B and B+ tree in database

B tree indices are similar to B+ tree indices. The primary distinction between the two approaches is that a B-tree eliminates the redundant storage of search key values. Search keys are not repeated in B tree indices. Given below the major difference between B tree and B+ tree structure. 1.   In a B tree search keys and data stored in internal or leaf nodes. But in B+-tree data store only leaf nodes. 2.   Searching of any data in a B+ tree is very easy because all data are found in leaf nodes otherwise in a B tree data cannot found in leaf node. 3.   In B tree data may found leaf or non leaf node. Deletion of non leaf node is very complicated. Otherwise in a B+ tree data must found leaf node. So deletion is easy in leaf node.   4.   Insertion of a B tree is more complicated than B+ tree.      5.    B +tree store redundant search key but b-tree has no redundant value.     6.   In B+ tree leaf node data are ordered in a sequential linked list but in B tree the leaf node cannot stored usi

10+ database project ideas

To build any application you need to work with large data and you need to manage this data. To manage data we use database such as Oracle database, Microsoft database, MySQL database etc. We store our data in database. To retrieve or extract data we use SQL query. The SQL query are same for all database. In this discussion I give you some database project idea. Before describing project idea I give you some useful information. First of all you need to think. Think what problem you want to solve? In your area or in your country, there are many kinds of unsolved problem. Try to solve it do not think firstly how this problem will be implemented in database. Such that in my school life our school librarian maintain our school library using paper. This process is time consuming. To solve this problem I just think automated online library management system. When your thinking is completed. Then you need to do some paper work. Try to sketch some diagram and think how to solve that problem usi

Why database designing and development will be huge sector

The word database is really an important thing for large organization where needs to maintain huge users' information. If this information is sensitive in nature, the company must follow some guidelines to restrict this information from unauthorized accesses. In this dynamic world the information is increasing very high rate and company try to collect and manage this information to analyze and take perfect decision. Sometimes we use the information to make our research and get a competitive advantage from another researcher.  Multinational company's are trying to use upgraded and secured database like Oracle database, Microsoft SQL database and many more. There are huge IT populations are involved to maintain the company database. So we say that database developers need are increasing with great pace and in the near future 20% job will be available for database developers. To be an expert database developer what should you have to learn. Here is some direction that will help yo

All About Our PHP Tutorials

Image
Your PHP learning journey starts from here. We provide you tons of PHP tutorials with examples and videos. Also we provide some PHP projects that helps you to understand real life PHP application. Don't worry because our tutorials helps you from the scratch. Anyone can develop his/her PHP skill professionally from our tutorials because we provide PHP tutorials with example as well as PHP video tutorials .You can hone your skill on PHP web development from start to finish by just following our PHP lessons. We divide our all PHP tutorials in many parts.Here are different parts of our PHP tutorials PHP Basic PHP advanced Object-Oriented PHP Database and PHP  Developing PHP projects PHP framework  PHP video and pdf tutorials Here are some suggestions for you that explain how to use our website. First of all we think that you want to learn PHP from beginners to advanced level. To do this at first try our PHP basic tutorials that helps to understand PHP basic and also helps you how to