Today one of my colleague asked me to write about (a lot) a tip on Eclipseon linking appropriate editor to a particular file extension. My colleague told me he had tried to find this solution in my blog but he couldn’t – I feel sorry for that.
From now on, I will be posting quite a few of tips which I come across in my day to day life.
Today I am going to write a tip on Eclipse‘ – associating a file with any extension to any editor.
This is the simple “create table” example isn’t? This table can hold millions of data (record) no doubt on that. But can you give me a guarantee on the performance – when I request some portion of data for a range of field ‘id’? You might say why don’t you add an “index” to the fields. Yes, exactly that will improve the performance of this table, it does increase, and by optimizing this field by assigning the ‘id‘ field an unsigned it doubles the speed of returning (with or without index and performance depends on the number of records you fetch) the results of a select query.
Ah! Do you guys know about this? Honestly I was not aware of this attribute till yesterday. It’s one of the good to have attribute for all the form tags; it helps in building security for payment related projects.
Recently I had to resolve a problem in one of the ecommerce project where user has to enter their credit card info to process the payments. The problem is the <input> tag was throwing the suggestion on the credit card number; it was retaining the credit card number & other few data even when any other user logs into the same page on the same machine.
After some googling I found the solution to the problem. It’s not exactly a problem but it’s one of the features given by the browsers to avoid entering the data on same <input> tags again and again. This is especially dangerous if someone enters their credit card number from a public computer. Hence to make sure the process is secure, use “autocomplete” attribute in your <form> tag.
<form name=”cc” autocomplete=”off” >
Our engineers out there have come up with an extra attribute called “autocomplete” which accepts the value of boolean and depending on the value it tells the browser to hide/show the pre-existing data.