Saturday, December 28, 2013

How to remove http://en.v9.com/ from Stat up page chrome

i tried more to get rid of this bloody page http://en.v9.com/
i changed my all settings in chrome browser and finally i found that it's not a problem of chrome extension
or a problem of start up page.

Finally i found that the issue in my chrome shortcut and i Fixed It..

Follow the steps.

Right button on chrome shortcut(Icon) 


Select Properties


In Target box clear text after this

"C:\Program Files\Google\Chrome\Application\chrome.exe"

Click OK

Then Open chrome see the magic...



Friday, November 29, 2013

How to Integrate Auto complete in Textbox JQuery

First of All Create a Text box

<label for="tags">Tags:</label>
<input id="tags">

Then to integrate autocomplete jquery Library Download JQuery UI file from Link HERE or Add server Link in your Head Section.


Just Like:

<script src="js/jquery-ui.js"></script>

OR

<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>

Then add items you want autocomplete to an array


var availableTags = [
        "shihab",
        "sabeer",
        "Tholhath",
        "Anju",
        "Anu",
        "shivin",
        "Jacob",
        "Sajeesh",
        "Jinesh",
        "Shibu",
        "Kiran",
        "Arjun",
        "Jamsheer",
        "Jam",
        "Boby",
        "Aji",
        "Subash",
        "Kumari",
        "Shahid",
        "Siraj",
        "Hari",

        "Radha"];

Then integrate Auto completion to a Control means TextBox.


$("#tags").autocomplete({
        source: availableTags,
        position: {
            my: "left top",
            at: "left bottom",
        }
    });

Use this styles for Good Look for auto Completion List


.footer-auto {
    background: gray;
    color: white;
}


Wednesday, November 27, 2013

phpMyAdmin - can't connect - invalid setings - ever since I added a root password - locked out

I Got the Error:

MySQL said: 
Cannot connect: invalid settings. 
phpMyAdmin tried to connect to the MySQL server, and the server rejected the
connection. You should check the host, username and password in your
configuration and make sure that they correspond to the information given
by the administrator of the MySQL server.
and I Solved it by using the solution written Below.

For wamp server:
IN: C:\wamp\apps\phpmyadminVERSION\config.inc.php
$cfg['Servers'][$i]['AllowNoPasswordRoot'] = true; 

$cfg['Servers'][$i]['AllowNoPasswordRoot'] = false; 
For xampp server:
because of xampp server had the following settings.
C:\xampp\phpMyAdmin\config.inc.php
$cfg['Servers'][$i]['user'] = 'root';

$cfg['Servers'][$i]['password'] = ''; // which is default setting in xampp server

$cfg['Servers'][$i]['password'] = 'your password';//type your password you have changed
DONE..

Error message “Forbidden You don't have permission to access / on this server"

Error:403 Forbidden You don't have permission to access / on this server

I faced the same issue, but I solved it by setting the options directive either in the global directory setting in the httpd.conf or in the specific directory block in httpd-vhosts.conf:
Options Indexes FollowSymLinks Includes ExecCGI
By default, your global directory settings is (httpd.conf line ~188):
<Directory />
    Options FollowSymLinks
    AllowOverride All
    Order deny,allow
    Allow from all
</Directory>
set the options to : Options Indexes FollowSymLinks Includes ExecCGI
Finally, it should look like:
<Directory />
    #Options FollowSymLinks
    Options Indexes FollowSymLinks Includes ExecCGI
    AllowOverride All
    Order deny,allow
    Allow from all
</Directory>


DONE..

500 internal server error in zend framework

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at admin@example.com to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
I Faced this error when i install wamp server and run a website using vitual host..

Then i googled for a solution. Finally i got solution which shows below


Using Zend Application you may see more information about the errors putting those lines inapplication.ini:
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
resources.frontController.params.displayExceptions = 1
500 Errors are mostly caught exeptions. You may debug the problem looking at the variables inErrorController.php.
Also, the most common Apache issues:
  • mod_rewrite module not enabled in Apache
  • required RewriteBase / rule in .htaccess (on shared hostings)
  • missing AllowOverride All in virtual host configuration
DONE..

Wednesday, September 4, 2013

Create a Simple List View In android Development



Create a project ListTest.

An Android Project Have Three Parts.

1.Activity 
is using to Write our Logic and Events.

2.Manifest
is using to set configuration and application Permissions.

3.Layout 
is an XML File it defines Controls using in our Application.



Look Our Manifest File.[AndroidManifest.xml]
is locating in root of our project


<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.listtest"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="8"
        android:targetSdkVersion="17" />

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"

        [@string/app_name is Our application Titile
        It Defined in res/values/string.xml file.]

        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <activity
            android:name="com.example.listtest.MainActivity"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>


</manifest>


Look at the Values  in String.xml file.


<?xml version="1.0" encoding="utf-8"?>
<resources>

    <string name="app_name">Indian Actors List</string>
    <string name="action_settings">Settings</string>
    <string name="hello_world">Hello world!</string>


