Posts

Showing posts with the label web programming

Firefox, Safari and IE Compatible CSS min-height

Image
All webmaster should already knows that some CSS code may not compatible from one browser to another. You may noticed that on the CSS code would be a list of redundant code in order to hack this out. However, while surfing today, I found one good simple tricks for min-height and min-width CSS code that is compatible across all common versions of Safari, Firefox and IE. Maybe you already found and use it. I'm posting this for my notes and maybe it could be helpful for others too... The Cross Browser min-height CSS .foo { min-height:100px; height: auto !important; height: 100px; } This works because all of the more recent browsers will understand and respect the min-height setting as well as the !important designation. So in the example above, the block will be given the min-height setting you specify, and the height:auto will take precedence over the height:100px, even though it appears earlier in the code. With content shorter than 100px, the min-height settin...

DNS Domain Expiration Checker Script [Update for .my domain]

Image
Do you have more than one domain to manage? Have you ever failed to renew your domain before it expires? This simple domain-check script maybe your life saver. Originally, it was written by Ryan Matteson . Then Vivek Gite add up support to .org, .in, .biz and .info domain names. And now, I've updated the domain-check script to support Malaysia (.my) domain. I should call this DNS Domain Expiration Checker Version 1.6 In order to use the script, you can simply download the script and rename it to domain-check . Then chmod +x to be able to execute it. You can run it to parse a list of domain in a text file and send an email alert to you for any domain that about to expire. Command line code to download: $ wget http://coderstalk.googlepages.com/domain-check.txt -O domain-check Sample Usage: (in directory where you place the script) apogee@apogee-persiasys:~$ ./domain-check -d google.com.my Domain Registrar Status Expires Days Left -------...

Malay translation code

Image
Long time ago, I've been interested in creating an application to translate English to Malay, and Malay to English . However, up until now, I'm still here, sitting with nothing comes out of my tiny little brain. No single code... Hopefully, if I have time to spent on this "personal" non-profit project, I want to share it with all of you. Maybe I'll create a page like Babel Fish or Google Translate to help you in translating English phrase or website to Malay and vice versa. Babel Fish is using SYSTRAN , while Google Translate use their own translation software. I always interested in what google is doing, because maybe I'm crazy about how google have done in revolutionize this information technology world as we already know. Many thanks to people in google for helping me out with this FREE technology. They make my self-learning journey become easier from day to day. Uh, I do get money from Google Adsense too... Back to the story, I did look after what tech...

000webhost.com My New PHP testing ground

Image
I found a new free web hosting plan without ads or anything... It's really great to share it with you. before you talk back to me, please note that this is not a so called 'paid article' for them... I'm sharing this for free. Because they are so good. You can check it out yourself at http://www.000webhost.com . So, what's good about this host? Actually, I just register and see the features... I got total access to my cpanel and host. they give me a free domain http://apogee.890m.com . I can have up to 5 sql databases and up to 5 email accounts. I also got an ftp account and can have up to 5 ftp accounts. You can have PHP and MySQL too... Hey, who's gonna give you 250MB free web space?... Isn't that great? Then, What I'm gonna do? So, currently I've planned to install wordpress and play around with PHP and MySQL on this account. I'll call it my online PHP-MySQL code testing ground. Wow, it could be my adsense source too... heheh. Here's their...

How to Redirect Using PHP

Image
A simple PHP script could be use to redirect visitor from the page they entered to a different web page. There is lot of reason you may want to do this including: You may have links that is no longer exists in your domain You don't want anybody to browse your parent directory where you don't have any index page in it Or maybe you may want to shorten your long url like TinyUrl. Using this simple method, they can be seamlessly transfered to the new page without having to click a link to continue. Why use PHP for redirecting? Here's some reason on why we are using PHP for redirecting. Users are redirected quickly and seamlessly When using the 'Back' button, the user is taken to the last viewed page, not the redirect page Works on all browsers However, you have to make sure that your web host do support PHP in order to do this. In this example, assuming Mikey want to redirect his visitor who go to his domain http://mikey.com to his blog Url which is at http://mikey.com/...

Fighting for the World's Smallest Website

Image
Did you ever noticed that there is some webmasters are fighting for the title of World's Smallest Website ? The first website I know doing this is guimp.com where it is only 18x18 pixels in size which is smaller than a small fingernail. But yet it have all the functionality to be voted as qualified website where it have site navigation, and even packed full of fun projects including pong, pacman, space invaders, pinball, a blog and pixel art. Then I started googling around to find whether this is the one and only smallest website in the world but no... There is other websites with smaller size and have the equal functions too. You can check it out for yourself. The sites that I have found with this intention to be the Smallest Website are: http://www.guimp.com - 18 x 18 pixels http://dot16.pixeltemple.com - 16 x 16 pixels http://www.coolornot.com/ - 15 x 17 pixels http://www.121pixels.tk - 11 x 11 pixels So, if you found something like this and I didn't list it here, plea...