TypeError: $(…).autocomplete is not a function

Error: TypeError: $(…).autocomplete is not a function
Solution: Make sure to call the jquery ui as shown below

<script async src="//code.jquery.com/ui/1.10.1/jquery-ui.min.js"></script>


pdf embed on html without using flash

I was looking for ways to embed pdf file on html without using flash. There are many ways of doing it, other suggested of using www.scribd.com but the prob is it would be hosted in their server. Then I found this solution using the google viewer which you only need to supply the url and also another good thing is it doesn’t require flash :)

<iframe src="http://docs.google.com/gview?url=http://example.com/mypdf.pdf&embedded=true" style="width:718px; height:700px;" frameborder="0"></iframe> 


date() error in php 5.3

After reinstalling my local machine and updating the php version to 5.3 I’m getting this error:

Warning: date() [function.date]: It is not safe to rely on the system’s timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier.

Based from what I’ve researched regarding this you need to set a timezone for date. So go to php.ini locate date.timezone and put some value on it. e.g.,
date.timezone = ‘UTC’

htdocs folders in vista not showing

After reinstalling apache, php in vista I got trouble displaying my htdocs folders on browser. Some were there and some were not. I double checked my apache settings if I missed something but so far I did not. I compared what’s the difference of those folders and found out that the one with .htaccess file in it were not showing. Realizing that, it means something to do with my htaccess file. Checked my httpd.conf settings and I forgot to uncomment this line #LoadModule rewrite_module modules/mod_rewrite.so, so all you need to do is uncomment it and you’re good to go.

Never stop dreaming, until you're ready to wake up and make it happen