Add UNIQUE constraint to column in MySQL
Add UNIQUE Constraint
ALTER TABLE
| First Row | ![]() |
![]() |
|
| Second Row | ![]() |
![]() |
|
| Third Row | ![]() |
![]() |
|
| Fourth Row | ![]() |
![]() |
~HTH
Samsung Jet S8003 . Add / Remove from Reject List
Just adding a number to Reject List alone won’t work with Samsung Jet S8003.
You need to activate the function from here.
Settings ->Application Settings->Call->All Calls->Auto Reject
Activation On / Off.
To remove a number from auto reject can also be done here.
Quote
Whether we wake or we sleep,
Whether we carol or weep,
The Sun with his Planets in chime,
Marketh the going of Time.
~Edward Fitzgerald
Creating Microsoft Office Outlook 2007 Signatures when New Signature option is disabled.
The place where I work , we have company default signature for all the Outlook Messages we create.
I always wanted to add more information to that signature or create another project specific signature for my mails.
But the Tools->Options->Mail Format->Signatures->New Option is disabled in my Outlook.
Following is a workaround that I found to create/edit new/existing signature in Outlook 2007.
Additional tools that I used is Microsoft Office Word 2007 .
Create new Signature
——————————
Open MS Word and create a good looking signature of your choice with all the formatting , pictures , colours that you need.
Create a folder in your desktop ( eg: “My Signature” ) and save your newly created Word document to that folder.
Save the Word document in three formats from MS Word. Select File -> Save As
Save as -> Web Page
Save as -> Rich Text Format
Save as -> Plain Text [When asked for Text Encoding : select default , ie Windows ( Default )]
Save the file with same name ( eg: MySignature.txt , MySignature.rtf, MySignature.htm ).
Microsoft Word will create an addictional folder when you save a document as Web Page for pictures and the styles for that page. Which will be <your file name>_files folder.
So now you have three files with same name and a folder with you. Copy these files and folders ( not the directory you created , just the files and folders ) to
C:\Documents and Settings\<your login name>\Application Data\Microsoft\Signatures
This is the place where Outlook keeps its signatures.
Edit existing Signature
———————————
C:\Documents and Settings\<your login name>\Application Data\Microsoft\Signatures
Browse to the folder specified above , right click on the file ( will be same as your Signature name ) and select Edit. If you have Microsoft Office installed in your machine the document should open up in Microsoft Word. Do edit all the three formats of your signature , ie txt,rtf and htm which is available inside the Signatures folder.
Now you should be able to see your new signature listed for selection in your Outlook. Good Luck!
Checkbox selection logic
This js restricts the selection from a group of checkboxes to four. If a fifth one is selected , then the first one whichever was selected will be unchecked.
A combination of js and jQuery.
// Restricting the vehicle selection to FOUR – Start
var vehList=new Array();
vehList[0]=””;
vehList[1]=””;
vehList[2]=””;
vehList[3]=””;
var vehObjList = new Array();
vehObjList[0]=””;
vehObjList[1]=””;
vehObjList[2]=””;
vehObjList[3]=””;
function restrictVeh(obj,name){
var selVin = name;
var remVeh = “”;
var remObj;
if($(obj).attr(’checked’)){
for(var incr=0;incr <= 3 ; incr++){
if(vehList[incr]==””){
vehList[incr]=selVin;
vehObjList[incr]=obj;
break;
}
if(incr==3){
remVeh = vehList[0];
remObj = vehObjList[0];
$(remObj).attr(’checked’,false);
for(var cnt=0;cnt<3;cnt++){
vehList[cnt]=vehList[cnt+1];
vehObjList[cnt]= vehObjList[cnt+1];
}
vehList[3]=selVin;
vehObjList[3]=obj;
}
}
}else{
for(var incr=0;incr <= 3 ; incr++){
if(vehList[incr]==selVin){
vehList[incr]=””;
vehObjList[incr]=””;
for(var cnt=incr;cnt<3;cnt++){
vehList[cnt]=vehList[cnt+1];
vehObjList[cnt]=vehObjList[cnt+1]
}
vehList[3]=””;
vehObjList[3]=””;
}
}
}
/* for(var incr=0;incr <= 3 ; incr++){
alert(vehList[incr]);
} */
}
// Restricting the vehicle selection to FOUR – End

