Tuesday, December 6, 2011

Drupal 6 Installation Error Solved

Warning: ini_set() has been disabled for security reasons


Try some of these:
Open .htaccess file in your Drupal install. Near the top, put a '#' before 'Options +FollowSymLinks' (# Options +FollowSymLinks).
Create a text/notepad file called 'php.ini' and put inside it 'register_globals = 0'. Put this file straight in public_html (main/root directory)


http://drupal.org/node/842316

fopen and modifying header errors

when I was having problems I had simply renamed default.settings.php. So I went back and copied that file and renamed it so I had default.settings.php and settings.php and it worked

http://drupal.org/node/284063


Friday, December 2, 2011

Check Too many connection issues for MYSQL

-- This command will return you the value of max_connections variable
SHOW VARIABLES LIKE '%max_connections%';

-- This command will show you all processes and connections.
SHOW FULL PROCESSLIST;


http://www.microshell.com/database/mysql/mysql-too-many-connection-errors/

http://dev.mysql.com/doc/refman/5.5/en/too-many-connections.html

http://dev.mysql.com/doc/refman/5.5/en/show-processlist.html



Thursday, December 1, 2011

Fb Like Button

<div dir="ltr" style="text-align: left;" trbidi="on">

<script src="http://connect.facebook.net/en_US/all.js#xfbml=1">
</script>

<div style="float: right; padding-right: 80px; padding-top: 125px; text-align: center; width: 100px;">
<div id="fb-root">
</div>
<fb:like font="" href="http://www.facebook.com/pages/Suba-Muhurtham-Matrimony/254980637898369" layout="button_count" send="false" show_faces="false" width="200"></fb:like></div>

</div>

Monday, November 28, 2011

Titanium Appcelerator Password field creation


var formElement = Titanium.UI.createTextField({
  value: "",
  width: 100,
  height: "auto",
  hintText: "Password",
  passwordMask: true
});

Thursday, November 17, 2011

Titanium Android Iphone Text Field submit

// this sets the background color of the master UIView (when there are no windows/tab groups on it)
Titanium.UI.setBackgroundColor('#000');

// create tab group
var tabGroup = Titanium.UI.createTabGroup();


//
// create base UI tab and root window
//
var win1 = Titanium.UI.createWindow({
title:'Tab 1',
backgroundColor:'#fff',
tabBarHidden:true
});
var tab1 = Titanium.UI.createTab({
icon:'KS_nav_views.png',
title:'Tab 1',
window:win1
});

var input_1 = Titanium.UI.createTextField({
color:'#787878',
height:45,
top:20,
width:250,
hintText:'test hint',
borderStyle:Titanium.UI.INPUT_BORDERSTYLE_ROUNDED,
});
win1.add(input_1);

var button1 = Titanium.UI.createButton( {
title : "Go",
top: 150,
width: 200,
height: 44
});
win1.add(button1);
button1.addEventListener('click', function (e){
alert('Hello \n You have logged in with a username of '+input_1.value+'.');
});

//
// add tabs
//
tabGroup.addTab(tab1);


// open tab group
tabGroup.open();