Posts

Showing posts with the label project

Bit Stuffing Code Implementation in Java

Image
This is an implementation of the Bit Stuffing popularly used in data communication, also known as one of the concepts of Framing data bits. To know more please  click here. Sample Output: This is a sample output with data binary data entered as 11001111110. Program Code: import java.util.*; public class BitStuffing { public static void main(String[] args) { System.out.print("Enter the Binary message: "); Scanner sn=new Scanner(System.in); String data = sn.nextLine(); String res = new String(); String out=new String(); int counter = 0; for(int i=0;i<data.length();i++) { if (data.charAt(i)!='1' && data.charAt(i)!='0') { System.out.println("Enter only Binary values!!!"); return; } ...

Create a Tic tac toe game using c++

Image
The following program is the source code of a game called tic tac toe. The program is implemented using c++. Code : #include<iostream> #include<windows.h> using namespace std; char a[9]={'1','2','3','4','5','6','7','8','9'}; char c1,c2; void draw_board() { cout<<"\n\n"; cout<<" "<<a[0]<<" | "<<a[1]<<" | "<<a[2]<<" "; cout<<endl<<" | | "; cout<<"\n-------|-------|-------"; cout<<endl<<" "<<a[3]<<" | "<<a[4]<<" | "<<a[5]<<" "; cout<<endl<<" | | "; cout<<"\n-------|-------|-------"; cout<<endl<<" "<<a[6]<<" ...

Create a Lightweight Blogging System Using PHP and MYSQL

Image
This post will help you to create your very own lightweight blogging system. This system is completely created by using PHP and mysql. This system consists of 4 files namely admin.php, index.php, art.php and .htaccess. We will go through each files deeply. This time on we have used automatic setup system which will automatically create database and tables. In this system we have created a database article and table article . Lets see the screens of various pages: The homepage of the Blogging system showing the titles of the posts. When clicked on any post, the page of the blogging system The admin control panel of the blogging system where the admin can add new articles Lets go through various sections of this blogging system Lets create the index.php file // A function to initiate automatic setup of database and tables function setup() { echo(' <p style="color: #008000; text-align: left; font-size: 15pt;"">-Automatic setup is starte...

Create a simple chatroom system in php without databases

Image
In this post, you will be guided to create a simple chatroom system in php without any databases. This system will create a folder for each chatroom and will store data in a simple .txt file, which is later accessed from the server side to display the conversations in the chatroom. This chatroom is flexible and light weight, it automatically reloads itself in 10 seconds so that new information is fetched correctly. The complete system is based on just a single php file in which file handling is used to retrieve and store the conversations from the chatroom. Demo: The index page when you start a coversation The conversation section of the index page Lets have some look on the major sections of the code To ask details when someone visits the page for the first time if (isset($_GET['enSubmit']) && isset($_GET['uname']) && isset($_GET['rname'])){ echo'<meta http-equiv="refresh" content="10">'; ...

Create a Twitter Tweets like publishing system

Image
This post guides you to create your own Twitter. Well that's not completely true but this post will guide you to create a Twitter Tweets like publishing System. Using this system, your users can register and sign in to their profiles and can update their tweets just like in twitter. This system is just designed to show the user who tweeted and at what time. You can add extra functionalities.  The complete system is based of PHP and MYSQL and a lot of CSS styles. This system contains mainly 3 files, firstly the config.php , secondly the index.php and lastly the profile.php . After uploading the files to your web server, first edit the details of the config.php file, namely the database user,name and password. The run in on the web browser, just like http://www.xyz.com/config.php now you are just good to go. Your users can access the system by just going to your url. i.e. http://www.xyz.com/. Demo The Home Page of the system where user can login The Profile page o...

Create an app which can change Ringer mode through SMS

Image
Its been a common problem for all people, specially the young generation to locate their mobile when it's in Silent ringer mode. This app let you change your mobiles ringer mode through a SMS from some other mobile. Yes, you can trigger to general mode by just sending a HOT WORD from any mobile to your number. This app reads all your message and scans for that HOT WORD when found, performs operation with the AudioManager of your Android Smartphone. In this post, you will be guided how to create such application, not only that you can also extend its features by adding extra hot words. Basically all you need to know is about android Intent, which will be available soon on dProBuk. Well lets see some ScrrenShots. Checking The Current Mode Of The SmartPhone. No Background App Running, When received sms Vibrate, Changed to Vibrate mode Confrmed That Ringer Mode has changed ! Now Lets have a glance on the Important Sections of the Application: Code Snippet...

Build a Simple Contact Application With Calling Feature

Image
This post will help you to create your own Simple contact application which fetches all the contacts from the database and display it in a ListView. This actually accesses the contact database of the phone by a cursor adapter. Then it stores The name and the phone number associated in a listview using base adapter class. The basic function of this app is to call that number when clicked on a specific contact. Demo:   (a) The MainActivity, showing the List Of Contacts.              (b) When tapped, a call is placed by Intent. The Contact fetching code... public void addi() { Cursor phones = getContentResolver().query(ContactsContract.CommonDataKinds.Phone.CONTENT_URI, null,null,null, null); while (phones.moveToNext()) { //get name and number from cursor using column index String name=phones.getString(phones.getColumnIndex( ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME)); ...

Create a simple user profile system

Image
This post guides you to create you own simple user profile system. Using this system, your users can register and sign in. The complete system is based of PHP and MYSQL.  This system contains mainly 3 files, firstly the config.php , secondly the index.php and lastly the profile.php.  After uploading the files to your web server, first edit the details of the config.php file, namely the database user,name and password . The run in on the web browser, just like http://www.xyz.com/config.php/ now you are just good to go. Your users can access the system by just going to your url. i.e. http://www.xyz.com/. Demo The Homepage of the System, showing both sign in and sign up buttons. The Profile Page of the System, Showing the username and the last login details. PHPMyAdmin panel showing the data entered in the database. Lets Create the config.php file. <?php $dbhost = 'localhost';// Database Host. $dbuser = 'sid';// Database User. $dbpas...

Build Simple Calculator with basic operations

Image
This is a Simple calculator android app which performs basic add, sub, mul and div operations. This app displays the result as well as stores the history which can be erased when desired. The digits of the calculator are basically buttons as well as the operators. The zip includes the source code of this application The MainActivity Of The Application Storing The Calculations in the History Finding the answer of the expression in the History You can download the whole project here . Found Bugs? Comment Them, we shall be glad to fix them ! :)

Build Simple Music Player With AlbumArt Support

Image
This is a sample music player app which has play, pause and seek features. This is just a basic music player with a little customization. This type of app is suitable for mini projects. This basic music player also displays the default album art of the selected song. The app basically scans your whole External SD card recursively and add the songs to a Listview using a BaseAdapter class. Main Activity showing the list of Songs present in the SD Card.   M2Activity, Playing the song clicked on the Main Activity. Understanding In Detailed The src folder contains 4 java classes, the MainActivity.java which performs the adding of the songs in the ListView, ListData.java is just a structure class which handles operations of Song Name and Song Path. MyBaseAdapter.java is a baseadapter implemented class and the last, M2Activity.java is the class which does the rest of the work, i.e playing the clicked song. You can find the .apk file which is located in the /Sampl...

sPad, VI like sample text editor v1.0

Image
sPad is a Btech mini project. In this program you have the access to create view and save files. This is completely based on Command Line Interface. The zip contains a folder sPad and a powerpoint pptx file which will explain all its mechanish. Inside the sPad folder there are 5 header files init,open, pre,save and start  apart form these there is a .cpp file which is the Driver program. you need to compile that file which will genenrate a executable file. Understanding pre.h... This file includes the basic header files namely iostream,fstream and cstring. This file initializes 2 String type variables and a character array name. You can think as using one of the string for secondary memory which is permanent and another as a primary memory which is temporary. Understanding init.h... This file includes two functions namely inp() and hlp() , the inp() can be thought as if converting the primary memory contents to the secondary memory contents. In the hlp(), initially there is ...