<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Web Plant Media</title>
	<atom:link href="http://www.webplantmedia.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webplantmedia.com</link>
	<description>Lubbock Web Design and Web Development</description>
	<lastBuildDate>Wed, 28 Mar 2012 21:19:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>WebPM Slider – Image Slider Plugin for WordPress</title>
		<link>http://www.webplantmedia.com/wordpress/2012/03/webpm-slider/</link>
		<comments>http://www.webplantmedia.com/wordpress/2012/03/webpm-slider/#comments</comments>
		<pubDate>Mon, 26 Mar 2012 18:13:13 +0000</pubDate>
		<dc:creator>ChrisB</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://webplantmedia.com/?p=583</guid>
		<description><![CDATA[Image Slider Plugin for WordPress webpm-slider]]></description>
			<content:encoded><![CDATA[<p>Image Slider Plugin for WordPress</p>
<p><a href="http://webplantmedia.com/wp-content/uploads/2012/03/webpm-slider.zip">webpm-slider</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webplantmedia.com/wordpress/2012/03/webpm-slider/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WebPM Gallery &#8211; Image Gallery Plugin for WordPress</title>
		<link>http://www.webplantmedia.com/wordpress/2012/03/webpm-gallery/</link>
		<comments>http://www.webplantmedia.com/wordpress/2012/03/webpm-gallery/#comments</comments>
		<pubDate>Mon, 26 Mar 2012 17:38:37 +0000</pubDate>
		<dc:creator>ChrisB</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://webplantmedia.com/?p=576</guid>
		<description><![CDATA[First Version of my Image Gallery Plugin for WordPress. webpm-gallery]]></description>
			<content:encoded><![CDATA[<p>First Version of my Image Gallery Plugin for WordPress.</p>
<p><a href="http://webplantmedia.com/wp-content/uploads/2012/03/webpm-gallery.zip">webpm-gallery</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webplantmedia.com/wordpress/2012/03/webpm-gallery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wireless Doesn&#8217;t Work in Ubuntu 10.10</title>
		<link>http://www.webplantmedia.com/ubuntu/2011/02/wireless-doesnt-work-in-ubuntu-10-10/</link>
		<comments>http://www.webplantmedia.com/ubuntu/2011/02/wireless-doesnt-work-in-ubuntu-10-10/#comments</comments>
		<pubDate>Wed, 02 Feb 2011 19:41:22 +0000</pubDate>
		<dc:creator>ChrisB</dc:creator>
				<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.webplantmedia.com/?p=557</guid>
		<description><![CDATA[For the longest time, I couldn&#8217;t figure out how to get my wireless to on my laptop. I could enable and disable my wireless card, but I could never scan and view available wireless channels. After searching many forums, I came across an article that suggested this. rfkill unblock all After you run this command, [...]]]></description>
			<content:encoded><![CDATA[<p>For the longest time, I couldn&#8217;t figure out how to get my wireless to on my laptop. I could enable and disable my wireless card, but I could never scan and view available wireless channels. After searching many forums, I came across an article that suggested this.</p>

<div class="wp_syntax"><div class="code"><pre class="txt" style="font-family:monospace;">rfkill unblock all</pre></div></div>

<p>After you run this command, disable and enable your wireless card. If your problem was similar to mine, then you should be able to see wireless channels and connect. I&#8217;m not sure exactly why this works, but it worked for me. Feel free to explain if you know why this solution works. I am curious. </p>
<p>I hope this helps someone out. I&#8217;m very thankful I was able to come across the solution.</p>
<p><a href="http://life.firelace.com/2010/10/tips-and-tricks-upgrading-to-ubuntu-10-10-wireless-fix/">http://life.firelace.com/2010/10/tips-and-tricks-upgrading-to-ubuntu-10-10-wireless-fix/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webplantmedia.com/ubuntu/2011/02/wireless-doesnt-work-in-ubuntu-10-10/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Rename Files in Windows 7 using the Command Prompt</title>
		<link>http://www.webplantmedia.com/windows/2011/02/rename-files-in-windows-7-using-the-command-prompt/</link>
		<comments>http://www.webplantmedia.com/windows/2011/02/rename-files-in-windows-7-using-the-command-prompt/#comments</comments>
		<pubDate>Tue, 01 Feb 2011 16:55:57 +0000</pubDate>
		<dc:creator>ChrisB</dc:creator>
				<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.webplantmedia.com/?p=549</guid>
		<description><![CDATA[I came across a situation where a client of mine needed a whole batch of pictures renamed to display &#8220;underscores&#8221; instead of &#8220;dashes&#8221;. For example, I needed the following to be changed: W-Lawther-4311-1263.jpg W_Lawther_4311_1263.jpg Going through each individual file and manually changing each dash to an underscore would be painstaking. I did some research and [...]]]></description>
			<content:encoded><![CDATA[<p>I came across a situation where a client of mine needed a whole batch of pictures renamed to display &#8220;underscores&#8221; instead of &#8220;dashes&#8221;. For example, I needed the following to be changed:</p>

<div class="wp_syntax"><div class="code"><pre class="txt" style="font-family:monospace;">W-Lawther-4311-1263.jpg
W_Lawther_4311_1263.jpg</pre></div></div>

<p>Going through each individual file and manually changing each dash to an underscore would be painstaking. I did some research and found a very simple solution to this problem.</p>

<div class="wp_syntax"><div class="code"><pre class="txt" style="font-family:monospace;">ren ?-???????-????-????.jpg ?_???????_????_????.jpg</pre></div></div>

<p>Open up the Command Prompt (Start-&gt;Run-&gt;Type: cmd)<br />
Navigate to your directory using the &#8216;cd&#8217; command and display the contents of your directory using the &#8216;dir&#8217; command. Here is an example of the process I went through.</p>

<div class="wp_syntax"><div class="code"><pre class="txt" style="font-family:monospace;">Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
&nbsp;
C:\Users\Chris&gt;dir
 Volume in drive C has no label.
 Volume Serial Number is BC3E-4FC9
&nbsp;
 Directory of C:\Users\Chris
&nbsp;
01/24/2011  08:22 AM    &lt;DIR&gt;          .
01/24/2011  08:22 AM    &lt;DIR&gt;          ..
01/24/2011  03:03 PM    &lt;DIR&gt;          Contacts
01/31/2011  05:54 PM    &lt;DIR&gt;          Desktop
01/28/2011  02:27 PM    &lt;DIR&gt;          Documents
01/31/2011  04:02 AM    &lt;DIR&gt;          Downloads
01/24/2011  03:03 PM    &lt;DIR&gt;          Favorites
01/24/2011  03:03 PM    &lt;DIR&gt;          Links
01/24/2011  03:03 PM    &lt;DIR&gt;          Music
02/01/2011  09:56 AM    &lt;DIR&gt;          Pictures
01/24/2011  03:03 PM    &lt;DIR&gt;          Saved Games
01/24/2011  03:03 PM    &lt;DIR&gt;          Searches
01/24/2011  03:03 PM    &lt;DIR&gt;          Videos
               0 File(s)              0 bytes
              13 Dir(s)  66,118,414,336 bytes free
&nbsp;
C:\Users\Chris&gt;cd Pictures
&nbsp;
C:\Users\Chris\Pictures&gt;dir
 Volume in drive C has no label.
 Volume Serial Number is BC3E-4FC9
&nbsp;
 Directory of C:\Users\Chris\Pictures
&nbsp;
02/01/2011  09:56 AM    &lt;DIR&gt;          .
02/01/2011  09:56 AM    &lt;DIR&gt;          ..
02/01/2011  10:11 AM    &lt;DIR&gt;          4311 W Lawther 550
09/18/2010  11:13 AM           242,056 Earth.jpg
               1 File(s)        242,056 bytes
               3 Dir(s)  66,118,414,336 bytes free
&nbsp;
C:\Users\Chris\Pictures&gt;cd &quot;4311 W Lawther 550&quot;
&nbsp;
C:\Users\Chris\Pictures\4311 W Lawther 550&gt;dir
 Volume in drive C has no label.
 Volume Serial Number is BC3E-4FC9
&nbsp;
 Directory of C:\Users\Chris\Pictures\4311 W Lawther 550
&nbsp;
02/01/2011  10:11 AM    &lt;DIR&gt;          .
02/01/2011  10:11 AM    &lt;DIR&gt;          ..
02/01/2011  10:11 AM    &lt;DIR&gt;          JPEG
01/20/2011  02:29 PM           190,939 W-Lawther-4311-1003.jpg
01/20/2011  02:29 PM           229,187 W-Lawther-4311-1011.jpg
01/20/2011  02:29 PM           362,945 W-Lawther-4311-1019.jpg
01/20/2011  02:29 PM           315,891 W-Lawther-4311-1025.jpg
01/20/2011  02:29 PM           324,793 W-Lawther-4311-1037.jpg
01/20/2011  02:29 PM           298,915 W-Lawther-4311-1054.jpg
01/20/2011  02:29 PM           311,920 W-Lawther-4311-1062.jpg
01/20/2011  02:29 PM           218,105 W-Lawther-4311-1069.jpg
01/20/2011  02:30 PM           284,679 W-Lawther-4311-1092.jpg
01/24/2011  03:50 PM           179,684 W-Lawther-4311-1097.jpg
01/24/2011  03:55 PM           215,851 W-Lawther-4311-1132.jpg
01/24/2011  03:53 PM           119,409 W-Lawther-4311-1183.jpg
01/24/2011  03:53 PM           121,753 W-Lawther-4311-1192.jpg
01/24/2011  03:53 PM           130,715 W-Lawther-4311-1201.jpg
01/24/2011  03:50 PM           191,201 W-Lawther-4311-1216.jpg
01/24/2011  03:50 PM           188,831 W-Lawther-4311-1225.jpg
01/24/2011  03:53 PM           163,884 W-Lawther-4311-1242.jpg
01/24/2011  03:51 PM           215,726 W-Lawther-4311-1251A.jpg
01/24/2011  03:53 PM           174,017 W-Lawther-4311-1263.jpg
01/24/2011  03:54 PM           170,680 W-Lawther-4311-1273.jpg
01/24/2011  03:54 PM           150,399 W-Lawther-4311-1283.jpg
01/24/2011  03:51 PM           189,790 W-Lawther-4311-1289.jpg
01/24/2011  03:51 PM           169,936 W-Lawther-4311-1307.jpg
01/24/2011  03:51 PM           171,228 W-Lawther-4311-1321.jpg
01/24/2011  03:54 PM           155,343 W-Lawther-4311-1333.jpg
01/20/2011  02:29 PM           319,921 W-Lawther-4311-2048.jpg
01/20/2011  02:30 PM           227,850 W-Lawther-4311-2081.jpg
01/24/2011  03:55 PM           168,058 W-Lawther-4311-2144.jpg
              28 File(s)      5,961,650 bytes
               3 Dir(s)  66,118,414,336 bytes free
&nbsp;
C:\Users\Chris\Pictures\4311 W Lawther 550&gt;ren ?-???????-????-????.jpg ?_???????
_????_????.jpg
&nbsp;
C:\Users\Chris\Pictures\4311 W Lawther 550&gt;dir
 Volume in drive C has no label.
 Volume Serial Number is BC3E-4FC9
&nbsp;
 Directory of C:\Users\Chris\Pictures\4311 W Lawther 550
&nbsp;
02/01/2011  10:35 AM    &lt;DIR&gt;          .
02/01/2011  10:35 AM    &lt;DIR&gt;          ..
02/01/2011  10:34 AM    &lt;DIR&gt;          JPEG
01/20/2011  02:29 PM           190,939 W_Lawther_4311_1003.jpg
01/20/2011  02:29 PM           229,187 W_Lawther_4311_1011.jpg
01/20/2011  02:29 PM           362,945 W_Lawther_4311_1019.jpg
01/20/2011  02:29 PM           315,891 W_Lawther_4311_1025.jpg
01/20/2011  02:29 PM           324,793 W_Lawther_4311_1037.jpg
01/20/2011  02:29 PM           298,915 W_Lawther_4311_1054.jpg
01/20/2011  02:29 PM           311,920 W_Lawther_4311_1062.jpg
01/20/2011  02:29 PM           218,105 W_Lawther_4311_1069.jpg
01/20/2011  02:30 PM           284,679 W_Lawther_4311_1092.jpg
01/24/2011  03:50 PM           179,684 W_Lawther_4311_1097.jpg
01/24/2011  03:55 PM           215,851 W_Lawther_4311_1132.jpg
01/24/2011  03:53 PM           119,409 W_Lawther_4311_1183.jpg
01/24/2011  03:53 PM           121,753 W_Lawther_4311_1192.jpg
01/24/2011  03:53 PM           130,715 W_Lawther_4311_1201.jpg
01/24/2011  03:50 PM           191,201 W_Lawther_4311_1216.jpg
01/24/2011  03:50 PM           188,831 W_Lawther_4311_1225.jpg
01/24/2011  03:53 PM           163,884 W_Lawther_4311_1242.jpg
01/24/2011  03:51 PM           215,726 W_Lawther_4311_1251.jpg
01/24/2011  03:53 PM           174,017 W_Lawther_4311_1263.jpg
01/24/2011  03:54 PM           170,680 W_Lawther_4311_1273.jpg
01/24/2011  03:54 PM           150,399 W_Lawther_4311_1283.jpg
01/24/2011  03:51 PM           189,790 W_Lawther_4311_1289.jpg
01/24/2011  03:51 PM           169,936 W_Lawther_4311_1307.jpg
01/24/2011  03:51 PM           171,228 W_Lawther_4311_1321.jpg
01/24/2011  03:54 PM           155,343 W_Lawther_4311_1333.jpg
01/20/2011  02:29 PM           319,921 W_Lawther_4311_2048.jpg
01/20/2011  02:30 PM           227,850 W_Lawther_4311_2081.jpg
01/24/2011  03:55 PM           168,058 W_Lawther_4311_2144.jpg
              28 File(s)      5,961,650 bytes
               3 Dir(s)  66,118,410,240 bytes free
&nbsp;
C:\Users\Chris\Pictures\4311 W Lawther 550&gt;cd JPEG
&nbsp;
C:\Users\Chris\Pictures\4311 W Lawther 550\JPEG&gt;dir
 Volume in drive C has no label.
 Volume Serial Number is BC3E-4FC9
&nbsp;
 Directory of C:\Users\Chris\Pictures\4311 W Lawther 550\JPEG
&nbsp;
02/01/2011  10:34 AM    &lt;DIR&gt;          .
02/01/2011  10:34 AM    &lt;DIR&gt;          ..
02/01/2011  10:11 AM            38,673 W-Lawther-4311-1003.jpg
02/01/2011  10:11 AM            39,929 W-Lawther-4311-1011.jpg
02/01/2011  10:11 AM            41,485 W-Lawther-4311-1019.jpg
02/01/2011  10:11 AM            39,100 W-Lawther-4311-1025.jpg
02/01/2011  10:11 AM            39,778 W-Lawther-4311-1037.jpg
02/01/2011  10:11 AM            38,511 W-Lawther-4311-1054.jpg
02/01/2011  10:11 AM            38,979 W-Lawther-4311-1062.jpg
02/01/2011  10:11 AM            36,873 W-Lawther-4311-1069.jpg
02/01/2011  10:11 AM            39,101 W-Lawther-4311-1092.jpg
02/01/2011  10:11 AM            36,034 W-Lawther-4311-1097.jpg
02/01/2011  10:11 AM            39,793 W-Lawther-4311-1132.jpg
02/01/2011  10:11 AM            34,166 W-Lawther-4311-1183.jpg
02/01/2011  10:11 AM            34,872 W-Lawther-4311-1192.jpg
02/01/2011  10:11 AM            33,423 W-Lawther-4311-1201.jpg
02/01/2011  10:11 AM            38,824 W-Lawther-4311-1216.jpg
02/01/2011  10:11 AM            38,824 W-Lawther-4311-1225.jpg
02/01/2011  10:11 AM            36,862 W-Lawther-4311-1242.jpg
02/01/2011  10:11 AM            39,910 W-Lawther-4311-1251.jpg
02/01/2011  10:11 AM            36,474 W-Lawther-4311-1263.jpg
02/01/2011  10:11 AM            35,538 W-Lawther-4311-1273.jpg
02/01/2011  10:11 AM            36,691 W-Lawther-4311-1283.jpg
02/01/2011  10:11 AM            42,598 W-Lawther-4311-1289.jpg
02/01/2011  10:11 AM            35,948 W-Lawther-4311-1307.jpg
02/01/2011  10:11 AM            36,512 W-Lawther-4311-1321.jpg
02/01/2011  10:11 AM            36,163 W-Lawther-4311-1333.jpg
02/01/2011  10:11 AM            39,918 W-Lawther-4311-2048.jpg
02/01/2011  10:11 AM            36,907 W-Lawther-4311-2081.jpg
02/01/2011  10:11 AM            37,046 W-Lawther-4311-2144.jpg
              28 File(s)      1,058,932 bytes
               2 Dir(s)  66,118,410,240 bytes free
&nbsp;
C:\Users\Chris\Pictures\4311 W Lawther 550\JPEG&gt;ren ?-???????-????-????.jpg ?_??
?????_????_????.jpg
&nbsp;
C:\Users\Chris\Pictures\4311 W Lawther 550\JPEG&gt;dir
 Volume in drive C has no label.
 Volume Serial Number is BC3E-4FC9
&nbsp;
 Directory of C:\Users\Chris\Pictures\4311 W Lawther 550\JPEG
&nbsp;
02/01/2011  10:36 AM    &lt;DIR&gt;          .
02/01/2011  10:36 AM    &lt;DIR&gt;          ..
02/01/2011  10:11 AM            38,673 W_Lawther_4311_1003.jpg
02/01/2011  10:11 AM            39,929 W_Lawther_4311_1011.jpg
02/01/2011  10:11 AM            41,485 W_Lawther_4311_1019.jpg
02/01/2011  10:11 AM            39,100 W_Lawther_4311_1025.jpg
02/01/2011  10:11 AM            39,778 W_Lawther_4311_1037.jpg
02/01/2011  10:11 AM            38,511 W_Lawther_4311_1054.jpg
02/01/2011  10:11 AM            38,979 W_Lawther_4311_1062.jpg
02/01/2011  10:11 AM            36,873 W_Lawther_4311_1069.jpg
02/01/2011  10:11 AM            39,101 W_Lawther_4311_1092.jpg
02/01/2011  10:11 AM            36,034 W_Lawther_4311_1097.jpg
02/01/2011  10:11 AM            39,793 W_Lawther_4311_1132.jpg
02/01/2011  10:11 AM            34,166 W_Lawther_4311_1183.jpg
02/01/2011  10:11 AM            34,872 W_Lawther_4311_1192.jpg
02/01/2011  10:11 AM            33,423 W_Lawther_4311_1201.jpg
02/01/2011  10:11 AM            38,824 W_Lawther_4311_1216.jpg
02/01/2011  10:11 AM            38,824 W_Lawther_4311_1225.jpg
02/01/2011  10:11 AM            36,862 W_Lawther_4311_1242.jpg
02/01/2011  10:11 AM            39,910 W_Lawther_4311_1251.jpg
02/01/2011  10:11 AM            36,474 W_Lawther_4311_1263.jpg
02/01/2011  10:11 AM            35,538 W_Lawther_4311_1273.jpg
02/01/2011  10:11 AM            36,691 W_Lawther_4311_1283.jpg
02/01/2011  10:11 AM            42,598 W_Lawther_4311_1289.jpg
02/01/2011  10:11 AM            35,948 W_Lawther_4311_1307.jpg
02/01/2011  10:11 AM            36,512 W_Lawther_4311_1321.jpg
02/01/2011  10:11 AM            36,163 W_Lawther_4311_1333.jpg
02/01/2011  10:11 AM            39,918 W_Lawther_4311_2048.jpg
02/01/2011  10:11 AM            36,907 W_Lawther_4311_2081.jpg
02/01/2011  10:11 AM            37,046 W_Lawther_4311_2144.jpg
              28 File(s)      1,058,932 bytes
               2 Dir(s)  66,118,402,048 bytes free
&nbsp;
C:\Users\Chris\Pictures\4311 W Lawther 550\JPEG&gt;</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.webplantmedia.com/windows/2011/02/rename-files-in-windows-7-using-the-command-prompt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Executable Prolog CLP Program for the Following Job Shop Scheduling Problem</title>
		<link>http://www.webplantmedia.com/prolog/2010/12/executable-prolog-clp-program-for-the-following-job-shop-scheduling-problem/</link>
		<comments>http://www.webplantmedia.com/prolog/2010/12/executable-prolog-clp-program-for-the-following-job-shop-scheduling-problem/#comments</comments>
		<pubDate>Tue, 21 Dec 2010 07:01:16 +0000</pubDate>
		<dc:creator>ChrisB</dc:creator>
				<category><![CDATA[Prolog]]></category>

		<guid isPermaLink="false">http://www.webplantmedia.com/?p=530</guid>
		<description><![CDATA[The job shop scheduling problem has a wide range of applications in industry. The problem we will explore is a simple job shop scheduling for a print shop. The print shop has 6 machines: [printer, stapler, sorter, binder, packager, copier], and schedules a number of jobs over a two day (48 hour) period. Each job [...]]]></description>
			<content:encoded><![CDATA[<p>The job shop scheduling problem has a wide range of applications in industry. The problem we will explore is a simple job shop scheduling for a print shop. The print shop has 6 machines: [printer, stapler, sorter, binder, packager, copier], and schedules a number of jobs over a two day (48 hour) period. Each job is a sequence of tasks which have a name, duration (in hours) and machine that they must be performed on. A schedule assigns a start time for each task, so that no task starts before the previous task in the job has finished, and no machine is busy with two tasks at the same time. The main user defined predicate defined to solve the scheduling problem is data(TaskList, Jobs, Machines, Vars) where</p>
<ul class="blog-list">
<li>TaskList is a list of tasks. Each task is represented as a term task(Name, Duration, Machine, StartTime) where Name, Duration, StartTime are the name, start time, and duration of the task, Machine is the machine the task needs.</li>
<li>Jobs is a list of jobs which in turn by definition is a list of tasks. Each job in this list consists of the tasks that make up this job in the order that they should be completed,</li>
<li>Machines is the list of all machines in the shop, and</li>
<li>Vars is the list of all start time variables (of the tasks).</li>
</ul>
<p>As an example, data/4 below describes a pair of small advertising print jobs.</p>

<div class="wp_syntax"><div class="code"><pre class="prolog" style="font-family:monospace;">data<span style="color: #009900;">&#40;</span>
   <span style="color: #666666; font-style: italic;">%%% First argument is a list of tasks with name, duration</span>
   <span style="color: #666666; font-style: italic;">%%% and machine and start time (unconstrained)</span>
   <span style="color: #009900;">&#91;</span>
     task<span style="color: #009900;">&#40;</span>ad1_copy<span style="color: #339933;">,</span> <span style="color: #800080;">4</span><span style="color: #339933;">,</span> copier<span style="color: #339933;">,</span> AC1<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
     task<span style="color: #009900;">&#40;</span>ad1_sort<span style="color: #339933;">,</span> <span style="color: #800080;">4</span><span style="color: #339933;">,</span> sorter<span style="color: #339933;">,</span> AS1<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
     task<span style="color: #009900;">&#40;</span>ad1_pack<span style="color: #339933;">,</span> <span style="color: #800080;">3</span><span style="color: #339933;">,</span> packager<span style="color: #339933;">,</span> AD1<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
     task<span style="color: #009900;">&#40;</span>ad2_copy<span style="color: #339933;">,</span> <span style="color: #800080;">5</span><span style="color: #339933;">,</span> copier<span style="color: #339933;">,</span> AC2<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
     task<span style="color: #009900;">&#40;</span>ad2_sort<span style="color: #339933;">,</span> <span style="color: #800080;">4</span><span style="color: #339933;">,</span> sorter<span style="color: #339933;">,</span> AS2<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
     task<span style="color: #009900;">&#40;</span>ad2_pack<span style="color: #339933;">,</span> <span style="color: #800080;">4</span><span style="color: #339933;">,</span> packager<span style="color: #339933;">,</span> AD2<span style="color: #009900;">&#41;</span>
   <span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span>
   <span style="color: #666666; font-style: italic;">%%% second argument is a list of lists of task names to be</span>
   <span style="color: #666666; font-style: italic;">%%% performed in order</span>
   <span style="color: #009900;">&#91;</span><span style="color: #009900;">&#91;</span>ad1_copy<span style="color: #339933;">,</span>ad1_sort<span style="color: #339933;">,</span>ad1_pack<span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span>
    <span style="color: #009900;">&#91;</span>ad2_copy<span style="color: #339933;">,</span>ad2_sort<span style="color: #339933;">,</span>ad2_pack<span style="color: #009900;">&#93;</span>
   <span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span>
   <span style="color: #666666; font-style: italic;">%%% third argument is the list of different machines</span>
   <span style="color: #009900;">&#91;</span>copier<span style="color: #339933;">,</span>sorter<span style="color: #339933;">,</span>packager<span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span>
   <span style="color: #666666; font-style: italic;">%%% fourth argument is the list of all start time variables</span>
   <span style="color: #009900;">&#91;</span>AC1<span style="color: #339933;">,</span>AS1<span style="color: #339933;">,</span>AD1<span style="color: #339933;">,</span>AC2<span style="color: #339933;">,</span>AS2<span style="color: #339933;">,</span>AD2<span style="color: #009900;">&#93;</span>
<span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span></pre></div></div>

<p>The file ’job.pl’ above, containing the data/4, should be saved under the same directory as your program. When your program is tested, it should be able to handle more jobs and each job may have more tasks. This program uses the template schedule-template.pl, below.</p>

<div class="wp_syntax"><div class="code"><pre class="prolog" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">%% This is a program stub for the job shop scheduling problem</span>
<span style="color: #666666; font-style: italic;">%% given in the project.</span>
&nbsp;
<span style="color: #666666; font-style: italic;">% Load in finite domain module</span>
<span style="color: #339933;">:-</span> use_module<span style="color: #009900;">&#40;</span>library<span style="color: #009900;">&#40;</span>clpfd<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>
<span style="color: #666666; font-style: italic;">% Other modules you may use are loaded here</span>
&nbsp;
<span style="color: #666666; font-style: italic;">% You must use the following to load in the data</span>
<span style="color: #339933;">:-</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'job.pl'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span>
&nbsp;
<span style="color: #666666; font-style: italic;">% Your definition of the userdefined constraint jobshop(L) should be here.</span>
&nbsp;
member<span style="color: #009900;">&#40;</span>X<span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span>X<span style="color: #339933;">|</span>_<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>
member<span style="color: #009900;">&#40;</span>X<span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span>_<span style="color: #339933;">|</span>T<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:-</span>
	member<span style="color: #009900;">&#40;</span>X<span style="color: #339933;">,</span>T<span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>
&nbsp;
jobshop<span style="color: #009900;">&#40;</span>L<span style="color: #009900;">&#41;</span> <span style="color: #339933;">:-</span>
	data<span style="color: #009900;">&#40;</span>W<span style="color: #339933;">,</span>X<span style="color: #339933;">,</span>_<span style="color: #339933;">,</span>Z<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
	init<span style="color: #009900;">&#40;</span>W<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
	precLL<span style="color: #009900;">&#40;</span>X<span style="color: #339933;">,</span>W<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
	capacity<span style="color: #009900;">&#40;</span>W<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
	labeling<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span>Z<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
	L <span style="color: #339933;">=</span> Z<span style="color: #339933;">.</span>
&nbsp;
init<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>
init<span style="color: #009900;">&#40;</span>TASKLIST<span style="color: #009900;">&#41;</span><span style="color: #339933;">:-</span>
	TASKLIST<span style="color: #339933;">=</span><span style="color: #009900;">&#91;</span>task<span style="color: #009900;">&#40;</span>_<span style="color: #339933;">,</span>D<span style="color: #339933;">,</span>_<span style="color: #339933;">,</span>ST<span style="color: #009900;">&#41;</span><span style="color: #339933;">|</span>T<span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span>
	ST in <span style="color: #800080;">0</span><span style="color: #339933;">..</span><span style="color: #800080;">48</span><span style="color: #339933;">,</span>
	ST<span style="color: #339933;">+</span>D #<span style="color: #339933;">=&lt;</span> <span style="color: #800080;">48</span><span style="color: #339933;">,</span>
	init<span style="color: #009900;">&#40;</span>T<span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>
&nbsp;
precLL<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> _<span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>
precLL<span style="color: #009900;">&#40;</span>JOBS<span style="color: #339933;">,</span>TASKLIST<span style="color: #009900;">&#41;</span> <span style="color: #339933;">:-</span>
	JOBS <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span>H<span style="color: #339933;">|</span>T<span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span>
	precL<span style="color: #009900;">&#40;</span>H<span style="color: #339933;">,</span> <span style="color: #009900;">&#91;</span><span style="color: #800080;">2</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> TASKLIST<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
	precLL<span style="color: #009900;">&#40;</span>T<span style="color: #339933;">,</span>TASKLIST<span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>
&nbsp;
precL<span style="color: #009900;">&#40;</span>_<span style="color: #339933;">,</span> <span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> _<span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>
precL<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> _<span style="color: #339933;">,</span> _<span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>
precL<span style="color: #009900;">&#40;</span>JOBS<span style="color: #339933;">,</span> _<span style="color: #339933;">,</span> TASKLIST<span style="color: #009900;">&#41;</span> <span style="color: #339933;">:-</span>
	JOBS<span style="color: #339933;">=</span><span style="color: #009900;">&#91;</span>H<span style="color: #339933;">|</span>T<span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> T<span style="color: #339933;">=</span><span style="color: #009900;">&#91;</span>HH<span style="color: #339933;">|</span>TT<span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span>
	member<span style="color: #009900;">&#40;</span>task<span style="color: #009900;">&#40;</span>H<span style="color: #339933;">,</span>D1<span style="color: #339933;">,</span>_<span style="color: #339933;">,</span>T1<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> TASKLIST<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
	member<span style="color: #009900;">&#40;</span>task<span style="color: #009900;">&#40;</span>HH<span style="color: #339933;">,</span>_<span style="color: #339933;">,</span>_<span style="color: #339933;">,</span>T2<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> TASKLIST<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
	T1 <span style="color: #339933;">+</span> D1 #<span style="color: #339933;">&lt;</span> T2<span style="color: #339933;">,</span>
	<span style="color: #666666; font-style: italic;">%write(H), write('-'), write(HH),write('\n'),</span>
	precL<span style="color: #009900;">&#40;</span>T<span style="color: #339933;">,</span> TT<span style="color: #339933;">,</span>TASKLIST<span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>
&nbsp;
exlude<span style="color: #009900;">&#40;</span>T1<span style="color: #339933;">,</span> D1<span style="color: #339933;">,</span> T2<span style="color: #339933;">,</span> _<span style="color: #009900;">&#41;</span> <span style="color: #339933;">:-</span>
	T1 <span style="color: #339933;">+</span> D1 #<span style="color: #339933;">&lt;</span> T2<span style="color: #339933;">.</span>
exlude<span style="color: #009900;">&#40;</span>T1<span style="color: #339933;">,</span> _<span style="color: #339933;">,</span> T2<span style="color: #339933;">,</span> D2<span style="color: #009900;">&#41;</span> <span style="color: #339933;">:-</span>
	T2 <span style="color: #339933;">+</span> D2 #<span style="color: #339933;">&lt;</span> T1<span style="color: #339933;">.</span>
&nbsp;
capacity<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>
capacity<span style="color: #009900;">&#40;</span>TASKLIST<span style="color: #009900;">&#41;</span> <span style="color: #339933;">:-</span>
	TASKLIST <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span>task<span style="color: #009900;">&#40;</span>J<span style="color: #339933;">,</span>D<span style="color: #339933;">,</span>M<span style="color: #339933;">,</span>_<span style="color: #009900;">&#41;</span><span style="color: #339933;">|</span>T<span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span>
	<span style="color: #666666; font-style: italic;">%write(J), write('-'), write(D), write('-'), write(M), write('-'), write(ST), write('\n'),</span>
	nonoverlaps<span style="color: #009900;">&#40;</span>J<span style="color: #339933;">,</span>D<span style="color: #339933;">,</span>M<span style="color: #339933;">,</span>T<span style="color: #339933;">,</span>TASKLIST<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
	capacity<span style="color: #009900;">&#40;</span>T<span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>
&nbsp;
nonoverlaps<span style="color: #009900;">&#40;</span>_<span style="color: #339933;">,</span>_<span style="color: #339933;">,</span>_<span style="color: #339933;">,</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span>_<span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>
nonoverlaps<span style="color: #009900;">&#40;</span>J<span style="color: #339933;">,</span>D<span style="color: #339933;">,</span>M<span style="color: #339933;">,</span>L<span style="color: #339933;">,</span>TASKLIST<span style="color: #009900;">&#41;</span> <span style="color: #339933;">:-</span>
	L <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span>task<span style="color: #009900;">&#40;</span>_<span style="color: #339933;">,</span> _<span style="color: #339933;">,</span> M2<span style="color: #339933;">,</span> _<span style="color: #009900;">&#41;</span> <span style="color: #339933;">|</span> T<span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span>
	M \<span style="color: #339933;">=</span> M2<span style="color: #339933;">,</span>
	nonoverlaps<span style="color: #009900;">&#40;</span>J<span style="color: #339933;">,</span>D<span style="color: #339933;">,</span>M<span style="color: #339933;">,</span>T<span style="color: #339933;">,</span>TASKLIST<span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>
nonoverlaps<span style="color: #009900;">&#40;</span>J<span style="color: #339933;">,</span>D<span style="color: #339933;">,</span>M<span style="color: #339933;">,</span>L<span style="color: #339933;">,</span>TASKLIST<span style="color: #009900;">&#41;</span> <span style="color: #339933;">:-</span>
	L<span style="color: #339933;">=</span><span style="color: #009900;">&#91;</span>task<span style="color: #009900;">&#40;</span>_<span style="color: #339933;">,</span>D2<span style="color: #339933;">,</span>M2<span style="color: #339933;">,</span>T2<span style="color: #009900;">&#41;</span><span style="color: #339933;">|</span>T<span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span>
	M <span style="color: #339933;">=</span> M2<span style="color: #339933;">,</span>
	member<span style="color: #009900;">&#40;</span>task<span style="color: #009900;">&#40;</span>J<span style="color: #339933;">,</span>D<span style="color: #339933;">,</span>M<span style="color: #339933;">,</span>T1<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>TASKLIST<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
	exlude<span style="color: #009900;">&#40;</span>T1<span style="color: #339933;">,</span>D<span style="color: #339933;">,</span>T2<span style="color: #339933;">,</span>D2<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
	nonoverlaps<span style="color: #009900;">&#40;</span>J<span style="color: #339933;">,</span>D<span style="color: #339933;">,</span>M<span style="color: #339933;">,</span>T<span style="color: #339933;">,</span>TASKLIST<span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>
&nbsp;
<span style="color: #666666; font-style: italic;">% Your rules should not go below this line</span>
&nbsp;
<span style="color: #666666; font-style: italic;">% Don't delete or comment away the following</span>
&nbsp;
<span style="color: #666666; font-style: italic;">%% Output the solution</span>
myoutput <span style="color: #339933;">:-</span> jobshop<span style="color: #009900;">&#40;</span>L<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
 	    <span style="color: #990000;">write</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'The starting time of the tasks are: \n'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
            myprint<span style="color: #009900;">&#40;</span>L<span style="color: #339933;">,</span> <span style="color: #800080;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>
&nbsp;
<span style="color: #666666; font-style: italic;">%% this is to output the sarting time</span>
myprint<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> _<span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>
myprint<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#91;</span>X<span style="color: #339933;">|</span>L<span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> I<span style="color: #009900;">&#41;</span> <span style="color: #339933;">:-</span> <span style="color: #990000;">write</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'task '</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #990000;">write</span><span style="color: #009900;">&#40;</span>I<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #990000;">write</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">' starts at '</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
                   <span style="color: #990000;">write</span><span style="color: #009900;">&#40;</span>X<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #990000;">write</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'\n'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> Y #<span style="color: #339933;">=</span> I<span style="color: #339933;">+</span><span style="color: #800080;">1</span><span style="color: #339933;">,</span> myprint<span style="color: #009900;">&#40;</span>L<span style="color: #339933;">,</span> Y<span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>
&nbsp;
<span style="color: #666666; font-style: italic;">%% initiat the output.</span>
<span style="color: #339933;">:-</span> myoutput<span style="color: #339933;">.</span></pre></div></div>

<p>Sample query and output under Sicstus Prolog</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">banana$ sicstus
SICStus 3.11.2 (sparc-solaris-5.7): Wed Jun  2 11:43:16 MET DST 2004
Licensed to ttu.edu
| ?- ['schedule-template.pl'].
% consulting /home/undergrad3/ebaldelo/schedule-template.pl...
%  loading /usr/local/lib/sicstus-3.11.2/library/clpfd.po...
%  module clpfd imported into user
%   loading /usr/local/lib/sicstus-3.11.2/library/atts.po...
%   module attributes imported into clpfd
%    loading /usr/local/lib/sicstus-3.11.2/library/lists.po...
%    module lists imported into attributes
%    loaded /usr/local/lib/sicstus-3.11.2/library/lists.po in module lists, 10 msec 18528 bytes
%   loaded /usr/local/lib/sicstus-3.11.2/library/atts.po in module attributes, 10 msec 46400 bytes
%   loading /usr/local/lib/sicstus-3.11.2/library/assoc.po...
%   module assoc imported into clpfd
%    module lists imported into assoc
%   loaded /usr/local/lib/sicstus-3.11.2/library/assoc.po in module assoc, 20 msec 17988 bytes
%   module lists imported into clpfd
%   loading /usr/local/lib/sicstus-3.11.2/library/ordsets.po...
%   module ordsets imported into clpfd
%   loaded /usr/local/lib/sicstus-3.11.2/library/ordsets.po in module ordsets, 0 msec 21496 bytes
%   loading /usr/local/lib/sicstus-3.11.2/library/ugraphs.po...
%   module ugraphs imported into clpfd
%    module ordsets imported into ugraphs
%    module lists imported into ugraphs
%    module assoc imported into ugraphs
%    loading /usr/local/lib/sicstus-3.11.2/library/random.po...
%    module random imported into ugraphs
%     module assoc imported into random
%     loading foreign resource /usr/local/lib/sicstus-3.11.2/library/sparc-solaris-5.7/random.so in module random
%    loaded /usr/local/lib/sicstus-3.11.2/library/random.po in module random, 20 msec 7776 bytes
%   loaded /usr/local/lib/sicstus-3.11.2/library/ugraphs.po in module ugraphs, 70 msec 84872 bytes
%   loading foreign resource /usr/local/lib/sicstus-3.11.2/library/sparc-solaris-5.7/clpfd.so in module clpfd
%  loaded /usr/local/lib/sicstus-3.11.2/library/clpfd.po in module clpfd, 170 msec 829440 bytes
%  consulting /home/undergrad3/ebaldelo/job.pl...
%  consulted /home/undergrad3/ebaldelo/job.pl in module user, 0 msec 912 bytes
The starting time of the tasks are:
task 1 starts at 0
task 2 starts at 5
task 3 starts at 10
task 4 starts at 5
task 5 starts at 11
task 6 starts at 16
% consulted /home/undergrad3/ebaldelo/schedule-template.pl in module user, 200 msec 836040 bytes
yes
| ?-</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.webplantmedia.com/prolog/2010/12/executable-prolog-clp-program-for-the-following-job-shop-scheduling-problem/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Adding Color, Drawing a Tetrahedron, Cube with WebGL</title>
		<link>http://www.webplantmedia.com/webgl/2010/09/adding-color-drawing-a-tetrahedron-cube-with-webgl/</link>
		<comments>http://www.webplantmedia.com/webgl/2010/09/adding-color-drawing-a-tetrahedron-cube-with-webgl/#comments</comments>
		<pubDate>Fri, 24 Sep 2010 19:22:15 +0000</pubDate>
		<dc:creator>ChrisB</dc:creator>
				<category><![CDATA[WebGL]]></category>

		<guid isPermaLink="false">http://www.webplantmedia.com/?p=510</guid>
		<description><![CDATA[Our second assignment asked us to use color when drawing a tetrahedron and cube using WebGL. Here is a screen shot of my work. If you have a WebGl capable browser, then follow the link and you can test it yourself. Make sure you view source on the page. Here are the three files you [...]]]></description>
			<content:encoded><![CDATA[<p>Our second assignment asked us to use color when drawing a tetrahedron and cube using WebGL. Here is a screen shot of my work.</p>
<p><object width="450" height="360"><param name="movie" value="http://www.youtube.com/v/q0VRMnpNkww?fs=1&amp;hl=en_US"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/q0VRMnpNkww?fs=1&amp;hl=en_US" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="450" height="360"></embed></object></p>
<p>If you have a WebGl capable browser, then follow the <a href="http://dev.chrisbaldelomar.com/ttu/lesson2.html" target="_blank">link</a> and you can test it yourself. Make sure you view source on the page.</p>
<p>Here are the three files you need to run this lesson.<br />
<a href="http://dev.chrisbaldelomar.com/ttu/lesson2.html">lesson2.html</a><br />
<a href="http://dev.chrisbaldelomar.com/ttu/sylvester.js">sylvester.js</a><br />
<a href="http://dev.chrisbaldelomar.com/ttu/glUtils.js">glUtils.js</a></p>
<div class="navigation">
<div class="alignleft"><a href="http://www.webplantmedia.com/webgl/2010/09/drawing-simple-shapes-triangle-square-in-webgl/">« Lesson 1</a></div>
<div class="alignright"><a href="">Lesson 3 »</a></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.webplantmedia.com/webgl/2010/09/adding-color-drawing-a-tetrahedron-cube-with-webgl/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to get the Symbol Browser Plugin to work in Gedit</title>
		<link>http://www.webplantmedia.com/ubuntu/2010/09/how-to-get-the-symbol-browser-plugin-to-work-in-gedit/</link>
		<comments>http://www.webplantmedia.com/ubuntu/2010/09/how-to-get-the-symbol-browser-plugin-to-work-in-gedit/#comments</comments>
		<pubDate>Sat, 18 Sep 2010 05:14:16 +0000</pubDate>
		<dc:creator>ChrisB</dc:creator>
				<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.webplantmedia.com/?p=500</guid>
		<description><![CDATA[Ok, so twice I had to research and figure out how I got the symbol browser working in gedit. I started out trying to install the Class Browser. But the ubuntu community suggested that this plugin was no good and to instead use the symbol browser. If you quickly rush and start downloading the symbol [...]]]></description>
			<content:encoded><![CDATA[<p>Ok, so twice I had to research and figure out how I got the symbol browser working in gedit. I started out trying to install the Class Browser. But the ubuntu community suggested that this plugin was no good and to instead use the symbol browser. If you quickly rush and start downloading the symbol browser plugin, you will find that you just downloaded a whole bunch files that need to be compiled. Lucky for us though, you can instead download the binary files for the symbol browser. Go to <a href="http://sourceforge.net/projects/symbol-browser/files/">SourceForge</a> and instead of clicking on &#8220;Download Files&#8221;, look below under &#8220;Browse Files for Gedit Symbol Browser Plugin&#8221; and you should see</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">gedit-symbol-browser-plugin-bin-ubuntu-i386-0.1.tar.gz</pre></div></div>

<p>If you are using 64 bit, make sure download the 64 bit binary version.</p>
<p>Extract your files and move it over to ~/.gnome2/gedit. You should have the following files&#8230;<br />
~/.gnome2/gedit/symbols<br />
~/.gnome2/gedit/plugins/libsymbolbrowser.so<br />
~/.gnome2/gedit/plugins/symbolbrowser.gedit-plugin</p>
<p>A lot of us will now try and open Gedit and enable the plugin. As you try, it will automatically get grayed out. This is because you need the following package.</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">libgnomeprintui</pre></div></div>

<p>Once you restart Gedit and enable the plugin, you might realize that it&#8217;s still not displaying any class, functions, or variables after you open a file. This is because you need to install exuberant-ctags. After you do this, you should be ready to go.</p>
<p>Let me know if you have any problems.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webplantmedia.com/ubuntu/2010/09/how-to-get-the-symbol-browser-plugin-to-work-in-gedit/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Drawing Simple Shapes &#8211; Triangle, Square in WebGL</title>
		<link>http://www.webplantmedia.com/webgl/2010/09/drawing-simple-shapes-triangle-square-in-webgl/</link>
		<comments>http://www.webplantmedia.com/webgl/2010/09/drawing-simple-shapes-triangle-square-in-webgl/#comments</comments>
		<pubDate>Wed, 15 Sep 2010 23:02:05 +0000</pubDate>
		<dc:creator>ChrisB</dc:creator>
				<category><![CDATA[WebGL]]></category>

		<guid isPermaLink="false">http://www.webplantmedia.com/?p=478</guid>
		<description><![CDATA[Our first assignment asked us to draw simple shapes using WebGL. For this particular project I drew a simple square and triangle. Here is a screen shot of my work. If you have a WebGl capable browser, then follow the link and you can test it yourself. Make sure you view source on the page. [...]]]></description>
			<content:encoded><![CDATA[<p>Our first assignment asked us to draw simple shapes using WebGL. For this particular project I drew a simple square and triangle. Here is a screen shot of my work.</p>
<p><img src="http://www.webplantmedia.com/wp-content/uploads/2010/09/triangle-square-webgl-400x398.jpg" alt="" title="triangle-square-webgl" width="450" height="448" class="alignnone size-medium wp-image-479" /></p>
<p>If you have a WebGl capable browser, then follow the <a href="http://dev.chrisbaldelomar.com/ttu/lesson1.html" target="_blank">link</a> and you can test it yourself. Make sure you view source on the page. I heavily commented the code.</p>
<p>Here are the three files you need to run this lesson.<br />
<a href="http://dev.chrisbaldelomar.com/ttu/lesson1.html">lesson1.html</a><br />
<a href="http://dev.chrisbaldelomar.com/ttu/sylvester.js">sylvester.js</a><br />
<a href="http://dev.chrisbaldelomar.com/ttu/glUtils.js">glUtils.js</a></p>
<div class="navigation">
<div class="alignleft"><a href="http://www.webplantmedia.com/webgl/2010/09/introduction-to-webgl/">« Introduction to WebGL</a></div>
<div class="alignright"><a href="http://www.webplantmedia.com/webgl/2010/09/adding-color-drawing-a-tetrahedron-cube-with-webgl/">Lesson 2 »</a></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.webplantmedia.com/webgl/2010/09/drawing-simple-shapes-triangle-square-in-webgl/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Introduction to WebGL</title>
		<link>http://www.webplantmedia.com/webgl/2010/09/introduction-to-webgl/</link>
		<comments>http://www.webplantmedia.com/webgl/2010/09/introduction-to-webgl/#comments</comments>
		<pubDate>Wed, 08 Sep 2010 17:36:08 +0000</pubDate>
		<dc:creator>ChrisB</dc:creator>
				<category><![CDATA[WebGL]]></category>

		<guid isPermaLink="false">http://www.webplantmedia.com/?p=452</guid>
		<description><![CDATA[I&#8217;m currently taking a computer graphics class and I&#8217;ll be spending this semester delving into WebGL. So, I&#8217;ll be giving some tutorials as I get new projects to work on. Setting Up Your Browser To Support WebGL First do a Google search for &#8220;google chrome developer build&#8221;, and it should be the first result. Here [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m currently taking a computer graphics class and I&#8217;ll be spending this semester delving into WebGL. So, I&#8217;ll be giving some tutorials as I get new projects to work on.</p>
<p><strong>Setting Up Your Browser To Support WebGL</strong></p>
<p>First do a Google search for &#8220;google chrome developer build&#8221;, and it should be the first result. Here is the link it took me to. </p>
<p><a href="http://www.google.com/chrome/intl/en/eula_dev.html">http://www.google.com/chrome/intl/en/eula_dev.html</a></p>
<p>Once you have chrome&#8217;s developer build, click on [Start->All Programs->Google Chrome] and then right-click on &#8216;Google Chrome&#8217;. Select &#8216;properties&#8217; and append this to the end of the [Target] string.</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">--enable-webgl</pre></div></div>

<p>Here is how my target string looked like.</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">C:\Users\Chris\AppData\Local\Google\Chrome\Application\chrome.exe --enable-webgl</pre></div></div>

<p>Now open up Chrome by going through [Start->All Programs->Google Chrome] and you should be ready to view WebGL webpages. Click <a href="http://dev.chrisbaldelomar.com/ttu/webgl.html">here</a> to test for your self.</p>
<p><strong>Getting Started With WebGL</strong></p>
<p>Here are the three files you need to set up your frist WebGL script.<br />
<a href="http://dev.chrisbaldelomar.com/ttu/webgl.html">webgl.html</a><br />
<a href="http://dev.chrisbaldelomar.com/ttu/sylvester.js">sylvester.js</a><br />
<a href="http://dev.chrisbaldelomar.com/ttu/glUtils.js">glUtils.js</a></p>
<div class="navigation">
<div class="alignright"><a href="http://www.webplantmedia.com/webgl/2010/09/drawing-simple-shapes-triangle-square-in-webgl/">Lesson 1 »</a></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.webplantmedia.com/webgl/2010/09/introduction-to-webgl/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Cache Problem in CakePHP</title>
		<link>http://www.webplantmedia.com/cakephp/2010/09/cache-problem-in-cakephp/</link>
		<comments>http://www.webplantmedia.com/cakephp/2010/09/cache-problem-in-cakephp/#comments</comments>
		<pubDate>Tue, 07 Sep 2010 15:56:13 +0000</pubDate>
		<dc:creator>ChrisB</dc:creator>
				<category><![CDATA[CakePHP]]></category>

		<guid isPermaLink="false">http://www.webplantmedia.com/?p=440</guid>
		<description><![CDATA[I recently had a problem on our website with caching in our CakePHP framework. We initially had caching turned on. And then we started noticing when we submitted a form, our changes wound not be updated until we manually refreshed the page. So let&#8217;s say I have a row of users. I choose to delete [...]]]></description>
			<content:encoded><![CDATA[<p>I recently had a problem on our website with caching in our CakePHP framework. We initially had caching turned on. And then we started noticing when we submitted a form, our changes wound not be updated until we manually refreshed the page.</p>
<p>So let&#8217;s say I have a row of users. I choose to delete one of the users. I click on delete, hit submit and cake removes that user from my table. Cake then redirects me back to same page, but the deleted user is still listed on our page. Once we manually hit the refresh button on our browser, then our deleted user disappears from our form page.</p>
<p>We scratched our heads and tried figuring out why this was happening. We turned off all caching and even added the &lt;cake:nocache&gt; tag. No matter what we did, we could not get rid of the problem.</p>
<p>After much research, we realized that the browser itself was actually caching the previous form page. So we added this snippet of code to our app controller.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">disableCache</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>This is used to tell the user’s browser not to cache the results of the current request. The headers sent to this effect are:</p>

<div class="wp_syntax"><div class="code"><pre class="txt" style="font-family:monospace;">Expires: Mon, 26 Jul 1997 05:00:00 GMT
Last-Modified: [current datetime] GMT
Cache-Control: no-store, no-cache, must-revalidate
Cache-Control: post-check=0, pre-check=0
Pragma: no-cache</pre></div></div>

<p>I hope this saves you some time. If you find a better way fixing this problem, please leave a comment.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webplantmedia.com/cakephp/2010/09/cache-problem-in-cakephp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced
Object Caching 502/566 objects using disk: basic

Served from: www.webplantmedia.com @ 2012-05-18 07:06:25 -->
