Wednesday, April 09, 2008

Using sedo.com to advertise domains for sale

I signed up with Sedo.com's free domain parking service the other day. Of course, the hope is that they will advertise my parked sites enough to spark some buying interest. There are so many site out there these days, I'm not sure they will ever move off the "shelf".

Here is what I'm selling:

Wednesday, January 23, 2008

Creating an Ajax capable database using mySQL (Part 1)

I'm not going to spend a lot of time explaining how this works up front, however, if any of you reading this would like more information, please let me know. The first set of code belongs to your main page. I'm using .php extensions, so, everything except for the javascript code ends that way. You'll find some of the code is not relevant to the database itself, such as the W3C xhtml and CSS validations. Here is the index.php code:

<div id="container">
<div id="form1">
<form id="myForm" action="">
<fieldset>
<legend>Movie Database</legend>
<p>
<label>Title:</label>
<input tabindex="1" type="text" name="title" id="title" accesskey="T"/>
</p>
<p>
<label>Genre:</label>
<select tabindex="2" name="genre">
<option value="Unassigned">Unassigned</option>
<option value="Action">Action</option>
<option value="Comedy">Comedy</option>
<option value="Dark Comedy">Dark Comedy</option>
<option value="Docu/Edu">Docu/Edu</option>
<option value="Drama">Drama</option>
<option value="Family">Family</option>
<option value="Fantasy">Fantasy</option>
<option value="Horror">Horror</option>
<option value="Romance">Romance</option>
<option value="Sci-fi">Sci-fi</option>
<option value="Suspense">Suspense</option>
<option value="Thriller">Thriller</option>
</select>
</p>
<p>
<label>Release Date:</label>
<input tabindex="3" type="text" name="release" />
[yyyy]</p>
<p>
<label>Run Time:</label>
<input tabindex="4" type="text" name="run" />
[minutes]</p>
<p>
<label>Rating:</label>
<select tabindex="5" name="rating">
<option value="Unassigned">--</option>
<option value="NR">NR</option>
<option value="G">G</option>
<option value="PG">PG</option>
<option value="PG-13">PG-13</option>
<option value="R">R</option>
</select>
</p>
<p>
<label>Format:</label>
<select tabindex="6" name="format">
<option value="DVD">DVD</option>
<option value="HD DVD">HD DVD</option>
<option value="VHS">VHS</option>
</select>
</p>
<p>
<label>Notes:</label>
<input tabindex="7" type="text" name="notes" />
</p>
<p class="submit">
<input tabindex="8" type="button" value="Submit" onclick="postForm('myForm');" accesskey="S" />
</p>
<p class="clearform">
<input tabindex="9" type="reset" value="Reset" id="reset" accesskey="R"/>
</p>
</fieldset>
</form>
<form action="inv_query.php" method="get">
<p class="query">
<input tabindex="10" name="Query" type="submit" id="Query" value="Movie Inventory" />
</p>
</form>
</div>
<div id="search_form">
<form action="">
<fieldset id="fieldset2">
<legend>Database Query</legend>
<p><label>Title search:</label>
<input tabindex="11" type="text" id="title_search" onkeyup="showTitle(this.value)"/>
</p>
</fieldset>
</form>
<br />
<div id="txtHint"></div>
</div>
</div>
<div id="w3c1">
<ul><li> <a href="http://validator.w3.org/check?uri=referer"><img
src="images/2valid-xhtml10-blue.gif"
alt="Valid XHTML 1.0 Transitional" border="0"/></a></li>
<li>
<a href="http://jigsaw.w3.org/css-validator/">
<img style="border:0"
src="images/2valid-css2-blue.gif"
alt="Valid CSS!" />
</a></li>
</ul>
</div>
<script type="text/javascript" language="JavaScript">
document.forms['myForm'].elements['title'].focus();
</script>

Sunday, October 28, 2007

What is the purpose of this blog?

The main purpose is to share what I learn about varying elements of web development and possibly some programming or maybe script programming. Writing about what I learn helps me to think through the intricacies more deeply and fully grasp that which I recently read.

During the last several years, I've been studying a Computer Information Management curriculum that recently brought me to Visual Basic 6.0. The course instructor is quick to admit that Visual Basic is not a hugely powerful programming language, but is being taught first as it is easier to learn and will build a solid foundation and strong habits for learning more complex programming languages.

As I delve further into the basics of Visual Basic - no pun intended -, I am starting to see a lot of applications for it. I love how the book explains each step in extremely basic steps. The fluidity of the examples and lessons is unsurpassed, as it offers a meaningful approach. I'm at work, or I'd give kudos to the title and author of the course, which currently escapes me.

I'll certainly keep everyone up-to-date with my progress and share some examples of what I've mastered. Please feel free to share yours.

What does the blog title "mean"?

I pondered changing the title of this blog today to eliminate the word "partial", however, I find it fitting after some thought. Normally, one would see "Your perception is my reality" or some mix thereof. I disagree with this, in that, as I'm suggesting this: What you perceive is another individuals' reality or is it? What you see may only be part of the truth, all of it, or none of it. With this said, there is no logical basis to calculate the validity of one's perception over that of an individual standing, say, across the street that you have never met.

So, as we can see, there are many variables to determine the reality of another. My reality is an assessment of that which I think I know. Since there really isn't a method to give absolutes to an assessment without actually engaging the subject, then there is no surety to be had. One can only surmise by the factors surrounding the object in question as to what is really happening or what attributes appear to affect it by such reality we have learned based on our own bias.

With significant certainty, we can now implicate the term "partial" into our objective hypothesis by stating "Perception *is* partial reality" given it "fits" what we can say we know, but may not necessarily know.

Now here is a question for you: What do you think the title "Perception is partial reality" means, or more precisely, what does it mean to you?

Wednesday, August 22, 2007

Nesting and Centering div elements

Designers struggle frequently with proper nesting and centering of div elements. I've found, from reading many sources, the best way to take control of your elements is to surround them completely with a div container.

Div containers can be centered and manipulated just about anyway you see fit. Once the "container" is established, one can have seemingly perfect control of design - whether location of internally nested divs, centering, colors, the list goes on.

I've written about centering before. Recently, for whatever reason, I've had much better success with using this style for centering: margin: 0 auto (this means to make the margin equal 0 on the top and bottom and for the sides (left/right) to be auto aligned. Keeping in mind the clockwise approach to remembering single-line declarations, so the above style can also be written as margin: 0 auto 0 auto, more clearly, margin: W X Y Z, where W=top, X=right-side, Y=bottom, and Z=left-side.