Archive for 'Knowledge'
Dummy Data Generators
Posted on 16. Dec, 2009 by Nikhil Sheth.
Dummy / test data is an effective way to test web projects & applications. Other than meaningless data, real names, addresses, zip codes can make the whole testing stage easier. Here are few sites/tools which are there to help you: GenerateData GenerateData is a free, open source script written in JavaScript, PHP and MySQL that lets you quickly [...]
Continue Reading
Last inserted ID in MYSQL
Posted on 15. Dec, 2009 by Nikhil Sheth.
Whenever you are doing multiple inserts in a single INSERT query, LAST_INSERT_ID() OR mysql_insert_id will return you id for the first insert of the query and not the last. So take care while doing multiple inserts in a single query. A work around would be, you get the value of last inserted ID and add [...]
Continue Reading
Check if page is loaded in IFrame
Posted on 30. Nov, 2009 by Nikhil Sheth.
I was working on a page and wanted to make sure that this page is not opened in an iframe. Here is some piece of javascript code which helps you to detect this. var inFrame= (window.location != window.parent.location) ? true : false; If inFrame is true you can redirect user or throw some alert. Share/Save
Continue Reading
FaceBook has 30,000 servers and serves 600,000 images per second!
Posted on 24. Nov, 2009 by Nikhil Sheth.
How many servers does Facebook have? 30,000 servers! How? Before 18 Months back Facebook had about 10,000 servers but in those 18 months, the company has seen lot of growth an had borrowed a sum of $100 million which was probably for setting up 20,000 servers. 600,000 Images served every second! Facebook, has 300 Million Active users which have [...]
