Posts

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/...

How to Show and Hide Text in Blog Post

Image
I would like to share on how to make a Show/Hide text in your blog post. I'm sorry if I didn't explain detail enough because I want to keep my post short as I'm in a hurry. However, you can read the detail explanation on Blogger Help . In this example, I assume you have sub topics that you want to make it hidden until reader clicks on the headline. Without the show/hide trick, it would look like this... Title One This is the example text for title one. Title Two This is the example text for title two. Title Three This is the example text for title three. Here's my step to do this... Firstly, edit your template and add the following code in the CSS area. .posthidden {display:none} .postshown {display:inline} Then add the following javascript code on your blog template between the <head></head> tag. <script type="text/Javascript"> function expandcollapse (postid) { whichpost = document.getElementById(postid); if (w...

How to burn bin & cue file to DVD

Image
I've been playing around with Torrent downloads few weeks ago and encounter this problem to burn a bin & cue files that I've downloaded. Seems stupid right? I suppose to have it done perfectly in Nero but then the problem appears and it took me hours to think about this simple solution. The Problem Let me list my problem on burning this bin and cue files using Nero. The bin file size is larger than maximum CD-R size. It is about 2.9GB Every time I load the cue file through the Burn Image menu in Nero, it will automatically set it to burn on a CD-R. How stupid is this? I can't find ways to change the target media to burn it to DVD from the automatically set CD-R media. Am I stupid then? The Solution After struggling with Nero and everything I got in my PC, then I've come out with this simple and easy solution to solve the problem. Actually, I have Virtual DEAMON installed in my PC. For those who don't know about the software, it works as my virtual drive where I...

Software is not just the Computer Programs

Image
Currently, I'm helping myself with my Software Engineering class. So, I would like to share with you what I've learned. And maybe this could help for your better understanding on what is the real meaning of a Software . Owh, I'm going to be serious on this. When talking about software, some people always refer it as the executable files. I mean the '.exe' files for windows or other executable files in other operating system which I'm referring it as computer programs . Actually, software is not just the computer programs but also all associated documentation and configuration data that is needed to make this programs to operate correctly . Now I've sound like the lecturer hahahah... Anyway, a software system usually consist of a number of separate programs, configuration files, system documentation, user documentation, and even also web sites for users to download recent product information or updates. Configuration files: is used to set up these computer ...

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...

My Cheat Code to Create Properties in VB6

Image
Did you ever feel lazy to type the same code with a small modification but it is every where. And doing the same work repeatedly for let say 34 times? I will feel like my hand got the RSI (Repetitive Strain Injury). The most common task that I encounter this situation is when creating a set of properties for any classes. As the time goes I discover a cheap cheat code to reduce my coding work and let some script do my repeated work for me... Here is my code to create a set of 17 properties in a class... Public Sub MakePropCode() Dim vsProp Dim vlProp Dim vbProp Dim i As Long Dim sOutPut As String ' array of string properties vsProp = Array("ISNFolder", "ISDFolder", "CSVFolder", _ "DBHost", "DBUser", "DBPassword", _ "RDBHost", "RDBUser", "RDBPassword", _ "LogPath", "DRSMHost", "DRSMID", "...

How to Flip Your Visual Basic Form in another Form

Image
I recently joined myLot forum . It is a paid to post forum introduced by my friend. Hah! Hah! I'm thinking about making money while hanging around the net with friends. Isn't that great? You can get money if you start a good discussion and even get money when responding in discussion in a good manners. The good thing is myLot can pay me via PayPal or e-Gold. So, if you are interested too, then you can simply join the myLot forum for free by clicking here and then click on sign up. Ups, back to the topic. While browsing the forum, I found a Visual Basic question about how to flip the content of the VB form . So, I decided to help him and make this simple step by step code. OK lets make it simple because I also hate to type a lot . We are using VB6 to create this small project. So, make sure you have VB6 installed to follow this steps. Step 1: Open up VB6 and create new project using 'Standard EXE' . Step 2: Add one CommandButton (we will use this to trigger the f...