<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Justin Loh's Tech Blog</title>
	<atom:link href="http://juslohtechblog.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://juslohtechblog.wordpress.com</link>
	<description>My Past References and Notes</description>
	<lastBuildDate>Thu, 03 Mar 2011 21:19:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='juslohtechblog.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Justin Loh's Tech Blog</title>
		<link>http://juslohtechblog.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://juslohtechblog.wordpress.com/osd.xml" title="Justin Loh&#039;s Tech Blog" />
	<atom:link rel='hub' href='http://juslohtechblog.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Request for Help</title>
		<link>http://juslohtechblog.wordpress.com/2008/08/12/request-for-help/</link>
		<comments>http://juslohtechblog.wordpress.com/2008/08/12/request-for-help/#comments</comments>
		<pubDate>Tue, 12 Aug 2008 11:24:24 +0000</pubDate>
		<dc:creator>jusloh</dc:creator>
				<category><![CDATA[1]]></category>

		<guid isPermaLink="false">http://juslohtechblog.wordpress.com/?p=24</guid>
		<description><![CDATA[Hi Nilushi, Unfortunately, I cannot assist you without getting involved immensely in the project and the latter requires a lot of time.  I am also heavily involved in other aspects of my work.  As such, I cannot help you. However, the fact that you are looking at Hibernate meant that you are in the right [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=juslohtechblog.wordpress.com&amp;blog=1252759&amp;post=24&amp;subd=juslohtechblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><cite>Hi Nilushi,</cite></p>
<p>Unfortunately, I cannot assist you without getting involved immensely in the project and the latter requires a lot of time.  I am also heavily involved in other aspects of my work.  As such, I cannot help you.</p>
<p>However, the fact that you are looking at Hibernate meant that you are in the right direction.  You need to be able to model the domain objects that describe the CV.  For each object, you will have to come up with methods that make use of the object items or fields for storage or presentation (POJO).</p>
<p>If you work on this way, you should be able to model the solution and in time the codes required for your project.</p>
<p>All the best,</p>
<p>Justin Loh</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/juslohtechblog.wordpress.com/24/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/juslohtechblog.wordpress.com/24/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/juslohtechblog.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/juslohtechblog.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/juslohtechblog.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/juslohtechblog.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/juslohtechblog.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/juslohtechblog.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/juslohtechblog.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/juslohtechblog.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/juslohtechblog.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/juslohtechblog.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/juslohtechblog.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/juslohtechblog.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/juslohtechblog.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/juslohtechblog.wordpress.com/24/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=juslohtechblog.wordpress.com&amp;blog=1252759&amp;post=24&amp;subd=juslohtechblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://juslohtechblog.wordpress.com/2008/08/12/request-for-help/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/90ad8d1694c2cf71f077be59d1036753?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jusloh</media:title>
		</media:content>
	</item>
		<item>
		<title>Explanation of Method Chaining</title>
		<link>http://juslohtechblog.wordpress.com/2007/07/03/explanation-of-method-chaining/</link>
		<comments>http://juslohtechblog.wordpress.com/2007/07/03/explanation-of-method-chaining/#comments</comments>
		<pubDate>Tue, 03 Jul 2007 16:38:37 +0000</pubDate>
		<dc:creator>jusloh</dc:creator>
				<category><![CDATA[Object Relational Mapping]]></category>

		<guid isPermaLink="false">http://juslohtechblog.wordpress.com/2007/07/03/explanation-of-method-chaining/</guid>
		<description><![CDATA[Method chaining is a programming style supported by many Hibernate interfaces. This style is more popular in Smalltalk than in Java and is considered by some people to be less readable and more difficult to debug than the more accepted Java style. However, it’s convenient in many cases, such as for the configuration snippets you’ve [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=juslohtechblog.wordpress.com&amp;blog=1252759&amp;post=20&amp;subd=juslohtechblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span>Method chaining is a programming style supported by<br />
many Hibernate interfaces. This style is more popular in Smalltalk than<br />
in Java and is considered by some people to be less readable and more<br />
difficult to debug than the more accepted Java style. However, it’s convenient<br />
in many cases, such as for the configuration snippets you’ve seen in the following code:</span></p>
<p><code>SessionFactory sessionFactory = new Configuration()<br />
.configure("/persistence/auction.cfg.xml")<br />
.setProperty(Environment.DEFAULT_SCHEMA, "CAVEATEMPTOR")<br />
.addResource("auction/CreditCard.hbm.xml")<br />
.buildSessionFactory();<br />
</code></p>
<p>If you do use this coding<br />
style, it’s better to write each method invocation on a different line. Otherwise,<br />
it may be difficult to step through the code in your debugger.</p>
<p>Another more complex example with a method, getEntitleReferenceService(),<br />
that returns an object of type interface, EntitlementsReferenceService, which has<br />
method getUser(String userID).  A concrete class of RemoteEntitleReferenceService,<br />
implements the EntitlementsReferenceService interface, thereby enable the use of<br />
getUser(String userID).</p>
<p><code><br />
boolean b = (    Services<br />
.getInstance()<br />
.getEntitleReferenceService()<br />
.getUser(username)<br />
!= null    );<br />
</code></p>
<p><span style="font-weight:bold;">Step by Step Explanation:</span></p>
<p>Services.getInstance()  returns an object of type: Services</p>
<p>On the Services object, I call the method: getEntitleReferenceService()</p>
<p>this method returns an object of type interface: EntitlementsReferenceService<br />
The only class that implements that interface is: RemoteEntitleReferenceService.java</p>
<p>In RemoteEntitleReferenceService.java resides the method: getUser(String userID)</p>
<p>with method signature:</p>
<p>public User getUser(final String userId){}</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/juslohtechblog.wordpress.com/20/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/juslohtechblog.wordpress.com/20/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/juslohtechblog.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/juslohtechblog.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/juslohtechblog.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/juslohtechblog.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/juslohtechblog.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/juslohtechblog.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/juslohtechblog.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/juslohtechblog.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/juslohtechblog.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/juslohtechblog.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/juslohtechblog.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/juslohtechblog.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/juslohtechblog.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/juslohtechblog.wordpress.com/20/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=juslohtechblog.wordpress.com&amp;blog=1252759&amp;post=20&amp;subd=juslohtechblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://juslohtechblog.wordpress.com/2007/07/03/explanation-of-method-chaining/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/90ad8d1694c2cf71f077be59d1036753?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jusloh</media:title>
		</media:content>
	</item>
		<item>
		<title>vi or vim Editor Reference</title>
		<link>http://juslohtechblog.wordpress.com/2007/06/19/vi-or-vim-editor-reference/</link>
		<comments>http://juslohtechblog.wordpress.com/2007/06/19/vi-or-vim-editor-reference/#comments</comments>
		<pubDate>Tue, 19 Jun 2007 05:05:38 +0000</pubDate>
		<dc:creator>jusloh</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://juslohtechblog.wordpress.com/2007/06/19/vi-or-vim-editor-reference/</guid>
		<description><![CDATA[Cursor control and position h Left Editing j Down k Up l (or spacebar) Right w Forward one word b Back one word e End of word ( Beginning of current sentence ) Beginning of next sentence { Beginning of current paragraph } Beginning of next paragraph [[ Beginning of current section ]] Beginning of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=juslohtechblog.wordpress.com&amp;blog=1252759&amp;post=19&amp;subd=juslohtechblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h2>Cursor control and position</h2>
<table border="0" cellspacing="1" width="635">
<tr>
<td width="13%">h</td>
<td width="36%">Left</td>
<td rowspan="12" colspan="2"><a href="http://www.text-link-ads.com/?ref=23734"><br />
</a></p>
<h2>Editing</h2>
</td>
</tr>
<tr>
<td width="13%">j</td>
<td width="36%">Down</td>
</tr>
<tr>
<td width="13%">k</td>
<td width="36%">Up</td>
</tr>
<tr>
<td width="13%">l (or spacebar)</td>
<td width="36%">Right</td>
</tr>
<tr>
<td width="13%">w</td>
<td width="36%">Forward one word</td>
</tr>
<tr>
<td width="13%">b</td>
<td width="36%">Back one word</td>
</tr>
<tr>
<td width="13%">e</td>
<td width="36%">End of word</td>
</tr>
<tr>
<td width="13%">(</td>
<td width="36%">Beginning of current sentence</td>
</tr>
<tr>
<td width="13%">)</td>
<td width="36%">Beginning of next sentence</td>
</tr>
<tr>
<td width="13%">{</td>
<td width="36%">Beginning of current paragraph</td>
</tr>
<tr>
<td width="13%">}</td>
<td width="36%">Beginning of next paragraph</td>
</tr>
<tr>
<td width="13%">[[</td>
<td width="36%">Beginning of current section</td>
</tr>
<tr>
<td width="13%">]]</td>
<td width="36%">Beginning of next section</td>
<td width="9%">A</td>
<td width="42%">Append to end of current line</td>
</tr>
<tr>
<td width="13%">0</td>
<td width="36%">Start of current line</td>
<td width="9%">i</td>
<td width="42%">Insert before cursor</td>
</tr>
<tr>
<td width="13%">$</td>
<td width="36%">End of current line</td>
<td width="9%">I</td>
<td width="42%">Insert at beginning of line</td>
</tr>
<tr>
<td width="13%">^</td>
<td width="36%">First non-white character of current line</td>
<td width="9%">o</td>
<td width="42%">Open line above cursor</td>
</tr>
<tr>
<td width="13%">+ or RETURN</td>
<td width="36%">First character of next line</td>
<td width="9%">O</td>
<td width="42%">Open line below cursor</td>
</tr>
<tr>
<td width="13%">-</td>
<td width="36%">First character of previous line</td>
<td width="9%">ESC</td>
<td width="42%">End of insert mode</td>
</tr>
<tr>
<td width="13%"><em>n</em> |</td>
<td width="36%">character <em>n</em> of current line</td>
<td width="9%">Ctrl-I</td>
<td width="42%">Insert a tab</td>
</tr>
<tr>
<td width="13%">H</td>
<td width="36%">Top line of current screen</td>
<td width="9%">Ctrl-T</td>
<td width="42%">Move to next tab position</td>
</tr>
<tr>
<td width="13%">M</td>
<td width="36%">Middle line of current screen</td>
<td width="9%">Backspace</td>
<td width="42%">Move back one character</td>
</tr>
<tr>
<td width="13%">L</td>
<td width="36%">Last line of current screen</td>
<td width="9%">Ctrl-U</td>
<td width="42%">Delete current line</td>
</tr>
<tr>
<td width="13%"><em>n</em>H</td>
<td width="36%"><em>n</em> lines after top line of current screen</td>
<td width="9%">Ctrl-V</td>
<td width="42%">Quote next character</td>
</tr>
<tr>
<td width="13%"><em>n</em>L</td>
<td width="36%"><em>n</em> lines before last line of current screen</td>
<td width="9%">Ctrl-W</td>
<td width="42%">Move back one word</td>
</tr>
<tr>
<td width="13%">Ctrl-F</td>
<td width="36%">Forward one screen</td>
<td width="9%">cw</td>
<td width="42%">Change word</td>
</tr>
<tr>
<td width="13%">Ctrl-B</td>
<td width="36%">Back one screen</td>
<td width="9%">cc</td>
<td width="42%">Change line</td>
</tr>
<tr>
<td width="13%">Ctrl-D</td>
<td width="36%">Down half a screen</td>
<td width="9%">C</td>
<td width="42%">Change from current position to end of line</td>
</tr>
<tr>
<td width="13%">Ctrl-U</td>
<td width="36%">Up half a screen</td>
<td width="9%">dd</td>
<td width="42%">Delete current line</td>
</tr>
<tr>
<td width="13%">Ctrl-E</td>
<td width="36%">Display another line at bottom of screen</td>
<td width="9%"><em>n</em>dd</td>
<td width="42%">Delete <em>n</em> lines</td>
</tr>
<tr>
<td width="13%">Ctrl-Y</td>
<td width="36%">Display another line at top of screen</td>
<td width="9%">D</td>
<td width="42%">Delete remainer of line</td>
</tr>
<tr>
<td width="13%">z RETURN</td>
<td width="36%">Redraw screen with cursor at top</td>
<td width="9%">dw</td>
<td width="42%">Delete word</td>
</tr>
<tr>
<td width="13%">z .</td>
<td width="36%">Redraw screen with cursor in middle</td>
<td width="9%">d}</td>
<td width="42%">Delete rest of paragraph</td>
</tr>
<tr>
<td width="13%">z -</td>
<td width="36%">Redraw screen with cursor at bottom</td>
<td width="9%">d^</td>
<td width="42%">Delete back to start of line</td>
</tr>
<tr>
<td width="13%">Ctrl-L</td>
<td width="36%">Redraw screen without re-positioning</td>
<td width="9%">c/<em>pat</em></td>
<td width="42%">Delete up to first occurance of pattern</td>
</tr>
<tr>
<td width="13%">Ctrl-R</td>
<td width="36%">Redraw screen without re-positioning</td>
<td width="9%">dn</td>
<td width="42%">Delete up to next occurance of pattern</td>
</tr>
<tr>
<td width="13%">/<em>text</em></td>
<td width="36%">Search for <em>text</em> (forwards)</td>
<td width="9%">df<em>a</em></td>
<td width="42%">Delete up to and including <em>a</em> on current line</td>
</tr>
<tr>
<td width="13%">/</td>
<td width="36%">Repeat forward search</td>
<td width="9%">dt<em>a</em></td>
<td width="42%">Delete up to, but not including, <em>a</em> on current line</td>
</tr>
<tr>
<td width="13%">?<em>text</em></td>
<td width="36%">Search for <em>text</em> (backwards)</td>
<td width="9%">dL</td>
<td width="42%">Delete up to last line on screen</td>
</tr>
<tr>
<td width="13%">?</td>
<td width="36%">Repeat previous search backwards</td>
<td width="9%">dG</td>
<td width="42%">Delete to end of file</td>
</tr>
<tr>
<td width="13%">n</td>
<td width="36%">Repeat previous search</td>
<td width="9%">J</td>
<td width="42%">Join two lines</td>
</tr>
<tr>
<td width="13%">N</td>
<td width="36%">Repeat previous search, but it opposite direction</td>
<td width="9%">p</td>
<td width="42%">Insert buffer after cursor</td>
</tr>
<tr>
<td width="13%">/<em>text</em>/+<em>n</em></td>
<td width="36%">Go to line <em>n</em> after <em>text</em></td>
<td width="9%">P</td>
<td width="42%">Insert buffer before cursor</td>
</tr>
<tr>
<td width="13%">?<em>text</em>?-<em>n</em></td>
<td width="36%">Go to line <em>n</em> before <em>text</em></td>
<td width="9%">r<em>x</em></td>
<td width="42%">Replace character with <em>x</em></td>
</tr>
<tr>
<td width="13%">%</td>
<td width="36%">Find match of current parenthesis, brace, or bracket.</td>
<td width="9%">R<em>text</em></td>
<td width="42%">Replace <em>text</em> beginning at cursor</td>
</tr>
<tr>
<td width="13%">Ctrl-G</td>
<td width="36%">Display line number of cursor</td>
<td width="9%">s</td>
<td width="42%">Substitute character</td>
</tr>
<tr>
<td width="13%"><em>n</em>G</td>
<td width="36%">Move cursor to line number <em>n</em></td>
<td width="9%"><em>n</em>s</td>
<td width="42%">Substitute <em>n</em> characters</td>
</tr>
<tr>
<td width="13%">:<em>n</em></td>
<td width="36%">Move cursor to line number <em>n</em></td>
<td width="9%">S</td>
<td width="42%">Substitute entire line</td>
</tr>
<tr>
<td width="13%">G</td>
<td width="36%">Move to last line in file</td>
<td width="9%">u</td>
<td width="42%">Undo last change</td>
</tr>
<tr>
<td width="13%">&nbsp;</td>
<td width="36%">&nbsp;</td>
<td width="9%">U</td>
<td width="42%">Restore current line</td>
</tr>
<tr>
<td rowspan="12" colspan="2"><a href="http://www.text-link-ads.com/?ref=23734"><br />
</a></td>
<td width="9%">x</td>
<td width="42%">Delete current cursor position</td>
</tr>
<tr>
<td width="9%">X</td>
<td width="42%">Delete back one character</td>
</tr>
<tr>
<td width="9%"><em>n</em>X</td>
<td width="42%">Delete previous <em>n</em> characters</td>
</tr>
<tr>
<td width="9%">.</td>
<td width="42%">Repeat last change</td>
</tr>
<tr>
<td width="9%">~</td>
<td width="42%">Reverse case</td>
</tr>
<tr>
<td width="9%">y</td>
<td width="42%">Copy current line to new buffer</td>
</tr>
<tr>
<td width="9%">yy</td>
<td width="42%">Copy current line</td>
</tr>
<tr>
<td width="9%">&#8220;<em>x</em>yy</td>
<td width="42%">Copy current line into buffer <em>x</em></td>
</tr>
<tr>
<td width="9%">&#8220;<em>X</em>d</td>
<td width="42%">Delete and append into buffer <em>x</em></td>
</tr>
<tr>
<td width="9%">&#8220;<em>x</em>p</td>
<td width="42%">Put contents of buffer <em>x</em></td>
</tr>
<tr>
<td width="9%">y]]</td>
<td width="42%">Copy up to next section heading</td>
</tr>
<tr>
<td width="9%">ye</td>
<td width="42%">Copy to end of word</td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
<td width="9%">&nbsp;</td>
<td width="42%">&nbsp;</td>
</tr>
<tr>
<td colspan="2">
<h2>File Handling</h2>
</td>
<td width="9%">&nbsp;</td>
<td width="42%">&nbsp;</td>
</tr>
<tr>
<td width="13%">:w</td>
<td width="36%">Write file</td>
<td rowspan="21" colspan="2">
<p align="center"> <a href="http://www.unix-manuals.com/forum/index.php"><br />
</a></p>
<p align="center"> <a href="http://www.unix-manuals.com/tutorials/vi/vi-in-10-1.html"><br />
</a></p>
<p align="center">&nbsp;</p>
<p><a href="http://www.unix-manuals.com/refs/regex/regex.htm"><br />
</a></p>
<p align="center">&nbsp;</p>
<p><a href="http://www.unix-manuals.com/tutorials/unix/choose-password/password-choice.html"><br />
</a></p>
<p align="center">&nbsp;</p>
</td>
</tr>
<tr>
<td width="13%">:w!</td>
<td width="36%">Write file (ignoring warnings)</td>
</tr>
<tr>
<td width="13%">:w! <em>file</em></td>
<td width="36%">Overwrite <em>file</em> (ignoring warnings)</td>
</tr>
<tr>
<td width="13%">:wq</td>
<td width="36%">Write file and quit</td>
</tr>
<tr>
<td width="13%">:q</td>
<td width="36%">Quit</td>
</tr>
<tr>
<td width="13%">:q!</td>
<td width="36%">Quit (even if changes not saved)</td>
</tr>
<tr>
<td width="13%">:w <em>file</em></td>
<td width="36%">Write file as <em>file</em>, leaving original untouched</td>
</tr>
<tr>
<td width="13%">ZZ</td>
<td width="36%">Quit, only writing file if changed</td>
</tr>
<tr>
<td width="13%"> <img src='http://s2.wp.com/wp-includes/images/smilies/icon_mad.gif' alt=':x' class='wp-smiley' /> </td>
<td width="36%">Quit, only writing file if changed</td>
</tr>
<tr>
<td width="13%">:<em>n1,n2</em>w <em>file</em></td>
<td width="36%">Write lines <em>n1</em> to <em>n2</em> to <em>file</em></td>
</tr>
<tr>
<td width="13%">:<em>n1,n2</em>w <em>&gt;&gt; file</em></td>
<td width="36%">Append lines <em>n1</em> to <em>n2</em> to <em>file</em></td>
</tr>
<tr>
<td width="13%">:e <em>file2</em></td>
<td width="36%">Edit <em>file2 </em>(current file becomes alternate file)</td>
</tr>
<tr>
<td width="13%">:e!</td>
<td width="36%">Reload file from disk (revert to previous saved version)</td>
</tr>
<tr>
<td width="13%">:e#</td>
<td width="36%">Edit alternate file</td>
</tr>
<tr>
<td width="13%">%</td>
<td width="36%">Display current filename</td>
</tr>
<tr>
<td width="13%">#</td>
<td width="36%">Display alternate filename</td>
</tr>
<tr>
<td width="13%">:n</td>
<td width="36%">Edit next file</td>
</tr>
<tr>
<td width="13%">:n!</td>
<td width="36%">Edit next file (ignoring warnings)</td>
</tr>
<tr>
<td width="13%">:n <em>files</em></td>
<td width="36%">Specify new list of <em>files</em></td>
</tr>
<tr>
<td width="13%">:r <em>file</em></td>
<td width="36%">Insert <em>file</em> after cursor</td>
</tr>
<tr>
<td width="13%">:r !<em>command</em></td>
<td width="36%">Run <em>command</em>, and insert output after current line</td>
</tr>
</table>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/juslohtechblog.wordpress.com/19/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/juslohtechblog.wordpress.com/19/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/juslohtechblog.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/juslohtechblog.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/juslohtechblog.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/juslohtechblog.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/juslohtechblog.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/juslohtechblog.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/juslohtechblog.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/juslohtechblog.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/juslohtechblog.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/juslohtechblog.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/juslohtechblog.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/juslohtechblog.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/juslohtechblog.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/juslohtechblog.wordpress.com/19/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=juslohtechblog.wordpress.com&amp;blog=1252759&amp;post=19&amp;subd=juslohtechblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://juslohtechblog.wordpress.com/2007/06/19/vi-or-vim-editor-reference/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/90ad8d1694c2cf71f077be59d1036753?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jusloh</media:title>
		</media:content>
	</item>
		<item>
		<title>Why my crontab didn&#8217;t work?</title>
		<link>http://juslohtechblog.wordpress.com/2007/06/18/why-crontab-dont-work/</link>
		<comments>http://juslohtechblog.wordpress.com/2007/06/18/why-crontab-dont-work/#comments</comments>
		<pubDate>Mon, 18 Jun 2007 17:41:02 +0000</pubDate>
		<dc:creator>jusloh</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://juslohtechblog.wordpress.com/2007/06/18/why-crontab-dont-work/</guid>
		<description><![CDATA[I have finally got my crontab to work and would like to share my few cents worth. Reasons that could make crontab fail: Reason 1: Command line that did not work. Solution: Always test them out first on the command prompt before putting the command in the crontab -e. Reason 2: Your command was too [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=juslohtechblog.wordpress.com&amp;blog=1252759&amp;post=18&amp;subd=juslohtechblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have finally got my crontab to work and would like to share my few cents worth.</p>
<p>Reasons that could make crontab fail:<br />
<strong></strong></p>
<p><strong><font color="#ff6600">Reason 1</font></strong>:<br />
Command line that did not work.<br />
<font color="#00ff00"></font></p>
<p><font color="#00ff00"><strong>Solution</strong></font>:<br />
Always test them out first on the command prompt before putting the command in the crontab -e.</p>
<p><strong><font color="#ff6600">Reason 2</font></strong>: Your command was too long and it caused a truncation of the command and inadvertently a EOF error  in the /bin/sh shell that executes the command.</p>
<p>(e.g.I received these root email message: <span class="q">/bin/sh: -c: line 0: unexpected EOF while looking for matching `&#8221;&#8216;</span><br />
<span class="q"> /bin/sh: -c: line 1: syntax error: unexpected end of file) </span></p>
<p><span class="q">because I crontab -e the following line:</span></p>
<p><span class="q">00 09 * * 1-5 /usr/bin/lynx -dump &#8220;http://myserver.web.com/messaging-web/SendSms?U</span><span class="q">serId=XXXXX &amp;password=XXXXX&amp;text=Daily%20sms%20test%20from%20MyServer&amp;recipientNo=XXXXXXXX&#8221; </span></p>
<p>Note: I have use character &#8216;X&#8217; to represent confidential numeric or alphanumeric characters.  The url given was fictitious but you can make out your long command line to test out what I mean.</p>
<p><strong><font color="#00ff00">Solution</font></strong>:  create a simple shell file (say /root/SendSms.sh) that has the long command line like:</p>
<p>#!/bin/sh<br />
<span class="q">/usr/bin/lynx -dump &#8220;http://myserver.web.com/messaging-web/SendSms?U</span><span class="q">serId=XXXXX &amp;password=XXXXX&amp;text=Daily%20sms%20test%20from%20MyServer&amp;recipientNo=XXXXXXXX&#8221;</span></p>
<p>&#8220;chmod 777 /root/SendSms.sh&#8221; to enable execution of SendSms.sh script file and test out the /root/SendSms.sh script on the command prompt.  If it worked on the command prompt, then crontab -e to enter the following line</p>
<p>00 09 *    *    *    /root/SendSms.sh</p>
<p>in crontab.<br />
<strong></strong></p>
<p><strong><font color="#ff6600">Reason 3</font></strong>: Testing your crontab scheduled task by scheduling the execution of task after 1 minute or few seconds of crontab -e being saved or installed.  Cron usually checked after every minute for scheduled task, so scheduling the task 1 minute or few seconds after exiting crontab -e will not make it execute after 1 minute or few seconds later.</p>
<p><strong><font color="#00ff00">Solution</font></strong>: Schedule the task a few minutes later.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/juslohtechblog.wordpress.com/18/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/juslohtechblog.wordpress.com/18/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/juslohtechblog.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/juslohtechblog.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/juslohtechblog.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/juslohtechblog.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/juslohtechblog.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/juslohtechblog.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/juslohtechblog.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/juslohtechblog.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/juslohtechblog.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/juslohtechblog.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/juslohtechblog.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/juslohtechblog.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/juslohtechblog.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/juslohtechblog.wordpress.com/18/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=juslohtechblog.wordpress.com&amp;blog=1252759&amp;post=18&amp;subd=juslohtechblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://juslohtechblog.wordpress.com/2007/06/18/why-crontab-dont-work/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/90ad8d1694c2cf71f077be59d1036753?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jusloh</media:title>
		</media:content>
	</item>
		<item>
		<title>Why Model with UML?</title>
		<link>http://juslohtechblog.wordpress.com/2007/06/18/why-model-with-uml/</link>
		<comments>http://juslohtechblog.wordpress.com/2007/06/18/why-model-with-uml/#comments</comments>
		<pubDate>Mon, 18 Jun 2007 16:51:15 +0000</pubDate>
		<dc:creator>jusloh</dc:creator>
				<category><![CDATA[UML Modeling]]></category>

		<guid isPermaLink="false">http://juslohtechblog.wordpress.com/2007/06/18/why-model-with-uml/</guid>
		<description><![CDATA[Why Model with UML? A write-up in Netbeans.org focusing on the question &#8220;Why should I model?&#8221;. The answers are two considerations: The benefits you can derived from going through the various stages of UML modeling. A reduction in frustrations for the engineer (could be you who is doing the maintenance after many months down the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=juslohtechblog.wordpress.com&amp;blog=1252759&amp;post=17&amp;subd=juslohtechblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.netbeans.org/kb/55/uml-why-model.html#" target="_blank">Why Model with UML?</a></p>
<p>A write-up in Netbeans.org focusing on the question &#8220;Why should I model?&#8221;.  The answers are two considerations:</p>
<ol>
<li>The benefits you can derived from going through the various stages of UML modeling.</li>
<li>A reduction in frustrations for the engineer (could be you who is doing the maintenance after many months down the road) who has to go through thousands  of lines of codes.   Visual forms gives the maintenance engineer a better idea of the how the various components worked, how they were integrated together by the originator of the codes and how they were deployed.</li>
</ol>
<p>Tutorials using Netbeans to create the various UML diagrams were provided by links.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/juslohtechblog.wordpress.com/17/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/juslohtechblog.wordpress.com/17/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/juslohtechblog.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/juslohtechblog.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/juslohtechblog.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/juslohtechblog.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/juslohtechblog.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/juslohtechblog.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/juslohtechblog.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/juslohtechblog.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/juslohtechblog.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/juslohtechblog.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/juslohtechblog.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/juslohtechblog.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/juslohtechblog.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/juslohtechblog.wordpress.com/17/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=juslohtechblog.wordpress.com&amp;blog=1252759&amp;post=17&amp;subd=juslohtechblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://juslohtechblog.wordpress.com/2007/06/18/why-model-with-uml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/90ad8d1694c2cf71f077be59d1036753?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jusloh</media:title>
		</media:content>
	</item>
		<item>
		<title>Scheduling Tasks</title>
		<link>http://juslohtechblog.wordpress.com/2007/06/15/scheduling-tasks/</link>
		<comments>http://juslohtechblog.wordpress.com/2007/06/15/scheduling-tasks/#comments</comments>
		<pubDate>Fri, 15 Jun 2007 05:16:00 +0000</pubDate>
		<dc:creator>jusloh</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://juslohtechblog.wordpress.com/2007/06/15/scheduling-tasks/</guid>
		<description><![CDATA[crontab-Linux Command crontab (cron table) Schedule a command to run at a later time SYNTAX crontab [ -u user ] file crontab [ -u user ] { -l &#124; -r &#124; -e } Key -l List - display the current crontab entries. -r Remove the current crontab. -e Edit the current crontab using the editor [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=juslohtechblog.wordpress.com&amp;blog=1252759&amp;post=15&amp;subd=juslohtechblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h1><strong>crontab-Linux Command</strong></h1>
<p>crontab (cron table)</p>
<p class="bodystyle">Schedule a command to run at a later time</p>
<pre>SYNTAX     crontab [ -u <em>user</em> ] <em>file</em>     crontab [ -u <em>user</em> ] { -l | -r | -e }

Key  -l  List - display the current crontab entries.

  -r  Remove the current crontab.

  -e  Edit the current crontab using the editor specified by the</pre>
<pre>      VISUAL or EDITOR environment variables.</pre>
<pre>      After you exit from the editor, the modified crontab</pre>
<pre>      will be installed automatically.</pre>
<p><span class="bodystyle">Crontab is the program used to install, deinstall or  list   the tables used to drive the <a href="http://webtools.live2support.com/linux/cron.php">cron</a> daemon in Vixie Cron.<br />
Each user can have their own crontab, and though these are   files  in  /var,  they  are  not  intended  to  be  edited   directly.</span></p>
<p>If  the  -u  option is given, it specifies the name of the   user whose crontab is to be tweaked.  If  this  option  is    not  given,  crontab  examines &#8220;your&#8221; crontab, i.e., the          crontab of the person executing the  command.   Note  that <a href="http://webtools.live2support.com/linux/su.php">su</a> can  confuse  crontab  and  that if you are running   inside of <a href="http://webtools.live2support.com/linux/su.php">su</a> you should always use the  -u  option  for   safety&#8217;s sake.</p>
<p><span class="telety">cron <em>file</em> </span>is used to install a new   crontab from some named file  or  standard  input  if  the pseudo-filename `-&#8217; is given.</p>
<p class="bodystyle">Each line in the cron table follows the following format: 7 fields left to right</p>
<table border="1" cellpadding="5" cellspacing="0">
<tr>
<th class="bodystyle" align="left">Field</th>
<th class="bodystyle" align="left">Meaning</th>
</tr>
<tr>
<td class="bodystyle" align="center" width="30">1</td>
<td class="bodystyle">Minute (0-59)</td>
</tr>
<tr>
<td class="bodystyle" align="center">2</td>
<td class="bodystyle">Hour (2-24)</td>
</tr>
<tr>
<td class="bodystyle" align="center">3</td>
<td class="bodystyle">Day of month (1-31)</td>
</tr>
<tr>
<td class="bodystyle" align="center">4</td>
<td class="bodystyle">Month (1-12, Jan, Feb, &#8230;)</td>
</tr>
<tr>
<td class="bodystyle" align="center">5</td>
<td class="bodystyle">Day of week (0-6) 0=Sunday, 1=Monday &#8230;<br />
or Sun, Mon, Tue, Wed, Thur, Fri</td>
</tr>
<tr>
<td class="bodystyle" align="center">6</td>
<td class="bodystyle">User that the command will run as</td>
</tr>
<tr>
<td class="bodystyle" align="center">7</td>
<td class="bodystyle">Command to execute</td>
</tr>
</table>
<p class="bodystyle">There are several ways of specifying multiple values in a field:</p>
<p> <span class="bodystyle">• The comma (&#8216;,&#8217;) operator specifies a list of values, for example: &#8220;1,3,4,7,8&#8243;<br />
• The dash (&#8216;-&#8217;) operator specifies a range of values, for example: &#8220;1-6&#8243;, which is equivalent to &#8220;1,2,3,4,5,6&#8243;<br />
• The asterisk (&#8216;*&#8217;) operator specifies all possible values for a field. e.g. every hour or every day.</span></p>
<p class="bodystyle">There is also an operator which some extended versions of cron support, the slash (&#8216;/&#8217;) operator, which can be used to skip a given number of values. For example, &#8220;*/3&#8243; in the hour time field is equivalent to &#8220;0,3,6,9,12,15,18,21&#8243;; &#8220;*&#8221; specifies &#8216;every hour&#8217; but the &#8220;/3&#8243; means that only the first, fourth, seventh&#8230;and such values given by &#8220;*&#8221; are used.</p>
<p class="bodystyle">Cron will email to  the <span class="telety">user</span> all output of the commands it runs, to silence this, redirect the output to a log file or to /dev/null</p>
<p><strong>Example</strong></p>
<p>Run <span class="telety">/usr/bin/somecommand</span> at 12.59 every day and supress the output (redirect to null)</p>
<p><span class="telety">59 12 * * * simon /usr/bin/somecommand &gt;&gt; /dev/null 2&gt;&amp;1</span></p>
<p class="bodystyle"><strong>Permissions</strong><br />
If the <span class="telety">allow</span> file exists, then you must be listed therein in order to be allowed to use this command. If the allow file does not exist but the deny file does exist, then you must not be listed in the deny file in order to use this command. If neither of these files exists, then depending on site-dependent configuration parameters, only the super user will be allowed to use this command, or all users will be able to use this command.</p>
<p><span style="font-size:180%;"><span style="font-weight:bold;">Additional Guide and Examples:</span></span></p>
<p>Consider the following example that invokes the<span style="font-weight:bold;"> dummy</span> program and runs the <span style="font-weight:bold;">mail </span>command at 16:30 (4:30 p.m.) daily, Monday through Friday.</p>
<p class="pDefault"><a title="wp1024154" name="wp1024154"></a>  30 16 * * 1-5 <span style="font-weight:bold;">dummy</span> -u admin -p password <span style="font-weight:bold;">mail</span> -s &#8220;Cron job test&#8221; jason@example.com &gt;&gt; /users/admin/crontab.log 2&gt;&amp;1</p>
<p class="pDefault"><a title="wp1024164" name="wp1024164"></a>  When you schedule tasks in a crontab file, use these guidelines, entering data in the order presented:</p>
<p><a title="1024191" name="1024191"></a> 1. Schedule the time by defining the minutes after the hour first, then the hour of the day (in 24-hour time).</p>
<p><a title="1024201" name="1024201"></a> 2. Schedule the day or days within a month to perform the operation. Use an asterisk (*) to indicate everyday.</p>
<p><a title="1024208" name="1024208"></a> 3. Schedule the months of the year in which to perform the operation. Use an asterisk (*) to indicate every month.</p>
<p><a title="1024254" name="1024254"></a> 4. Schedule the weekdays on which to perform the operation; for example, to schedule the operation to run daily, Monday through Friday, enter 1-5.</p>
<p><a title="1024209" name="1024209"></a> 5. Enter the path for the application (dummy program).</p>
<p><a title="1024210" name="1024210"></a>  7. Enter valid options for dummy program. (e.g. -u admin -p password).</p>
<p><a title="1024212" name="1024212"></a> 8. Enter the command that you want to run.</p>
<p><a title="1024234" name="1024234"></a> 9. Redirect the output (both <span style="font-style:italic;">stdout</span> and<span style="font-style:italic;"> stderror</span>) to a logfile; for example, /users/admin/crontab.log 2&gt;&amp;1.</p>
<p><strong><font color="#ff0000">Note: </font></strong><span>      <strong><font color="#ff0000">If you do not redirect  the  standard  output  and  standard<br />
error  of your commands, any generated output or errors will<br />
be mailed to you.</font></strong></span></p>
<hr />
<table>
<tr valign="top">
<td><img src="http://www.cisco.com/univercd/illus/n/e3/note3.gif" /></td>
<td><strong>Note</strong>   Crontab entries are space sensitive and require the data to be written on a single line for each entry  you specify.</td>
</tr>
</table>
<hr />
<h2><a title="1024371" name="1024371"></a> <a title="76936" name="76936"></a><a title="1024371" name="1024371"></a>Creating or Changing a crontab File<a title="wp1024424" name="wp1024424"></a></h2>
<hr /> <strong>Step 1  </strong> Enter the<strong> crontab -e </strong>command at the system prompt. This command opens the current contents of the crontab file in the text editor you have defined in the environment variable $EDITOR.  A temporary file will be created by the text editor. <strong>Step 2 </strong>Change an existing <strong>crontab</strong> entry.<strong>Step 3  </strong> Add other <strong>crontab</strong> entries as desired.</p>
<p><strong>Step 4  </strong> Save the file and quit the editor. This returns the modified file to the <strong>cron</strong> spool area of the operating system.</p>
<p><strong>Step 5  </strong> Verify the crontab file by entering this command:</p>
<p style="color:#000000;font-family:Courier New,Courier,mono Courier New,Courier,mono;font-size:9.5pt;font-style:normal;font-variant:normal;font-weight:normal;margin-bottom:0;margin-right:0;margin-top:0;text-align:left;text-decoration:none;text-indent:0;text-transform:none;"><a title="wp1023675" name="wp1023675"></a>  $ <strong>crontab -l<br />
</strong></p>
<p class="pDefault"><a title="wp1023688" name="wp1023688"></a>  The system should display your crontab entries. Your crontab file is now ready to run at the times and days you defined.</p>
<hr />
<h2><a title="1023785" name="1023785"></a> <a title="54471" name="54471"></a><a title="1023785" name="1023785"></a>Example crontab File<a title="1024007" name="1024007"></a></h2>
<p class="pDefault"><a title="wp1023966" name="wp1023966"></a>  The following example crontab schedules several key tasks:</p>
<p style="color:#000000;font-family:Courier New,Courier,mono Courier New,Courier,mono;font-size:9.5pt;font-style:normal;font-variant:normal;font-weight:normal;margin-bottom:0;margin-right:0;margin-top:0;text-align:left;text-decoration:none;text-indent:0;text-transform:none;"><a title="wp1024511" name="wp1024511"></a>  #</p>
<p style="color:#000000;font-family:Courier New,Courier,mono Courier New,Courier,mono;font-size:9.5pt;font-style:normal;font-variant:normal;font-weight:normal;margin-bottom:0;margin-right:0;margin-top:0;text-align:left;text-decoration:none;text-indent:0;text-transform:none;"><a title="wp1024512" name="wp1024512"></a>  # cron entries</p>
<p style="color:#000000;font-family:Courier New,Courier,mono Courier New,Courier,mono;font-size:9.5pt;font-style:normal;font-variant:normal;font-weight:normal;margin-bottom:0;margin-right:0;margin-top:0;text-align:left;text-decoration:none;text-indent:0;text-transform:none;"><a title="wp1024513" name="wp1024513"></a>  #</p>
<p style="color:#000000;font-family:Courier New,Courier,mono Courier New,Courier,mono;font-size:9.5pt;font-style:normal;font-variant:normal;font-weight:normal;margin-bottom:0;margin-right:0;margin-top:0;text-align:left;text-decoration:none;text-indent:0;text-transform:none;"><a title="wp1024514" name="wp1024514"></a>  # run dummy and mail programs with logging every hour</p>
<p style="color:#000000;font-family:Courier New,Courier,mono Courier New,Courier,mono;font-size:9.5pt;font-style:normal;font-variant:normal;font-weight:normal;margin-bottom:0;margin-right:0;margin-top:0;text-align:left;text-decoration:none;text-indent:0;text-transform:none;"><a title="wp1024515" name="wp1024515"></a>  0 * * * * <span style="font-weight:bold;">dummy</span> -u admin -p password <span style="font-weight:bold;">mail</span> -s &#8220;Cron job test&#8221; jason@example.com &gt;&gt; /tmp/cron.log 2&gt;&amp;1</p>
<p style="color:#000000;font-family:Courier New,Courier,mono Courier New,Courier,mono;font-size:9.5pt;font-style:normal;font-variant:normal;font-weight:normal;margin-bottom:0;margin-right:0;margin-top:0;text-align:left;text-decoration:none;text-indent:0;text-transform:none;"><a title="wp1024516" name="wp1024516"></a>  #</p>
<p style="color:#000000;font-family:Courier New,Courier,mono Courier New,Courier,mono;font-size:9.5pt;font-style:normal;font-variant:normal;font-weight:normal;margin-bottom:0;margin-right:0;margin-top:0;text-align:left;text-decoration:none;text-indent:0;text-transform:none;"><a title="wp1024792" name="wp1024792"></a>  # run dummy and mail programs with logging at 12:15 am</p>
<p style="color:#000000;font-family:Courier New,Courier,mono Courier New,Courier,mono;font-size:9.5pt;font-style:normal;font-variant:normal;font-weight:normal;margin-bottom:0;margin-right:0;margin-top:0;text-align:left;text-decoration:none;text-indent:0;text-transform:none;"><a title="wp1024793" name="wp1024793"></a>  15 0 * * * <span style="font-weight:bold;">dummy</span> -u admin -p password <span style="font-weight:bold;">mail</span> -s &#8220;Cron job test&#8221; jason@example.com &gt;&gt; /tmp/cron.log 2&gt;&amp;1</p>
<p style="color:#000000;font-family:Courier New,Courier,mono Courier New,Courier,mono;font-size:9.5pt;font-style:normal;font-variant:normal;font-weight:normal;margin-bottom:0;margin-right:0;margin-top:0;text-align:left;text-decoration:none;text-indent:0;text-transform:none;"><a title="wp1024794" name="wp1024794"></a>  #</p>
<p style="color:#000000;font-family:Courier New,Courier,mono Courier New,Courier,mono;font-size:9.5pt;font-style:normal;font-variant:normal;font-weight:normal;margin-bottom:0;margin-right:0;margin-top:0;text-align:left;text-decoration:none;text-indent:0;text-transform:none;"><a title="wp1024808" name="wp1024808"></a>  # run dummy and mail programs with logging once a week on Sunday at 1:15am.</p>
<p style="color:#000000;font-family:Courier New,Courier,mono Courier New,Courier,mono;font-size:9.5pt;font-style:normal;font-variant:normal;font-weight:normal;margin-bottom:0;margin-right:0;margin-top:0;text-align:left;text-decoration:none;text-indent:0;text-transform:none;"><a title="wp1024809" name="wp1024809"></a>  15 1 * * 0 <span style="font-weight:bold;">dummy</span> -u admin -p password <span style="font-weight:bold;">mail</span> -s &#8220;Cron job test&#8221; jason@example.com &gt;&gt; /tmp/cron.log 2&gt;&amp;1</p>
<p style="color:#000000;font-family:Courier New,Courier,mono Courier New,Courier,mono;font-size:9.5pt;font-style:normal;font-variant:normal;font-weight:normal;margin-bottom:0;margin-right:0;margin-top:0;text-align:left;text-decoration:none;text-indent:0;text-transform:none;"><a title="wp1024810" name="wp1024810"></a>  #</p>
<p style="color:#000000;font-family:Courier New,Courier,mono Courier New,Courier,mono;font-size:9.5pt;font-style:normal;font-variant:normal;font-weight:normal;margin-bottom:0;margin-right:0;margin-top:0;text-align:left;text-decoration:none;text-indent:0;text-transform:none;"><a title="wp1024517" name="wp1024517"></a>  # run dummy and mail programs with logging every night at 2:15 am.</p>
<p style="color:#000000;font-family:Courier New,Courier,mono Courier New,Courier,mono;font-size:9.5pt;font-style:normal;font-variant:normal;font-weight:normal;margin-bottom:0;margin-right:0;margin-top:0;text-align:left;text-decoration:none;text-indent:0;text-transform:none;"><a title="wp1024519" name="wp1024519"></a> 15 2 * * * <span style="font-weight:bold;">dummy</span> -u admin -p password <span style="font-weight:bold;">mail</span> -s &#8220;Cron job test&#8221; jason@example.com &gt;&gt; /tmp/cron.log 2&gt;&amp;1</p>
<p style="color:#000000;font-family:Courier New,Courier,mono Courier New,Courier,mono;font-size:9.5pt;font-style:normal;font-variant:normal;font-weight:normal;margin-bottom:0;margin-right:0;margin-top:0;text-align:left;text-decoration:none;text-indent:0;text-transform:none;"><a title="wp1024520" name="wp1024520"></a>  #</p>
<p style="color:#000000;font-family:Courier New,Courier,mono Courier New,Courier,mono;font-size:9.5pt;font-style:normal;font-variant:normal;font-weight:normal;margin-bottom:0;margin-right:0;margin-top:0;text-align:left;text-decoration:none;text-indent:0;text-transform:none;"><a title="wp1024524" name="wp1024524"></a>  # run dummy and mail programs with logging once a week on Sunday at 3:15am</p>
<p style="color:#000000;font-family:Courier New,Courier,mono Courier New,Courier,mono;font-size:9.5pt;font-style:normal;font-variant:normal;font-weight:normal;margin-bottom:0;margin-right:0;margin-top:0;text-align:left;text-decoration:none;text-indent:0;text-transform:none;"><a title="wp1024525" name="wp1024525"></a>  15 3 * * 0 <span style="font-weight:bold;">dummy</span> -u admin -p password <span style="font-weight:bold;">mail</span> -s &#8220;Cron job test&#8221; jason@example.com &gt;&gt; /tmp/cron.log 2&gt;&amp;1</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/juslohtechblog.wordpress.com/15/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/juslohtechblog.wordpress.com/15/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/juslohtechblog.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/juslohtechblog.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/juslohtechblog.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/juslohtechblog.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/juslohtechblog.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/juslohtechblog.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/juslohtechblog.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/juslohtechblog.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/juslohtechblog.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/juslohtechblog.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/juslohtechblog.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/juslohtechblog.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/juslohtechblog.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/juslohtechblog.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=juslohtechblog.wordpress.com&amp;blog=1252759&amp;post=15&amp;subd=juslohtechblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://juslohtechblog.wordpress.com/2007/06/15/scheduling-tasks/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/90ad8d1694c2cf71f077be59d1036753?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jusloh</media:title>
		</media:content>

		<media:content url="http://www.cisco.com/univercd/illus/n/e3/note3.gif" medium="image" />
	</item>
		<item>
		<title>Running PHP Scripts with Cron</title>
		<link>http://juslohtechblog.wordpress.com/2007/06/15/running-php-scripts-with-cron/</link>
		<comments>http://juslohtechblog.wordpress.com/2007/06/15/running-php-scripts-with-cron/#comments</comments>
		<pubDate>Fri, 15 Jun 2007 03:58:00 +0000</pubDate>
		<dc:creator>jusloh</dc:creator>
				<category><![CDATA[PHP Articles]]></category>

		<guid isPermaLink="false">http://juslohtechblog.wordpress.com/2007/06/15/running-php-scripts-with-cron/</guid>
		<description><![CDATA[Tutorial Written By: Till Lots of programmers like PHP for its ability to code and develop web applications fast. Code-debugging is a lot easier than with PERL or C. However, there is one thing a lot of developers are puzzled about, &#8220;How to run PHP Scripts with crontab?&#8221; Cron is normally available on all Unix [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=juslohtechblog.wordpress.com&amp;blog=1252759&amp;post=12&amp;subd=juslohtechblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="color:#ff0000;font-size:78%;"></span><em>Tutorial Written By:     <a href="http://www.htmlcenter.com/authors/index.cfm?authors=Till">Till</a></em><br />
<!-- google_ad_section_start --><br />
Lots of programmers like PHP for its ability to code and develop web applications fast. Code-debugging is a lot easier than with PERL or C. However, there is one thing a lot of developers are puzzled about, &#8220;How to run PHP Scripts with crontab?&#8221;</p>
<p>Cron is normally available on all Unix and Linux distributions; if you cannot access it, contact your root or server administrator. It is a daemon which allows you to schedule a program or script for a specific time of execution. If you want to learn more about cron, <a href="http://uwsg.iu.edu/usail/automation/cron.html">click here</a> or type &#8220;man crontab&#8221; at your command prompt.</p>
<p>I have found myself in the need to run PHP scripts at specific times. For example, to update the content of a website, to remove expired articles, to send out e-mails on a given date and a lot more. While some may think that this is were PHP is doomed, I will show you how it&#8217;s done.</p>
<h2>A Manual crontab?</h2>
<p>The first solution that came to my mind was to run the script directly from my browser (e.g. http://www.mydomain.com/script.php). Since I need to run my script on a regular basis, I squashed that idea. My goodness, all the extra hassle is ridiculous.</p>
<h2>An include?</h2>
<p>Another possible solution is to include the script in one of the pages of the site, for example the very first: &#8220;index.php&#8221;. ()</p>
<p>The drawbacks to this solution are, that it works but when someone accesses the &#8220;index.php&#8221;. This could cause a lot of extra overhead produced by the script. If you get a lot of traffic, the script is executed 1000 times a day and adds a lot of usage on the database and the server.<br />
On the other hand, if you do not get a lot of traffic, or people tend to access your site over another file, this will not work out as well. If you need to run the script on a regular intervals, this is not a solution.</p>
<h2>Crontab!</h2>
<p>Let&#8217;s suppose you either know what cron is or have read about it using the link above. We want to run our script once a minute. So where do we go from here? Here is how you can accomplish this task.</p>
<h2>Your PHP setup</h2>
<p>You will need to find out the answer to the following question, &#8220;Is my PHP installed as CGI or as an Apache module?&#8221;. To find out do the following: Create a new file, name it info.php (just an example), and put in the following code, &#8220;&#8221;. Upload to your webserver and go to it with your browser.</p>
<p>Now check for Server API (4th item from the top), if it says &#8220;CGI&#8221;, you have PHP compiled as CGI, if it reads &#8220;Apache&#8221;, you have it running as an Apache module.</p>
<h2>Compiled CGI</h2>
<p>If the answer to the question above is &#8220;CGI&#8221; then you need to add a line to your PHP script. It has to be the first line of your script and must contain your server&#8217;s PHP executable location:</p>
<p class="examplecode">
<pre><code>#!/usr/local/bin/php -q</code></pre>
<p>That looks a lot like PERL now, doesn&#8217;t it? After that let&#8217;s add the necessary command to our crontab. Edit /etc/crontab and add the following line:</p>
<p class="examplecode">
<pre><code>* * * * * php /path/to/your/cron.php</code></pre>
<p>Execute the following from the command line:</p>
<p class="examplecode">
<pre><code>Shell&gt; crontab crontab</code></pre>
<p>Be sure your &#8220;script.php&#8221; has the necessary permissions to be executable (&#8220;chmod 755 script.php&#8221;).  Now you are all set!</p>
<h2>Apache module</h2>
<p>If your PHP is installed using the Apache module, the approach is a little different. First, you need access to Lynx (<a href="http://lynx.isc.org/lynx2.8.5/index.html">Lynx Browser</a> for more information). Lynx is a small web browser, generally available on Unix and Linux. Running your PHP script will not require you to add any additional lines. You simply have to edit your /etc/crontab file and add the following line:</p>
<p class="examplecode">
<pre><code>* * * * * lynx -dump http://www.somedomain.com/cron.php</code></pre>
<p>Please note that in general, you have to specify the entire URL (with &#8220;http://&#8221; and so on). But depending on your Lynx&#8217;s configuration, the URL might be relative; I suggest always using the absolute reference as in my example above &#8211; it always works. Again execute the following from the command line:</p>
<p class="examplecode">
<pre><code>Shell&gt; crontab crontab</code></pre>
<p>That all it takes to get a cron job setup using PHP. Hope you have learned something new and will use it to save overhead time on the server and on the developer.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/juslohtechblog.wordpress.com/12/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/juslohtechblog.wordpress.com/12/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/juslohtechblog.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/juslohtechblog.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/juslohtechblog.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/juslohtechblog.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/juslohtechblog.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/juslohtechblog.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/juslohtechblog.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/juslohtechblog.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/juslohtechblog.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/juslohtechblog.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/juslohtechblog.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/juslohtechblog.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/juslohtechblog.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/juslohtechblog.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=juslohtechblog.wordpress.com&amp;blog=1252759&amp;post=12&amp;subd=juslohtechblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://juslohtechblog.wordpress.com/2007/06/15/running-php-scripts-with-cron/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/90ad8d1694c2cf71f077be59d1036753?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jusloh</media:title>
		</media:content>
	</item>
		<item>
		<title>Apache Tutorial: .htaccess files &#8211; Apache HTTP Server</title>
		<link>http://juslohtechblog.wordpress.com/2007/06/14/apache-tutorial-htaccess-files-apache-http-server/</link>
		<comments>http://juslohtechblog.wordpress.com/2007/06/14/apache-tutorial-htaccess-files-apache-http-server/#comments</comments>
		<pubDate>Thu, 14 Jun 2007 05:51:00 +0000</pubDate>
		<dc:creator>jusloh</dc:creator>
				<category><![CDATA[Apache]]></category>

		<guid isPermaLink="false">http://juslohtechblog.wordpress.com/2007/06/14/apache-tutorial-htaccess-files-apache-http-server/</guid>
		<description><![CDATA[Apache Tutorial: .htaccess files &#8211; Apache HTTP Server This tutorial gives an insight into using the various commands used in in .htaccess file and httpd.conf file which are used to configure access control to files and directories.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=juslohtechblog.wordpress.com&amp;blog=1252759&amp;post=14&amp;subd=juslohtechblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://httpd.apache.org/docs/2.0/howto/htaccess.html">Apache Tutorial: .htaccess files &#8211; Apache HTTP Server</a></p>
<p>This tutorial gives an insight into using the various commands used in in .htaccess file and httpd.conf file which are used to configure access control to files and directories.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/juslohtechblog.wordpress.com/14/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/juslohtechblog.wordpress.com/14/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/juslohtechblog.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/juslohtechblog.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/juslohtechblog.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/juslohtechblog.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/juslohtechblog.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/juslohtechblog.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/juslohtechblog.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/juslohtechblog.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/juslohtechblog.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/juslohtechblog.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/juslohtechblog.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/juslohtechblog.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/juslohtechblog.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/juslohtechblog.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=juslohtechblog.wordpress.com&amp;blog=1252759&amp;post=14&amp;subd=juslohtechblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://juslohtechblog.wordpress.com/2007/06/14/apache-tutorial-htaccess-files-apache-http-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/90ad8d1694c2cf71f077be59d1036753?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jusloh</media:title>
		</media:content>
	</item>
		<item>
		<title>enabling mod rewrite in xampp</title>
		<link>http://juslohtechblog.wordpress.com/2007/06/13/enabling-mod-rewrite-in-xampp/</link>
		<comments>http://juslohtechblog.wordpress.com/2007/06/13/enabling-mod-rewrite-in-xampp/#comments</comments>
		<pubDate>Wed, 13 Jun 2007 13:56:00 +0000</pubDate>
		<dc:creator>jusloh</dc:creator>
				<category><![CDATA[PHP Articles]]></category>

		<guid isPermaLink="false">http://juslohtechblog.wordpress.com/2007/06/13/enabling-mod-rewrite-in-xampp/</guid>
		<description><![CDATA[To enable mod_rewrite in xampp first go to the directory of installation \apache\conf and edit httpd.conf. Find the line which contains#LoadModule rewrite_module modules/mod_rewrite.souncomment this(should be): LoadModule rewrite_module modules/mod_rewrite.so Also find AllowOverride None Should be: AllowOverride All I really think it appears 2 or 3 times on the configuration file.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=juslohtechblog.wordpress.com&amp;blog=1252759&amp;post=13&amp;subd=juslohtechblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>To enable mod_rewrite in xampp first go to the directory of installation <b>\apache\conf</b>  and edit <b>httpd.conf</b>. Find the line which contains<br />#LoadModule rewrite_module modules/mod_rewrite.so<br />uncomment this(should be):</p>
<p>LoadModule rewrite_module modules/mod_rewrite.so</p>
<p>Also find <u>AllowOverride None </u></p>
<p>Should be:</p>
<p>AllowOverride All</p>
<p>I really think it appears 2 or 3 times on the configuration file.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/juslohtechblog.wordpress.com/13/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/juslohtechblog.wordpress.com/13/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/juslohtechblog.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/juslohtechblog.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/juslohtechblog.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/juslohtechblog.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/juslohtechblog.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/juslohtechblog.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/juslohtechblog.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/juslohtechblog.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/juslohtechblog.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/juslohtechblog.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/juslohtechblog.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/juslohtechblog.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/juslohtechblog.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/juslohtechblog.wordpress.com/13/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=juslohtechblog.wordpress.com&amp;blog=1252759&amp;post=13&amp;subd=juslohtechblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://juslohtechblog.wordpress.com/2007/06/13/enabling-mod-rewrite-in-xampp/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/90ad8d1694c2cf71f077be59d1036753?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jusloh</media:title>
		</media:content>
	</item>
		<item>
		<title>XOOPS Site &#8211; Installing PHP Debugger For PHPeclipse</title>
		<link>http://juslohtechblog.wordpress.com/2007/06/13/xoops-site-installing-php-debugger-for-phpeclipse/</link>
		<comments>http://juslohtechblog.wordpress.com/2007/06/13/xoops-site-installing-php-debugger-for-phpeclipse/#comments</comments>
		<pubDate>Wed, 13 Jun 2007 09:38:00 +0000</pubDate>
		<dc:creator>jusloh</dc:creator>
				<category><![CDATA[PHP Articles]]></category>

		<guid isPermaLink="false">http://juslohtechblog.wordpress.com/2007/06/13/xoops-site-installing-php-debugger-for-phpeclipse/</guid>
		<description><![CDATA[XOOPS Site &#8211; Installing PHP Debugger For PHPeclipse This site gives the instructions for installing DBG debugger engine for use in PHPeclipse. I managed to get PHPeclipse(a.k.a Eclipse PHP Development Tools) debugging working with the instructions but the phpinfo did not display the information on DBG.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=juslohtechblog.wordpress.com&amp;blog=1252759&amp;post=11&amp;subd=juslohtechblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://docs.schuetzengau-freising.de/modules/xdocman/manual.php?lang=en&amp;doc=xo-002&amp;file=ch01s05.html">XOOPS Site &#8211; Installing PHP Debugger For PHPeclipse</a></p>
<p>This site gives the instructions for installing DBG debugger engine for use in PHPeclipse. I managed to get PHPeclipse(a.k.a Eclipse PHP Development Tools) debugging working with the instructions but the phpinfo did not display the information on DBG.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/juslohtechblog.wordpress.com/11/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/juslohtechblog.wordpress.com/11/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/juslohtechblog.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/juslohtechblog.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/juslohtechblog.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/juslohtechblog.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/juslohtechblog.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/juslohtechblog.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/juslohtechblog.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/juslohtechblog.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/juslohtechblog.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/juslohtechblog.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/juslohtechblog.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/juslohtechblog.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/juslohtechblog.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/juslohtechblog.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=juslohtechblog.wordpress.com&amp;blog=1252759&amp;post=11&amp;subd=juslohtechblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://juslohtechblog.wordpress.com/2007/06/13/xoops-site-installing-php-debugger-for-phpeclipse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/90ad8d1694c2cf71f077be59d1036753?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jusloh</media:title>
		</media:content>
	</item>
	</channel>
</rss>
