Friday, December 9, 2011

My First HTML Program



Do you miss my SMS?
YES
NO

Drupal 7 in XAMPP on Windows 7


Step 1: Download XAMPP
Step 2: Open XAMPP Control Panel
Step 3: Start Apache and Start MySQL*
Step 4: Download Drupal
Step 5: Extract Drupal in XAMPP/htdocs**
Step 6: Rename XAMPP/htdocs/drupal-7.10 to XAMPP/htdocs/drupal
Step 7: Now go to http://localhost It will redirect you to http://localhost/xampp
Step 8: Click on phpMyAdmin which will be at bottom left place in sidebar
Step 9: Create new database named drupal
Step 10: Now go to Privileges and add a new user. ex.. username-root and password-admin
Step 11: Go to http://localhost/drupal***
Step 12: Select profile as Standard then your prefered language and database as MySQL,MariaDB,or equivalent and give new username and password
Step 13: You are done!

*If you are having problem with XAMPP Control Panel with Start and Stop options then shut XAMPP down completely and Run It As Administrator

**If you are using WAMP instead of XAMPP then go to www folder

***If you are not able to execute Step 11 (object not found error or Drupal Already Installed) then go to XAMPP/htdocs/drupal/sites/default and copy default.settings.php in same place and rename copied file to settings.php

for any queries comment over here or contact me on facebook or mail me..

THE FUTURE JAVA CODER

This is a sample program to convert URI (Uniform Resource Identifiers) to URL (Uniform Resource Locator).

import java.net.*;

public class DemoConvertURItoURL {

    public static void main(String[] args) {
        URI uri = null;
        URL url = null;
        String uriString = "http://www.google.co.in/";
        // Create a URI object
        try {
            uri = new URI(uriString);
        } catch (URISyntaxException e) {
            e.printStackTrace();
        }

        // Convert the absolute URI to a URL object
        try {
            url = uri.toURL();
        } catch (IllegalArgumentException e) {
            e.printStackTrace();
        } catch (MalformedURLException e) {
            e.printStackTrace();
        }

        //print the URI and URL
        System.out.println("Original URI  : " + uri);
        System.out.println("Converted URL : " + url);

    }

}