<?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>SulhanSetiawan.com</title>
	<atom:link href="http://www.sulhansetiawan.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.sulhansetiawan.com</link>
	<description></description>
	<lastBuildDate>Wed, 18 Apr 2012 06:23:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Driving Relay from Parallel Port (LPT)</title>
		<link>http://www.sulhansetiawan.com/relay-lewat-lpt</link>
		<comments>http://www.sulhansetiawan.com/relay-lewat-lpt#comments</comments>
		<pubDate>Sun, 15 Apr 2012 00:03:11 +0000</pubDate>
		<dc:creator>Sulhan</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[Delphi - Lazarus]]></category>
		<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.sulhansetiawan.com/?p=1252</guid>
		<description><![CDATA[Driving relay from parallel port (LPT) using Delphi or Lazarus component]]></description>
			<content:encoded><![CDATA[<p>Sorry, this entry is only available in <a href="http://www.sulhansetiawan.com/id/feed">Indonesia</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sulhansetiawan.com/relay-lewat-lpt/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Drive Paralel Port</title>
		<link>http://www.sulhansetiawan.com/pengendalian-lpt</link>
		<comments>http://www.sulhansetiawan.com/pengendalian-lpt#comments</comments>
		<pubDate>Sat, 14 Apr 2012 23:16:33 +0000</pubDate>
		<dc:creator>Sulhan</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[Delphi - Lazarus]]></category>
		<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.sulhansetiawan.com/?p=1250</guid>
		<description><![CDATA[How to drive paralell port using Delphi or Lazarus component]]></description>
			<content:encoded><![CDATA[<p>Sorry, this entry is only available in <a href="http://www.sulhansetiawan.com/id/feed">Indonesia</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sulhansetiawan.com/pengendalian-lpt/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Mouse Move Simulation</title>
		<link>http://www.sulhansetiawan.com/simulasi-gerakan-mouse</link>
		<comments>http://www.sulhansetiawan.com/simulasi-gerakan-mouse#comments</comments>
		<pubDate>Tue, 07 Feb 2012 17:04:15 +0000</pubDate>
		<dc:creator>Sulhan</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[Delphi - Lazarus]]></category>
		<category><![CDATA[FREE! Software]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[System]]></category>
		<category><![CDATA[Dragons of Atlantis]]></category>
		<category><![CDATA[Game]]></category>

		<guid isPermaLink="false">http://www.sulhansetiawan.com/?p=1244</guid>
		<description><![CDATA[Lately I love to play the Dragons of Altantis game on Facebook. Firstly I play just for a whim, but gradually become excited. But there are things that sucks from this game, that we should wasting time just to play this game.
We can only do a job in once upon a time. And the job [...]]]></description>
			<content:encoded><![CDATA[<div id="window" class="wp-caption aligncenter" style="width: 485px"><a href="http://resource.sulhansetiawan.com/img/DragonsOfAtlantis.jpg"><img class=" " title="Dragons of Atlantis" src="http://resource.sulhansetiawan.com/img/DragonsOfAtlantis.jpg" alt="Dragons of Atlantis" width="475" height="500" /></a><p class="wp-caption-text">Dragons of Atlantis</p></div>
<p>Lately I love to play the Dragons of Altantis game on Facebook. Firstly I play just for a whim, but gradually become excited. But there are things that sucks from this game, that we should wasting time just to play this game.</p>
<p>We can only do a job in once upon a time. And the job sometimes takes so long until many hours. Unfortunately, if we leave the computer for too long, then this game will require attention from us. So, this game is actually designed to waste our time in vain.</p>
<p>As a programmer, I think there might be a way to trick this game, so the game was thought that we still play this game, but it is actually a program that we run that play it. While we actually are leaving our computer to do other things.</p>
<p>The first idea that appears is to make a program to move the mouse pointer. I plan to make software that moves the mouse in circle. First moves to the right, then down, then to the left, and the last is upwards back to the starting position. Thus, the mouse pointer will continue moving without end until we stop the action of this software.</p>
<p>To be able to move the mouse, first we need to know the position of the mouse pointer. Function to find the position of the mouse pointer is</p>
<pre>GetCursorPos(pt);</pre>
<p>pt is a variable of TPoint type.</p>
<p>After we got the pointer position, then we can move the pointer in the following way:</p>
<ul>
<li>To move to the right, then we add the value of X</li>
<li>To move down, then we add the value of Y</li>
<li>To move to the left, then we subtract the value of X</li>
<li>To move to the top, then we subtract the value of Y</li>
</ul>
<p>The last step is putting the position of the pointer to the position that we modify in a manner above. Function to place the position of the mouse pointer is</p>
<pre>SetCursorPos(pt.x,pt.y);</pre>
<p>In order to make the mouse pointer moves in accordance with the above plan, then I create a variable that I use to determine the direction of motion of the mouse. I named this variable PosX. Then I must also determine how large the movement. To simplify the design, I determined that the horizontal and vertical movement size are equal. I determine this size using variable named SQSize.</p>
<p>Using these two variables, we can determine the direction of motion by dividing PosX with SQSize. If the result is 0, then the movement is to the right, if 1 is downward, if 2is to the left, if 3 is upward, and if it is 4, then this shows that one period of the movement have been exceeded. Therefore, if the result is 4, beside we move the mouse pointer to the right, we also returns to the value of PosX to the starting position again.</p>
<p>The entire process above can be conducted with a procedure such as the following:</p>
<pre>
<b>procedure</b> MoveMousePointer;
<b>var</b> pt:TPoint;
<b>begin</b>
  GetCursorPos(pt);
  case(PosX div SQSize)of
    0:<b>begin</b>
        inc(pt.x);
        inc(PosX)
      <b>end</b>;
    1:<b>begin</b>
        inc(pt.y);
        inc(PosX)
      <b>end</b>;
    2:<b>begin</b>
        dec(pt.x);
        inc(PosX)
      <b>end</b>;
    3:<b>begin</b>
        dec(pt.y);
        inc(PosX)
      <b>end</b>;
    4:<b>begin</b>
        inc(pt.x);
        PosX:=1;
      <b>end</b>;
  <b>end</b>;
  SetCursorPos(pt.x,pt.y);
<b>end</b>;
</pre>
<p>The procedure MoveMousePointer then called every certain interval using the timer.</p>
<div id="window" class="wp-caption aligncenter" style="width: 485px"><a href="http://resource.sulhansetiawan.com/img/dragons-mousemove.jpg"><img class=" " title="Mouse pointer is moved by software" src="http://resource.sulhansetiawan.com/img/dragons-mousemove.jpg" alt="Mouse pointer is moved by software" width="475" height="500" /></a><p class="wp-caption-text">Mouse pointer is moved by software</p></div>
<p>This way is of course not the only trick. But we can at least use the problems we face as a medium for learning.</p>
<p>If you just want to use this software, you can download software that I name it <a href="http://resource.sulhansetiawan.com/software/MoveMouse.7z">MoveMouse.exe</a> which is compiled using Lazarus. Whereas if you are also interested to learn how the software is set up, you can download <a href="http://resource.sulhansetiawan.com/source/SourceMoveMouse.7z">source</a> that you can compile it using Delphi or Lazarus.</p>
<p>I love the small size software. Therefore, I form this software without VCL (Delphi) or LCL (Lazarus), but only using Windows API.</p>
<div id="download" class="wp-caption aligncenter" style="width: 97px"><a href="http://resource.sulhansetiawan.com/software/MoveMouse.7z"><img class="  " title="MoveMouse.exe" src="http://resource.sulhansetiawan.com/img/download.gif" alt="MoveMouse.exe" width="87" height="30" /></a><p class="wp-caption-text">MoveMouse.exe</p></div> <div id="download" class="wp-caption aligncenter" style="width: 97px"><a href="http://resource.sulhansetiawan.com/source/SourceMoveMouse.7z"><img class="  " title="Source" src="http://resource.sulhansetiawan.com/img/download.gif" alt="Source" width="87" height="30" /></a><p class="wp-caption-text">Source</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.sulhansetiawan.com/simulasi-gerakan-mouse/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>MXLED &#8211; LED Matrix Simulator</title>
		<link>http://www.sulhansetiawan.com/mxled</link>
		<comments>http://www.sulhansetiawan.com/mxled#comments</comments>
		<pubDate>Sat, 04 Feb 2012 14:16:04 +0000</pubDate>
		<dc:creator>Sulhan</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[Microcontroller]]></category>
		<category><![CDATA[Simulator]]></category>
		<category><![CDATA[LED matrix]]></category>
		<category><![CDATA[Moving Sign]]></category>
		<category><![CDATA[Simulation]]></category>

		<guid isPermaLink="false">http://sulhansetiawan.com/?p=1127</guid>
		<description><![CDATA[MXLED version 1.6
MXLED is a simulation of the LED matrix that can be used with a microcontroller simulator on Micro .exe. With MXLED, the system design of LED matrix, commonly referred to as Running Text, or many also call it Moving Sign, be more easily implemented.
MXLED on this version provides the size up to 200 [...]]]></description>
			<content:encoded><![CDATA[<h3>MXLED version 1.6</h3>
<div id="window" class="wp-caption aligncenter" style="width: 508px"><a href="http://resource.sulhansetiawan.com/img/MXLED.1.6.jpg"><img class=" " title="MXLED.exe" src="http://resource.sulhansetiawan.com/img/MXLED.1.6.jpg" alt="MXLED.exe" width="498" height="158" /></a><p class="wp-caption-text">MXLED.exe</p></div>
<p>MXLED is a simulation of the LED matrix that can be used with a microcontroller simulator on <a href="http://www.sulhansetiawan.com/en/microcontroller-project">Micro .exe</a>. With MXLED, the system design of LED matrix, commonly referred to as Running Text, or many also call it Moving Sign, be more easily implemented.</p>
<p>MXLED on this version provides the size up to 200 columns x 80 lines. With this size, we can perform simulations for the LED matrix which suffice to needs that more real.</p>
<p>Enlarge the size of the matrix on this version is done by reducing the size of the LED to be only of 10 x 10 pixels. However, if we use monitors with size 1360 x 768, then size that can be displayed only about 135 columns x 64 lines.</p>
<div id="download" class="wp-caption aligncenter" style="width: 97px"><a href="http://resource.sulhansetiawan.com/mikrokontroler/MXLED.7z"><img class="  " title="MXLED" src="http://resource.sulhansetiawan.com/img/download.gif" alt="MXLED" width="87" height="30" /></a><p class="wp-caption-text">MXLED</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.sulhansetiawan.com/mxled/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Facebook Like And Comment</title>
		<link>http://www.sulhansetiawan.com/fblike-comment</link>
		<comments>http://www.sulhansetiawan.com/fblike-comment#comments</comments>
		<pubDate>Tue, 15 Nov 2011 10:49:05 +0000</pubDate>
		<dc:creator>Sulhan</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[Social Plugins]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.sulhansetiawan.com/?p=1220</guid>
		<description><![CDATA[Facebook Like And Comment add like/recommend button, also send button, and optionally use facebook comment instead of wordpress comment for your wordpress site.]]></description>
			<content:encoded><![CDATA[<p><span style='display:none'>How to add the Facebook Like button on Website. </span>Facebook Like And Comment add like/recommend button, also send button, and optionally use facebook comment instead of wordpress comment for your wordpress site.</p>
<p><span style='display:none'>The Facebook Like button plugin on Wordpress. </span>Each post or page will has Like/Recommend  button bellow post content. When visitor click on this button, the specified image will be shown on visitor&#8217;s facebook wall, the title of the post and its excerpt.</p>
<div class="wp-caption aligncenter" style="width: 410px"><a href="http://resource.sulhansetiawan.com/img/facebook-like.jpg"><img title="Facebook Like" src="http://resource.sulhansetiawan.com/img/facebook-like.jpg" alt="Facebook Like" width="400" height="220" /></a><p class="wp-caption-text">Facebook Like</p></div>
<p><span style='display:none'>How to add Facebook Comments on Website. </span>If you want, you may use facebook comment instead of standard wordpress comment.</p>
<div class="wp-caption aligncenter" style="width: 410px"><a href="http://resource.sulhansetiawan.com/img/wordpress-comment.jpg"><img title="Original Wordpress Comment" src="http://resource.sulhansetiawan.com/img/wordpress-comment.jpg" alt="Original Wordpress Comment" width="400" height="439" /></a><p class="wp-caption-text">Original Wordpress Comment</p></div>
<p><span style='display:none'>Plugin to add Facebook Comments on Wordpress. </span>Original Wordpress comments will be replaced by Facebook comments.</p>
<div class="wp-caption aligncenter" style="width: 410px"><a href="http://resource.sulhansetiawan.com/img/facebook-comment.jpg"><img title="Facebook Comment" src="http://resource.sulhansetiawan.com/img/facebook-comment.jpg" alt="Facebook Comment" width="400" height="382" /></a><p class="wp-caption-text">Facebook Comment</p></div>
<p>Every time a new facebook comment added, you will be notified through admin email. So you can soon approve or ban the comment.</p>
<p><span style='display:none'>SEO Boost with Facebook Comments on your Website. </span>The facebook comment is actually an iframe. So, search engine will not crawl the comment inside it. To evercome this, the plugin will read it and cache it, then include it inside each post behind the facebook comment, so search engine will crawl it but will not affect the appearance. This is for the SEO sake.</p>
<div id="download" class="wp-caption aligncenter" style="width: 135px"><a href="http://wordpress.org/extend/plugins/facebook-like-and-comment/"><img title="Facebook Like And Comment" src="http://resource.sulhansetiawan.com/img/download.gif" alt="Facebook Like And Comment" width="87" height="30" /></a><p class="wp-caption-text">Facebook Like And Comment</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.sulhansetiawan.com/fblike-comment/feed</wfw:commentRss>
		<slash:comments>30</slash:comments>
		</item>
		<item>
		<title>Simple Serial Downloader for AT89S51/AT89S52</title>
		<link>http://www.sulhansetiawan.com/sdownldr</link>
		<comments>http://www.sulhansetiawan.com/sdownldr#comments</comments>
		<pubDate>Sat, 12 Nov 2011 09:51:14 +0000</pubDate>
		<dc:creator>Sulhan</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[Development Tools]]></category>
		<category><![CDATA[IDE (Integrated Development Environment)]]></category>
		<category><![CDATA[Microcontroller]]></category>
		<category><![CDATA[Microcontroller IDE]]></category>
		<category><![CDATA[Serial Downloader]]></category>
		<category><![CDATA[FREE! Software]]></category>

		<guid isPermaLink="false">http://www.sulhansetiawan.com/?p=1217</guid>
		<description><![CDATA[The simplest serial downloader. SDownldr.exe is a software to program a AT89S51/AT89S52 serially through the parallel port. This Software is included in the Microcontroller Project
Circuit diagram for this ISP downloader is as follow:
The Serial Downloader circuit above using the power supply from the parallel port. However, not all parallel port capable of providing enough current [...]]]></description>
			<content:encoded><![CDATA[<p><span style="display:none">The simplest serial downloader. </span>SDownldr.exe is a software to program a AT89S51/AT89S52 serially through the parallel port. This Software is included in the <a href="http://www.sulhansetiawan.com/microcontroller-project">Microcontroller Project</a></p>
<div id="window" class="wp-caption aligncenter" style="width: 438px"><a href="http://resource.sulhansetiawan.com/img/SerialDownloader.PNG"><img class=" " title="SDownldr.exe" src="http://resource.sulhansetiawan.com/img/SerialDownloader.PNG" alt="SDownldr.exe" width="428" height="275" /></a><p class="wp-caption-text">SDownldr.exe</p></div>
<p>Circuit diagram for this ISP downloader is as follow:</p>
<div id="diagram" class="wp-caption aligncenter" style="width: 391px"><a href="http://resource.sulhansetiawan.com/img/SerialDownloaderCircuit.PNG"><img class=" " title="ISP downloader circuit diagram" src="http://resource.sulhansetiawan.com/img/SerialDownloaderCircuit.PNG" alt="ISP downloader circuit diagram" width="381" height="407" /></a><p class="wp-caption-text">ISP downloader circuit diagram</p></div>
<p>The Serial Downloader circuit above using the power supply from the parallel port. However, not all parallel port capable of providing enough current for this purpose. If Your parallel port is not strong enough for this purpose, then you must provide a + 5V power supply for this circuit.</p>
<p>If the program is run from the IDE, then all the settings will be performed by the IDE. Whereas if it is executed as a standalone program, then the settings are as follows:</p>
<ul>
<li style="text-align: justify;"><strong>Default Hex File</strong><br />
If you are using the <a href="http://www.sulhansetiawan.com/microcontroller-project">&#8220;Microcontroller Poject&#8221;</a> IDE, so whenever performed a successful compilation, a hex file is created in the temp directory, i.e. TMPFILE.HEX. If the &#8220;Default Hex File&#8221; is checked, then the file will be sent if the Send button is clicked is the hex file of successful compilation result. Keep in mind that the hex file will exist only if the IDE is still running.<br />
If &#8220;Default Hex Files&#8221; is not checked, then you can determine which files will be sent by clicking on the Browse button.</li>
<li style="text-align: justify;"><strong>Send</strong><br />
Use this button to start sending the specified hex file.</li>
<li style="text-align: justify;"><strong>Read</strong><br />
Use this button to read the code on the chip. The reading will only succeed if the chip has not been locked.</li>
<li style="text-align: justify;"><strong>Lock</strong><br />
Use this button to lock the chip so that the code on the chip cannot be read again.</li>
<li style="text-align: justify;"><strong>Port</strong><br />
Select the appropriate port address for the port being used. Parallel port usually placed on the address 378H.</li>
<li style="text-align: justify;"><strong>Auto Lock</strong><br />
If checked, then after sending the data is complete and after verification, the chip will be locked automatically.</li>
<li style="text-align: justify;"><strong>Browse</strong><br />
Use this button to choose a hex file will be sent. This button will only be active if the &#8220;Default Hex Files&#8221; is not a check.</li>
<li style="text-align: justify;"><strong>Read data count</strong><br />
Used to determine the amount of data to be read if the Read button is clicked. It could use a decimal number or hexadesimal, i.e. if the &#8220;Hex&#8221; is checked.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.sulhansetiawan.com/sdownldr/feed</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>How to Get The Book by Sulhan Setiawan</title>
		<link>http://www.sulhansetiawan.com/cara-mendapatkan-buku-karya-sulhan-setiawan</link>
		<comments>http://www.sulhansetiawan.com/cara-mendapatkan-buku-karya-sulhan-setiawan#comments</comments>
		<pubDate>Sun, 21 Aug 2011 01:21:19 +0000</pubDate>
		<dc:creator>Sulhan</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[Sulhan Setiawan's Books]]></category>

		<guid isPermaLink="false">http://sulhansetiawan.com/?p=1179</guid>
		<description><![CDATA[Want to get a book by Sulhan Setiawan, but can not find it in bookstores?
Try to get it through online bookstores. Or you can also directly order from website&#8217;s publisher by register first, then do a search for books by name authors, namely Sulhan Setiawan.

]]></description>
			<content:encoded><![CDATA[<p>Want to get a book by Sulhan Setiawan, but can not find it in bookstores?</p>
<p>Try to get it through online bookstores. Or you can also directly order from <a title="Andi Publisher Jogjakarta" href="http://www.andipublisher.com/" target="_blank">website&#8217;s publisher</a> by register first, then do a search for books by name authors, namely Sulhan Setiawan.</p>
<hr />
]]></content:encoded>
			<wfw:commentRss>http://www.sulhansetiawan.com/cara-mendapatkan-buku-karya-sulhan-setiawan/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Convert Any File Into JGP Format</title>
		<link>http://www.sulhansetiawan.com/mengubah-file-menjadi-bentuk-jpg</link>
		<comments>http://www.sulhansetiawan.com/mengubah-file-menjadi-bentuk-jpg#comments</comments>
		<pubDate>Sat, 06 Aug 2011 14:21:29 +0000</pubDate>
		<dc:creator>Sulhan</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[File Management]]></category>
		<category><![CDATA[Imaging]]></category>
		<category><![CDATA[Image]]></category>
		<category><![CDATA[FREE! Software]]></category>

		<guid isPermaLink="false">http://sulhansetiawan.com/?p=1140</guid>
		<description><![CDATA[Now a lot of places that we can use to leave the file on the internet. From the complicated to the simple rules. Unfortunately, with the easy rules, only allow us to leave the file in a specific format, for example, doc, xls, pdf, jpg, png, and so on. And usually will prohibit us to [...]]]></description>
			<content:encoded><![CDATA[<p>Now a lot of places that we can use to leave the file on the internet. From the complicated to the simple rules. Unfortunately, with the easy rules, only allow us to leave the file in a specific format, for example, doc, xls, pdf, jpg, png, and so on. And usually will prohibit us to leave the zip file exe file especially. While the file hosting that allows us to host any file, is usually has very complicated rules. Of which must wait until bored, before you can download, to which must be successfully taken away the download process at a time. Can not be paused and resumed .</p>
<p>Well, to overcome this problem, we can create a camouflage for the files that we want to host to a jpg format. Thus, hosting file will assume the file that we upload as a jpg file</p>
<p>Actually, to make the camouflage is very easy. All We need to do is add a jpg file with a small size on the front of the file that we want to change. Then, to get back the original file, we simply discard the jpg part on the font of the file.</p>
<p>To add a jpg file to the front of a file, we can do it with the copy command from the Command Prompt. However, to remove the jpg is more difficult. First we must remember well the size of jpg files that have been added. Then open the jpg file imitation using notepad + +. Blocks the early part of the file size of jpg files that have been added. After that, delete the part that is blocked. Finally, save the file with its original file extension.</p>
<p>Well, if we want a more simple, try to download a tool that I created to facilitate these processes. I named this tool <a href="http://sulhansetiawan.com/software/JpgMaker.exe"><b><blink>JpgMaker</blink></b></a>. With this tool, you simply right-click on the file which we will turn into a jpg, then from the popup menu that appears, select <b>Make JPG image</b> . Meanwhile, to return to its original form, we simply right click on the jpg file imitation, then select <b>Extract fom jpg</b>. It is easy <img src='http://www.sulhansetiawan.com/wp-includes/images/smilies/icon_exclaim.gif' alt=':!:' class='wp-smiley' />  </p>
<p>Enjoy how to host files with ease</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sulhansetiawan.com/mengubah-file-menjadi-bentuk-jpg/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Redirect without changing the address in the address bar</title>
		<link>http://www.sulhansetiawan.com/redireksi-tanpa-mengubah-alamat-pada-address-bar</link>
		<comments>http://www.sulhansetiawan.com/redireksi-tanpa-mengubah-alamat-pada-address-bar#comments</comments>
		<pubDate>Thu, 07 Jul 2011 15:41:52 +0000</pubDate>
		<dc:creator>Sulhan</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Web Programming]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://sulhansetiawan.com/?p=1126</guid>
		<description><![CDATA[

Redirect is the process of transferring the url address to another address. For example, you can type http://www.example1.com but when you hit enter, the page that appears is a page on http://www.example2.com.
The transfer of the above can be done in various ways, eg by javascript:
&#60;script type="text/javascript"&#62;
location.replace("http://www.example2.com");
&#60;/script&#62;

If the script above is placed on index.html in http://www.example1.com, [...]]]></description>
			<content:encoded><![CDATA[<div class="wp-caption aligncenter" style="width: 468px"><a href="https://masterkey.masterweb.net/aff.php?aff=7206"><img src="http://id.masterweb.net/images/banner/468X60/banner_468X60_abu_start5000.gif" title="Web Hosting murah. Mulai dari Rp.950,-/bulan dengan trafic unlimited"/></a></div>
</p>
<p>Redirect is the process of transferring the url address to another address. For example, you can type http://www.example1.com but when you hit enter, the page that appears is a page on http://www.example2.com.</p>
<p>The transfer of the above can be done in various ways, eg by javascript:</p>
<pre>&lt;script type="text/javascript"&gt;
location.replace("http://www.example2.com");
&lt;/script&gt;
</pre>
<p>If the script above is placed on index.html in http://www.example1.com, then the page displayed in the browser will be replaced with the contents of http://www.example2.com.</p>
<p>Biside the replacement of the display in the browser, the address displayed in the address bar will also be replaced with a new address. There are times when things like this are desirable. But in other cases, we may not want visitors to our website know that the page displayed is not derived from the address he was typing in the address bar.</p>
<p>Examples which may make sense to do is as follows. That we have multiple domains, say 3 domain. Everything is set up using WordPress CMS. Size of wordpress is approximately 10MB . Thus, you should hire a hosting that size should be larger than 10MB. So at least you should use a hosting with a capacity of 50M for example. Capacity is usually defined in certain sizes. So even if coupled with the size of the database to its contents need only 15MB, but this size may be not available.</p>
<p>Without the redirection, you have to hire 3 x hosting 50MB even though you only need 3 x 15MB. But with the redirection, you just need to hire a hosting with a capacity of 50MB, while the other two simply by the size of not more than 10KB. There are some providers that provide the very small capacity with a very low cost, so that we can think of for free. This service is usually given to people who already have a domain, but have not had time to build it. So he only need to show such as &#8220;Under construction&#8221;, which of course is very small in size.</p>
<p>With the redirect technique, we can use this facility to our other two domains.</p>
<p>So how to set it?</p>
<p>First, on the hosting with 50MB capacity, we make a subdomain. For example a domain name for hosting it is <a href="http://sulhansetiawan.com">sulhansetiawan.com</a> , then we can create two subdomains like aa.sulhansetiawan.com and bb.sulhansetiawan.com. Subdomains is just a subdomain alias for <a href="http://sulhansetiawan.com">sulhansetiawan.com</a> . Most hosting providers provide this facility. So <a href="http://sulhansetiawan.com">sulhansetiawan.com</a> can be achieved by aa.sulhansetiawan.com and bb.sulhansetiawan.com too.</p>
<p>For what we are creating a subdomain, but pointed to himself?</p>
<p>As already mentioned above, the CMS we use is WordPress. Therefore, edit the file <b>wp-config.php</b> in the assigment of <span class="notranslate">$table_prefix</span>. Normally this variable is filled with <span class="notranslate">$table_prefix=&#8217;wp_&#8217;;</span></p>
<p>Make changes so that it becomes:</p>
<p><span class="notranslate">
<pre>if("aa.sulhansetiawan.com"==$_SERVER['HTTP_HOST'])$table_prefix='aa_';
elseif("bb.sulhansetiawan.com"==$_SERVER['HTTP_HOST'])$table_prefix='bb_';
else $table_prefix='ss_';
</pre>
<p></span></p>
<p>Thus, although <a href="http://sulhansetiawan.com">sulhansetiawan.com</a>, aa.sulhansetiawan.com, also bb.sulhansetiawan.com, pointing to the same place, but the page displayed will be different because it uses a different table.</p>
<p>After setting the wp-config.php, the next step is to login to wp-admin of the three domains are, come as <a href="http://sulhansetiawan.com">sulhansetiawan.com</a> , as aa.sulhansetiawn.com, and as bb.sulhansetiawan.com</p>
<p>To login as <a href="http://sulhansetiawan.com">sulhansetiawan.com</a> , of course, do the settings for the domain <a href="http://sulhansetiawan.com">sulhansetiawan.com</a> itself. As for the aa.sulhansetiawan.com and bb.sulhansetiawan.com, of course, made ​​arrangements for the two other domains. For example, if aa.sulhansetiawan.com will be used for the domain http://master-micro.com, the settings for aa.sulhansetiawan.com also be made ​​in such a way as if we are setting http://master-micro.com. And the most important for this problem is the <b>option-general</b> .</p>
<p>Go to the option-general. In the WordPress address (URL) typically are filled in correctly, however, because we will use this wordpress to http://master-micro.com, then on the Blog address (URL) we fill it with &#8220;http://master -micro.com &#8220;. In this way, any links that are created by Wordpres will use the address http://master-micro.com.</p>
<p>Do it the same way for bb.sulhansetiawan.com.</p>
<p>The next step is to fill the hosting for the two other domains that leads each to aa.sulhansetiawan.com and bb.sulhansetiawan.com. We only need three settings.</p>
<p>First, we set the <b>php.ini</b> to allow the reading of another url by adding the line</p>
<pre>allow_url_fopen = On</pre>
<p>Second, we make the file <b class='notranslate'>.htaccess</b> that looks like this:</p>
<p><span class="notranslate">
<pre>&lt;IfModule mod_rewrite.c&gt;
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
&lt;/IfModule&gt;
</pre>
<p></span></p>
<p>Third, we make the file <b>index.php</b> which is like:</p>
<p><span class="notranslate">
<pre>&lt;?php
$redirx="http://aa.sulhansetiawan.com".$_SERVER['REQUEST_URI'] ;
echo file_get_contents($redirx);
?&gt;
</pre>
<p></span></p>
<p>For other domains, just simply replace the http://aa.sulhansetiawan.com become http://bb.sulhansetiawan.com.</p>
<p>Well, with this index.php file in the DocumentRoot in the master-micro.com, then when there are people accessing the master-micro.com, the contents are shown taken from aa.sulhansetiawan.com. And visitors will not realize at all that they see the actual taken from somewhere else.</p>
<p>Good luck.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sulhansetiawan.com/redireksi-tanpa-mengubah-alamat-pada-address-bar/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding an Alarm for Motorcycle Safeguard with Touch Censor</title>
		<link>http://www.sulhansetiawan.com/pengaman-motor-dg-alarm</link>
		<comments>http://www.sulhansetiawan.com/pengaman-motor-dg-alarm#comments</comments>
		<pubDate>Sat, 05 Feb 2011 09:24:04 +0000</pubDate>
		<dc:creator>Sulhan</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Motorcycle]]></category>

		<guid isPermaLink="false">http://sulhansetiawan.com/?p=1076</guid>
		<description><![CDATA[Adding an Alarm
Touch sensor as a motorcycle security is already quite sacure. However, adding an alarm is a plus for securing your motorcycle.
If the motorcycle&#8217;s lock is rotated to the ON position, then if in about 6 seconds, the touch sensor is not touched yet, the alarm will be activated. For those of you who [...]]]></description>
			<content:encoded><![CDATA[<h3>Adding an Alarm</h3>
<p>Touch sensor as a motorcycle security is already quite sacure. However, adding an alarm is a plus for securing your motorcycle.</p>
<p>If the motorcycle&#8217;s lock is rotated to the ON position, then if in about 6 seconds, the touch sensor is not touched yet, the alarm will be activated. For those of you who know the exact position of the sensor, a period of 6 seconds is more than enough to touch the sensor. But for a thief who certainly do not know the position of the sensor, then 6 seconds later he would be shocked because the motorcycle he just stolen suddenly honk by itself.</p>
<div class="wp-caption aligncenter" style="width: 479px"><a href="http://resource.sulhansetiawan.com/img/SensorAlarm.jpg"><img class=" " title="Touch sensor with alarm" src="http://resource.sulhansetiawan.com/img/SensorAlarm.jpg" alt="Touch sensor with alarm" width="469" height="626" /></a><p class="wp-caption-text">Touch sensor with alarm</p></div>
<p>The above circuit is divided into three parts</p>
<ol>
<li>
<p>Touch Sensor</p>
<p>This circuit is the same circuit with the circuit in  <a href="http://www.sulhansetiawan.com/pengaman-sepeda-motor-dg-sensor-sentuh">Motorcycle Safeguard with Touch Censor</a></p>
</li>
<li>
<p>Alarm</p>
<p>This circuit is astable flip-flop circuit which is used to activate the relay. This RLY2 relay that will be used to honk the horn. To stop the flip-flop, we simply pull the voltage at the anode of D4 to the ground. Therefore, we connect this point to the collector of Q1 through diode D5. Thus, if the sensor has been touched, the alarm automatically also will stop working.</p>
</li>
<li>
<p>Alarm Delay</p>
<p>This section serves to delay the alarm work. The first time the circuit got the power supply, the charge on the C5 is still empty, so the transistor Q6 is OFF. Since Q6 is OFF, then ON and Q5 it will attract D4 anode toward the ground. Thus the flip-flop will not work. Slowly C5 will be filled electrical charge through R10 until the end Q6 ON. At ON Q6, Q5 will be OFF and the flip-flop can work.</p>
<p>C5 value determines the delay time. The larger the value, the longer the delay time.</p>
</li>
</ol>
<h3>Alarm Installation</h3>
<p>There are two types of mounting the horn button. At Honda, the horn button is used to connect the positive part of the horn, while the negative is always connected to the chassis. While on a Yamaha, horn button is used to connect the negative, while the positive part is always connected to the positive of motorcycle electricity.</p>
<p>For Honda&#8217;s horn type, the installation is by connecting the positive part of the horn, the part that is connected to the button, to NO from RLY2, then connect the CM from RLY2 to positive electricity after the key (point B on the <a href="http://www.sulhansetiawan.com/pengaman-sepeda-motor-dg-sensor-sentuh#pasang-ac">installation of CDI AC</a> or <a href="http://www.sulhansetiawan.com/pengaman-sepeda-motor-dg-sensor-sentuh#pasang-dc">CDI DC</a>).</p>
<p>For the type of Yamaha horn, the installation is by connecting the negative part of the horn, the part that is connected to the button, to NO from RLY2, then connect the CM from RLY2 to the chassis. However, if the motorcycle is using CDI DC, then we must move the positive cable to keep connected to point B. Remember that the installation of CDI DC, we break point B then connect it in series with the relay of touch sensors. Thus, when the sensor has not been touched, the horn will not sound. Therefore, we must move the cable plus the horn section in order to remain connected to point B.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sulhansetiawan.com/pengaman-motor-dg-alarm/feed</wfw:commentRss>
		<slash:comments>85</slash:comments>
		</item>
	</channel>
</rss>