</resources>

Then Completed our Configuration Then we want to Create The Layout.

Look our Layout File.[activity_main.xml]


<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"

xmlns:tools="http://schemas.android.com/tools"

android:layout_width="match_parent"

android:layout_height="match_parent"

tools:context=".AdapterActivity" >



<ListView

android:id="@+id/list_id"

android:layout_width="fill_parent"

android:layout_height="fill_parent"
android:columnWidth="10dp"
android:gravity="center"
android:numColumns="auto_fit"
android:stretchMode="columnWidth" >
</ListView>

</RelativeLayout>

Finally Defining Activity[MainActivity.java]

package com.example.listtest;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.Toast;

public class MainActivity extends Activity {

ListView listView;

static final String[] numbers = new String[] { "Mammooty", "Mohan Lal", "Amithab Bachan",
"Salman Khan", "Amir Khan", "Ram Charan", 
"Allu Arjun", "Surya", "Vikram", "Vijay" };

@Override
protected void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.activity_main);
  listView = (ListView) findViewById(R.id.list_id);
  ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,
  android.R.layout.simple_selectable_list_item, numbers);

  listView.setAdapter(adapter);

   listView.setOnItemClickListener(new OnItemClickListener() {

      @Override
      public void onItemClick(AdapterView<?> parent, View v,
int position, long id) {
 Toast.makeText(getApplicationContext(),
        ((TextView) v).getText(), Toast.LENGTH_SHORT).show();

       }

   });
}

@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}

}


Done...

if any doubts in this article please write your doubts as comments..

Wednesday, May 8, 2013

How to install Zend framework in Windows


1.Download Zend framework package from http://www.zend.com/en/company/community/downloads

2.unzip all files.

3.i created a folder in C:\program files\zendFramework. (its not necessary)

4.i copied bin and library folder to zendFramework folder. (all other files are not important)

5.then right click on computer->Properties->Advanced system Settings->in advanced tab click Enviromental variables button
In System Variables list select Variable Path then click Edit Button.

6.Then Add a semicolon at the end.

7.then add bin directory path of your zendframework folder after semi colon. in my case C:\program files\zendFramework\bin.
click ok.

8.Then open Command prompt(cmd).

9.type zf show version then it will show zend framework version.

Incase it's showing an error then we can understood that the zf.bat file is missing from our framework folder.
Download zf.bat from http://framework.zend.com/svn/framework/standard/incubator/bin/zf.bat
add zf.bat file to your bin folder.in my case "C:\program files\zendFramework\bin".
Then repeat step 8,9.

DONE..

Tuesday, May 7, 2013

Accessing Drupal’s Login Page After You Have Already Disabled The User Login Block

Drupal is big on user community. By default, a fresh installation of Drupal plops a user login block in the left navigation column. But maybe you’re just getting started with a new site and you don’t want to look pretentious talking about “users” when in fact you are the only one using the site.
Well, turning off the user login block is easy. As with any block, you can disable it via Administer->Site Building->Blocks. However, once you’ve disabled the block for the general public, you will still want to log in. Now what?
To get a login page, browse to the root of your Drupal installation and add “?q=user” to the end of the URL:
http://www.somesite.com/?q=user
or
http://www.somesite.com/install_directory/?q=user
P.S. Here’s to hoping that your site gets big enough that you want to turn the login box back on!!!

Add Virtual Host Apache Wamp windows














1.Create a folder where you want to create a host.

i am created like:C:\websites

2.Then Go to Your Wamp folder open  bin->apache->apache2.2.22->Conf  open httpd.conf file
Search #Include conf/extra/httpd-vhosts.conf then clear comment(#).
Then Save httpd.conf file..

3.Open "Extra" Folder of same Directory Open httpd-vhosts.cof file.
Then Add Name VirtualHost:<Host Name>







Then Add Host Details:


<VirtualHost *:80>
ServerName zf-tutorial.localhost
DocumentRoot c:/websites/zf-test/public
<Directory "c:/websites/zf-test/public">
AllowOverride All
</Directory>
</VirtualHost>












* zf-test->public is my project's main directory.

4.Then goto c:\windows\system32\drivers\etc\ open Hosts file.
Then add 127.0.0.1   <virtualhost Name> in my case i am using  zf-tutorial.localhost.








5.Then Restart all services in wamp server.





















DONE..



ChkModule Not Working in Drupal solved

  1. Unzip the module files to the "sites/all/modules" directory. It should now contain a "ckeditor" directory.
  2. Download standalone CKEditor from http://ckeditor.com/download. Unzip the contents of the "ckeditor" directory from the installation package to the "sites/all/modules/ckeditor/ckeditor" (or "sites/all/libraries/ckeditor") directory. Note: you can skip uploading the "_samples" and "_source" folders.
  3. Enable the module in the "Administration panel > Modules > User Interface" section.
  4. Done..