Tuesday 26 August 2014

Core Java Programming



This post is for student who study java and they need many programs in their exam and test so I am trying to make some java programs which help them to make their work easy 

Question : Write a program which accept input of full path of a file and produce following output?
Input : C:/Users/Public/Pictures/SamplePictures/Desert.jpg
Output :
Extension : jpg
File Name : Desert
Path : C:/Users/Public/Pictures/SamplePictures

Solution :

import java.util.*;
public class Main
{

       public static void main(String[] args)
    {
        String str;
        Scanner sc=new Scanner(System.in);
        System.out.print("Enter your name>> ");
        str=sc.nextLine();

Monday 18 August 2014

How to send email a form data using php


Form is a electronic way where organization gathered data from user through website. A website owner usually take details of esquires to his website using login provide by the website developer.
But we are familiar with email because it’s an era  of android word and every one configure email with mobile so sending form data in email as well as database is a good idea.
PHP provide a easy way to achieve this just take a look on flowing code and please don’t say thanks to me.

                    $to =' rajkumar9795@gmail.com';
                  $subject = 'Enquiry Data';
                  $message = "<h2>Welcome This is Enquiry for Now</h2><hr>Name : $_POST[name]<br>Gender :  $_POST[gen]<br>Course : $_POST[course]<br> Email : $_POST[email]<br>Mobile : $_POST[phone]<br>Query : $_POST[query]";
                 
                  $headers = 'From: bcmt@basantgroupofinstitution.org' . "\r\n" .
                                  'Reply-To: basantcollege.mt@gmail.com' . "\r\n" .
                                  'X-Mailer: PHP/' . phpversion().
'MIME-Version: 1.0' . "\r\n".
'Content-type: text/html; charset=iso-8859-1' . "\r\n";
                 
                            mail($to, $subject, $message, $headers);                                                


Thursday 31 July 2014

Window 7 Shortcut Keys


General Keyboard Shortcut

F1
Display Help
Ctrl+C
Copy the selected item
Ctrl+X
Cut the selected item
Ctrl+V
Paste the selected item
Ctrl+Z
Undo an action
Ctrl+Y
Redo an action
Delete
Delete the selected item and move it to the Recycle Bin
Shift+Delete
Delete the selected item without moving it to the Recycle Bin first
F2
Rename the selected item
Ctrl+Right Arrow
Move the cursor to the beginning of the next word
Ctrl+Left Arrow
Move the cursor to the beginning of the previous word
Ctrl+Down Arrow
Move the cursor to the beginning of the next paragraph
Ctrl+Up Arrow
Move the cursor to the beginning of the previous paragraph
Ctrl+Shift with an arrow key
Select a block of text

Friday 25 July 2014

Window 7 Basic and Tutorial

The desktop (overview)
The desktop is the main screen area that you see after you turn on your computer and log on to Windows. Like the top of an actual desk, it serves as a surface for your work. When you open programs or folders, they appear on the desktop. You can also put things on the desktop, such as files and folders, and arrange them however you want.
The desktop is sometimes defined more broadly to include the taskbar. The taskbar sits at the bottom of your screen. It shows you which programs are running and allows you to switch between them. It also contains the Start button, which you can use to access programs, folders, and computer settings.
Working with desktop icons
Icons are small pictures that represent files, folders, programs, and other items. When you first start Windows, you'll see at least one icon on your desktop: The Recycle Bin (more on that later). Your computer manufacturer might have added other icons to the desktop. Some examples of desktop icons are shown below.
Examples of desktop icons

Double-clicking a desktop icon starts or opens the item it represents.