Archive for May, 2007

Formatting Output

Tuesday, May 29th, 2007

Introduction

Querying a database is just half of the battle. The other half is making the data that is pulled out of the table look pretty. Reports are used for those non-techie, higher ups that like it when things look pretty.

(more…)

Debugging With Eclipse and PHPdbg in Linux

Monday, May 21st, 2007

Using a debugger to help find errors will save you a consider amount of time. Eclipse is a great IDE because not only is it platform independent, but you can use it to program in many different languages. The features and plugins seem endless which is an added bonus.

The main reason why I like it is that it works on Linux. ;)

(more…)

Views

Wednesday, May 16th, 2007

Views have two purposes:

  • Simplify issuing complex SQL queries
  • Restrict users’ access to sensitive data.

Views are Database objects and are treated like tables. Unlike tables, views do not store any data. Views simply store a query.

(more…)

IVMan Automounter in Gentoo

Sunday, May 6th, 2007

<meta name="GENERATOR" content="OpenOffice.org 2.0 (Linux)" /><meta name="CREATED" content="20070506;18100900" /><meta name="CHANGED" content="16010101;0" /><br /> <style> <!-- @page { size: 8.5in 11in; margin: 0.79in } P { margin-bottom: 0.08in } H3 { margin-bottom: 0.08in } --> </style> <h3>Introduction</h3> <p>Linux is great in the respect that you have COMPLETE control over everything you do on the system. You can even control the mounting of drives. However, sometimes you may just want the system to mount it itself. I’ve read that many people were having problems with supermount and it is no longer mainstream.</p> <p>This is where IVMan comes into play. Submount was removed from the Gentoo Portage as of 2nd of Janurary, 2007. As long as my system mounts a USB stick at when I plug it in, I’m a happy camper.</p> <p>In order to use ivman, the system must have the following installed for it to work correctly:</p> <ul> <li> <p style="margin-bottom: 0in">udev</p> </li> <li> <p style="margin-bottom: 0in">hal</p> </li> <li> <p style="margin-bottom: 0in">dbus</p> </li> <li>pmount</li> </ul> <p>This is a quick and dirty way of how I set up ivman to work on my system. I use Gnome, so if you use Gnome as well, you may want to make sure that <strong>coldplug</strong> and <strong>gnome-volume-manager</strong> is installed.</p> <h3>Code</h3> <p># emerge -av ivman</p> <p># emerge –oneshot glibc linux-headers</p> <p># emerge coldplug gnome-volume-manager</p> <p># rc-update add ivman default</p> <p># rc-update add hald default</p> <p># rc-update add dbus default</p> <p># /etc/init.d/ivman start</p> <h3>Configuration</h3> <p>Make sure that the users that need the ability to mount devices automatically are added to the plugdev group.</p> <p>Chances are that if you plug in a USB flash drive, it’s going to tell you that you do not have permission to view the contents of the drive. Since whenever I plugged in a UFD, it would always get assigned /dev/sdd1, I just added the following line to my /etc/fstab file:</p> <p>/dev/sdd1 /media/sdd1 auto users,rw 0 0</p> </div> <p class="postmetadata"> Posted in <a href="http://paulslinuxbox.net/blog/category/linux/gentoo" title="View all posts in Gentoo" rel="category tag">Gentoo</a>, <a href="http://paulslinuxbox.net/blog/category/linux" title="View all posts in Linux" rel="category tag">Linux</a> | <a href="http://paulslinuxbox.net/blog/linux/ivman-automounter-in-gentoo#respond" title="Comment on IVMan Automounter in Gentoo">No Comments »</a></p> </div> <div class="post"> <h3 id="post-18"><a href="http://paulslinuxbox.net/blog/work/rearming-windows-vista" rel="bookmark" title="Permanent Link to Rearming Windows Vista">Rearming Windows Vista</a></h3> <small>Saturday, May 5th, 2007</small> <div class="entry"> <h3>Introduction</h3> <p>At work we have a Core 2 demo running Windows Vista. This demo is not connected to the network because we don’t want people coming in and changing the background image to display something obscene or pornographic. There is a neat little trick that I found one day while trying to figure out how I could reset the time until the user had to activate Windows Vista.</p> <p> <a href="http://paulslinuxbox.net/blog/work/rearming-windows-vista#more-18" class="more-link">(more…)</a></p> </div> <p class="postmetadata"> Posted in <a href="http://paulslinuxbox.net/blog/category/work" title="View all posts in Operating Systems" rel="category tag">Operating Systems</a>, <a href="http://paulslinuxbox.net/blog/category/work/vista" title="View all posts in Vista" rel="category tag">Vista</a> | <a href="http://paulslinuxbox.net/blog/work/rearming-windows-vista#respond" title="Comment on Rearming Windows Vista">No Comments »</a></p> </div> <div class="post"> <h3 id="post-17"><a href="http://paulslinuxbox.net/blog/school/subqueries-and-merges" rel="bookmark" title="Permanent Link to Subqueries and Merges">Subqueries and Merges</a></h3> <small>Friday, May 4th, 2007</small> <div class="entry"> <p>HTML Source EditorWord wrap <span style="font-size: 11pt; font-family: Verdana">Sub queries come in handy when you want to find a record but need to know what exactly to look for. For example, if you want to find all the items that are more expensive than a specific item. Instead of issuing two <strong><span style="font-family: Verdana">SELECT</span></strong> statements, you can use sub queries to find the answer in just one query. </span><span style="font-size: 11pt; font-family: Verdana"> </p> <p></span> </p> <p><span style="font-size: 11pt; font-family: Verdana">When designing Sub queries, the first query that is designed is the sub query. In order to execute sub queries correctly, you must determine what it is that you are looking for. After successfully testing the sub query, it is this that will be passed as input to the parent query or the outer query. </span><span style="font-size: 11pt; font-family: Verdana"> </p> <p></span> </p> <p> </p> <p> <a href="http://paulslinuxbox.net/blog/school/subqueries-and-merges#more-17" class="more-link">(more…)</a></p> </div> <p class="postmetadata"> Posted in <a href="http://paulslinuxbox.net/blog/category/school/oracle" title="View all posts in Oracle" rel="category tag">Oracle</a>, <a href="http://paulslinuxbox.net/blog/category/school" title="View all posts in School" rel="category tag">School</a> | <a href="http://paulslinuxbox.net/blog/school/subqueries-and-merges#respond" title="Comment on Subqueries and Merges">No Comments »</a></p> </div> <div class="navigation"> <div class="alignleft"></div> <div class="alignright"></div> </div> </div> <div id="sidebar"> <ul> <li> <form method="get" id="searchform" action="http://paulslinuxbox.net/blog/"> <div><input type="text" value="" name="s" id="s" /> <input type="submit" id="searchsubmit" value="Search" /> </div> </form> </li> <!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it. <li><h2>Author</h2> <p>A little something about you, the author. Nothing lengthy, just an overview.</p> </li> --> <li> <p>You are currently browsing the <a href="http://paulslinuxbox.net/blog/">Paulus’ Blog</a> blog archives for May, 2007.</p> </li> <li class="pagenav"><h2>Pages</h2><ul><li class="page_item page-item-2"><a href="http://paulslinuxbox.net/blog/about" title="About Paulus">About Paulus</a></li> <li class="page_item page-item-50"><a href="http://paulslinuxbox.net/blog/projects" title="Projects">Projects</a></li> <li class="page_item page-item-36"><a href="http://paulslinuxbox.net/blog/resume" title="Resume">Resume</a></li> </ul></li> <li><h2>Archives</h2> <ul> <li><a href='http://paulslinuxbox.net/blog/2008/11' title='November 2008'>November 2008</a></li> <li><a href='http://paulslinuxbox.net/blog/2008/07' title='July 2008'>July 2008</a></li> <li><a href='http://paulslinuxbox.net/blog/2008/06' title='June 2008'>June 2008</a></li> <li><a href='http://paulslinuxbox.net/blog/2008/04' title='April 2008'>April 2008</a></li> <li><a href='http://paulslinuxbox.net/blog/2008/02' title='February 2008'>February 2008</a></li> <li><a href='http://paulslinuxbox.net/blog/2008/01' title='January 2008'>January 2008</a></li> <li><a href='http://paulslinuxbox.net/blog/2007/12' title='December 2007'>December 2007</a></li> <li><a href='http://paulslinuxbox.net/blog/2007/11' title='November 2007'>November 2007</a></li> <li><a href='http://paulslinuxbox.net/blog/2007/10' title='October 2007'>October 2007</a></li> <li><a href='http://paulslinuxbox.net/blog/2007/09' title='September 2007'>September 2007</a></li> <li><a href='http://paulslinuxbox.net/blog/2007/06' title='June 2007'>June 2007</a></li> <li><a href='http://paulslinuxbox.net/blog/2007/05' title='May 2007'>May 2007</a></li> <li><a href='http://paulslinuxbox.net/blog/2007/04' title='April 2007'>April 2007</a></li> <li><a href='http://paulslinuxbox.net/blog/2007/03' title='March 2007'>March 2007</a></li> <li><a href='http://paulslinuxbox.net/blog/2007/02' title='February 2007'>February 2007</a></li> <li><a href='http://paulslinuxbox.net/blog/2007/01' title='January 2007'>January 2007</a></li> </ul> </li> <li class="categories"><h2>Categories</h2><ul> <li class="cat-item cat-item-22"><a href="http://paulslinuxbox.net/blog/category/games" title="View all posts filed under Games">Games</a> (1) </li> <li class="cat-item cat-item-5"><a href="http://paulslinuxbox.net/blog/category/linux" title="View all posts filed under Linux">Linux</a> (16) <ul class='children'> <li class="cat-item cat-item-7"><a href="http://paulslinuxbox.net/blog/category/linux/fedora" title="View all posts filed under Fedora">Fedora</a> (6) </li> <li class="cat-item cat-item-6"><a href="http://paulslinuxbox.net/blog/category/linux/gentoo" title="View all posts filed under Gentoo">Gentoo</a> (15) </li> </ul> </li> <li class="cat-item cat-item-12"><a href="http://paulslinuxbox.net/blog/category/work" title="View all posts filed under Operating Systems">Operating Systems</a> (11) <ul class='children'> <li class="cat-item cat-item-25"><a href="http://paulslinuxbox.net/blog/category/work/mac-os-x" title="View all posts filed under Mac OS X">Mac OS X</a> (2) </li> <li class="cat-item cat-item-20"><a href="http://paulslinuxbox.net/blog/category/work/vista" title="View all posts filed under Vista">Vista</a> (3) </li> <li class="cat-item cat-item-21"><a href="http://paulslinuxbox.net/blog/category/work/xp" title="View all posts filed under XP">XP</a> (4) </li> </ul> </li> <li class="cat-item cat-item-8"><a href="http://paulslinuxbox.net/blog/category/programming" title="View all posts filed under Programming">Programming</a> (9) <ul class='children'> <li class="cat-item cat-item-9"><a href="http://paulslinuxbox.net/blog/category/programming/java" title="View all posts filed under Java">Java</a> (1) </li> <li class="cat-item cat-item-11"><a href="http://paulslinuxbox.net/blog/category/programming/php" title="View all posts filed under PHP">PHP</a> (6) </li> </ul> </li> <li class="cat-item cat-item-2"><a href="http://paulslinuxbox.net/blog/category/school" title="View all posts filed under School">School</a> (13) <ul class='children'> <li class="cat-item cat-item-4"><a href="http://paulslinuxbox.net/blog/category/school/oracle" title="View all posts filed under Oracle">Oracle</a> (12) </li> <li class="cat-item cat-item-3"><a href="http://paulslinuxbox.net/blog/category/school/statistics" title="View all posts filed under Statistics">Statistics</a> (1) </li> </ul> </li> <li class="cat-item cat-item-26"><a href="http://paulslinuxbox.net/blog/category/seo" title="View all posts filed under SEO">SEO</a> (1) </li> <li class="cat-item cat-item-1"><a href="http://paulslinuxbox.net/blog/category/uncategorized" title="View all posts filed under Uncategorized">Uncategorized</a> (2) </li> <li class="cat-item cat-item-14"><a href="http://paulslinuxbox.net/blog/category/unexplained" title="View all posts filed under Unexplained">Unexplained</a> (7) <ul class='children'> <li class="cat-item cat-item-19"><a href="http://paulslinuxbox.net/blog/category/unexplained/esp" title="View all posts filed under ESP">ESP</a> (3) </li> <li class="cat-item cat-item-18"><a href="http://paulslinuxbox.net/blog/category/unexplained/ghosts" title="View all posts filed under Ghosts">Ghosts</a> (2) </li> </ul> </li> </ul></li> </ul> </div> <hr /> <div id="footer"> <!-- If you'd like to support WordPress, having the "powered by" link somewhere on your blog is the best way; it's our only promotion or advertising. --> <p> Paulus’ Blog is proudly powered by <a href="http://wordpress.org/">WordPress</a> <br /><a href="http://paulslinuxbox.net/blog/feed">Entries (RSS)</a> and <a href="http://paulslinuxbox.net/blog/comments/feed">Comments (RSS)</a>. <!-- 18 queries. 0.686 seconds. --> </p> </div> </div> <!-- Gorgeous design by Michael Heilemann - http://binarybonsai.com/kubrick/ --> <!-- Google Analytics for WordPress | http://yoast.com/wordpress/google-analytics/ --> <script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); </script> <script type="text/javascript"> var pageTracker = _gat._getTracker("UA-4515970-4"); </script> <script type="text/javascript"> pageTracker._initData(); pageTracker._trackPageview(); </script> <!-- End of Google Analytics code --> </body> </html>