Joel Francisco geek stories and photography misadventures

18Jul/080

Google Calendar, nice!

Google Calendar is probably the best web calendar around...well i dont know of any other than google. Well its really a nice way to be organized specially when your trying to be an organized person...hehehe.. It CAN sync with your MS Outlook 2003/2007 (currently) and iCAL if you are a MAC User. Coolest feature is that it sends you SMS when you tick it on the option of an event wherever you are, FOR FREE!! Isn't that the coolest thing? Google, im sure has its own SMS Gateway (well nothing really to be surprised of ) and sends reminders to your mobile phone if you set it up!

Google Calendar also has "share calendar" facility so you can share your own calendar to your friends and family so that they have an idea of what you are working currently. Well of course you dont put "going to the bathroom" kind of stuff in your events.

It works if you have a google/gmail account. So if you dont have one, go get one and dont be left behind with google technology. :-)

18Jul/080

1st Wedding Anniversaryeoke!

To my fans out there, if ever there are some or at least im sure there is one.....sorry for i havent updated this site. It has been a while since I blogged and I guess every weekend will be a great sched to at least shoot an entry on my site.

Anyway I have been waiting a long time to post our 1st wedding anniversary pics which was held a day before our wedding date (June 27).....eventhough we have had financial problems months before this very special day, but still my wife had managed to grace a small videoke party at home. I would like to thank first my wife for being there for me, my family, my kuya raffy for cooking most of the food, friends, relatives, brethrens and sisters from our Church and most of all to Our Almighty Father in Heaven.

Enjoy the pics!

17Jul/080

Password Protect a page using .HTACCESS

This is not actually a PHP code or command but since you have reached this article it simply means you are into PHP Programming.........and since Apache is THE webserver mostly used for open source web programming then might as well put this article on the PHP Basics Category.

So you want the easiest way to password protect your pages or perhaps the whole web folder by giving someone a username and a password to access a certain content or a web page. Ok so what do you need??

1. Make sure your using Apache Web Server (im not sure if this works in IIS)
2. .htaccess file (should be located in the folder where the pages you want to protect is)
3. .htpasswd file (should be located somewhere in the webserver, just so you know where you saved it)

STEPS:

1. Create a .htaccess file or htaccess.txt (since you might have some problems when doing this with MS Windows)
2. Put this in your .htaccess file:

AuthName "LOGIN WINDOW NAME"
AuthType Basic
AuthUserFile /folderwhereyourpasswordislocated/.htpasswd
require valid-user

3. Edit 1st line with whatever you want to call it
4. Edit 3rd line where the .htpasswd will be located (which is somewhere in your web server). Dont change anything anymore on the .htaccess file
5. Upload the .htacess file or your htaccess.txt on your web server where you want to password protect a page (e.g. /public_html/secretpage/)
6. In case you save it to htaccess.txt Rename htaccess.txt to .htaccess using your favorite ftp application (usually you highlight it, right click, then rename) . If not go to Step 7.
7. Create your .htpasswd file or htpasswd.txt
8. Generate the .htpasswd contents by going here: http://www.advancehost.com/htpasswd.html or look for HTPASSWD GENERATOR in Google
9. Fill the form and click submit
10. It will have something like this: (i entered username: user password: pass)

Success!

Here is your crypted password. Copy and paste the output to your htpasswd file:

user:pauONM/HSu9pM (this is just an example)

11. Copy/paste user:pauONM/HSu9pM to .htpasswd then save
12. Upload .htpasswd to the location you put on step no. 4
13. Test it! Voila your page is protected!

17Jul/080

PHP Redirect Page

Been busy lately. But I would just like to share some useful PHP basics (to all wannabe nerds out there) and also to make this site a little more useful to others, that is why i have a new category just for this epiphany. Ok here we go:

PHP: How to Redirect a Page (to somewhere other than that page)

Just put this code before the <html> tag and edit the blue colored text as you like:

<?php

header( 'Location: http://www.domain.com/new_page.html' ) ;

?>

We usually redirect a page if we just don't want it to go to the page where its suppose to go.....weird... anyway i find it very useful.
Cheers!

Random Snaps

DSC_0553.jpg dubai-bowling-ink-kalihiman-1 Dubai Festival City Night Shoot DSC_0565.jpg Gawad Kalinga - Shoot & Shelter DSC_0382.jpg DSC_0834.jpg Gawad Kalinga - Shoot & Shelter

Blogroll

Archives

Categories

RSS Tekzilla!

New Tag Cloud