tag:blogger.com,1999:blog-18609487753052800182024-03-13T15:46:59.366+07:00The Code of LifeSharing our opinion about life and code. The code is live and life is the place of code shelter. Your code is your life!Yudhitaprawesti Shahranuwiragustihttp://www.blogger.com/profile/11277945009359187722noreply@blogger.comBlogger11125tag:blogger.com,1999:blog-1860948775305280018.post-10708932019099913452012-10-02T10:39:00.000+07:002012-10-02T10:49:49.063+07:00mJelajah (Android Apps)<!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves/>
<w:TrackFormatting/>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>EN-US</w:LidThemeOther>
<w:LidThemeAsian>X-NONE</w:LidThemeAsian>
<w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndParaMark/>
<w:DontVertAlignCellWithSp/>
<w:DontBreakConstrainedForcedTables/>
<w:DontVertAlignInTxbx/>
<w:Word11KerningPairs/>
<w:CachedColBalance/>
</w:Compatibility>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
<m:mathPr>
<m:mathFont m:val="Cambria Math"/>
<m:brkBin m:val="before"/>
<m:brkBinSub m:val="--"/>
<m:smallFrac m:val="off"/>
<m:dispDef/>
<m:lMargin m:val="0"/>
<m:rMargin m:val="0"/>
<m:defJc m:val="centerGroup"/>
<m:wrapIndent m:val="1440"/>
<m:intLim m:val="subSup"/>
<m:naryLim m:val="undOvr"/>
</m:mathPr></w:WordDocument>
</xml><![endif]-->
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijAssK_3nxAXfmj-sRTCOCOfLiLpvdCR9FZeaWWKmjMqrZLvn5Gd0cDD4m9STDeh4jtzFLh42fvwBX-ZVP1K_ZQLClCD_gpJqqTyE94ey2aVrz7q3yyieZB9b_0Xwn8gjbHaxojaOv1zg/s1600/device-2012-09-26-104810.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijAssK_3nxAXfmj-sRTCOCOfLiLpvdCR9FZeaWWKmjMqrZLvn5Gd0cDD4m9STDeh4jtzFLh42fvwBX-ZVP1K_ZQLClCD_gpJqqTyE94ey2aVrz7q3yyieZB9b_0Xwn8gjbHaxojaOv1zg/s320/device-2012-09-26-104810.png" width="213" /></a></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<span style="font-family: Verdana,sans-serif;">Heyho! Now I just wanna share to you about a new app from my company =)</span></div>
<div style="text-align: justify;">
<span style="font-family: Verdana,sans-serif;">It's called "mJelajah". What is mJelajah? Let's find out!</span></div>
<div style="text-align: justify;">
<span style="font-family: Verdana,sans-serif;"></span></div>
<a name='more'></a><br />
<div style="text-align: justify;">
<span style="font-family: Verdana,sans-serif;">Over time, human need for data is increasing. They all need anything
information of their life. We can't deny that was really happened for us. It's
proved when we were using Google for search and browse anything. We can called
it “Google Addict”. </span></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<span style="font-family: Verdana,sans-serif;">So, this app is almost similar with Google Search =). The different of this
app that it's just helps you to search and browse about the place closest to you.
There is three main categories; restaurant, hotel, and garage. But you can also
search and browse outside the main categories. You can search ATM, or pet shop
maybe and so on. Anything you can browse and search in your nearby area. Yes,
it’s about place. This app is help you to find where is the closest place to
your area by your specific keyword.</span></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<span style="font-family: Verdana,sans-serif;">The feature of this app is you can add some friend (for your review or recommendation
of place), you can also add some place, you can see what facilities are
provided of the place, you can rate the place and leave a comment, you can
upload some pictures that describe that place, and anything else but you have
to login first.</span></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<span style="font-family: Verdana,sans-serif;">Hopefully this app can help you all to find anyplace closest to you.</span></div>
<div style="text-align: justify;">
<span style="font-family: Verdana,sans-serif;">You have to try it! --></span><a href="https://play.google.com/store/apps/details?id=com.ebconnect.apps.mjelajah&feature=search_result#?t=W251bGwsMSwyLDEsImNvbS5lYmNvbm5lY3QuYXBwcy5tamVsYWphaCJd" target="_blank"><span style="font-family: Verdana,sans-serif;"> mJelajahApps</span></a>
</div>
Yudhitaprawesti Shahranuwiragustihttp://www.blogger.com/profile/11277945009359187722noreply@blogger.com4tag:blogger.com,1999:blog-1860948775305280018.post-2463058484440542622011-11-23T11:07:00.006+07:002012-09-26T11:29:06.027+07:00Slim3: a Full-Stack MVC Framework<div style="text-align: justify;">
Certainly before you learn it you have to know about App Engine. What is it? Google will teach you, just visit this link: </div>
<div style="text-align: justify;">
<a href="http://code.google.com/appengine/docs/whatisgoogleappengine.html" target="_blank">http://code.google.com/appengine/docs/whatisgoogleappengine.html</a></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Ok! now what is slim3..</div>
<div style="text-align: justify;">
Slim3 is a low level API that easier to be learned than JDO or JPA. It is a kind plugin for eclipse. The concept of slim3 is MVC (model, view, controller). With slim3 we can access the data from the datastore more quickly than JDO/JPA. Why? Because slim3 does not use PersistenceManagerFactory/EntityManagerFactory which is known as a slow starter and avoids extra initializations carefully.</div>
<div style="text-align: justify;">
There are three parts of slim3 that i will try to explain:<br />
<a name='more'></a></div>
<ol>
<li style="text-align: justify;"><b>Slim3 datastore</b>. Slim3 includes a data modeling features that make enforcing a schema easy. In slim3 datastore we can make a model (model is like bean i think) and it will create a meta data automatically. Models have two roles: Data Model and Service. A main role of Data Model is to store the data. A main role of Service is to perform a use case. Of course Data Model can have some logics for the data, too. Slim3 Datastore creates mapping logics between an entity and a model as the source code in the meta data of the model when compiling. With slim3 datastore you can so easy manage your datastore, update, delete, edit, and so on.</li>
<li style="text-align: justify;"><b>Slim3 controller.</b> I think if you have understand the MVC concept it would be easy to learned it. Slim3 controller is a thin framework of Servlet. Slim3 can find a controller that is like Servlet from the path automatically, so you don't need the manual configuration.</li>
<li style="text-align: justify;"><b>Slim3 JSP</b>. Slim3 provides JSP function, so that you can preview JSP template using HTML authoring tool like Dreamweaver.</li>
</ol>
<div style="text-align: justify;">
First when you creating a slim3 project, it will generate package src and test. Then we have to create a controller and a test. That's it.. We have done a simple slim3 project!</div>
<div style="text-align: justify;">
For a complete direction how to create a slim3 project you can visit this link: <a href="https://sites.google.com/site/slim3appengine/getting-started/creating-a-blank-project" target="_blank">https://sites.google.com/site/slim3appengine/getting-started/creating-a-blank-project</a><br />
<br /></div>
<div style="text-align: justify;">
<br /></div>
Yudhitaprawesti Shahranuwiragustihttp://www.blogger.com/profile/11277945009359187722noreply@blogger.com2tag:blogger.com,1999:blog-1860948775305280018.post-90098866792490037572011-04-27T20:05:00.013+07:002011-04-29T19:50:08.297+07:00Matlab Syntax Summary before UTS<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0cm;"></div><div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0cm;">Reading an image (jpg, bmp, png, tif):</div><table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-yfti-tbllook: 1184;"><tbody>
<tr style="mso-yfti-firstrow: yes; mso-yfti-irow: 0; mso-yfti-lastrow: yes;"> <td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 478.8pt;" valign="top" width="638"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="font-family: "Courier New"; font-size: 10pt;">image = imread (‘image.ext’);</span></div></td> </tr>
</tbody></table><div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0cm;"><br />
</div><div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0cm;">Showing an image (jpg, bmp, png, tif):</div><table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-yfti-tbllook: 1184;"><tbody>
<tr style="mso-yfti-firstrow: yes; mso-yfti-irow: 0; mso-yfti-lastrow: yes;"> <td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 478.8pt;" valign="top" width="638"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="font-family: "Courier New"; font-size: 10pt;">imshow (‘image.ext’);</span></div></td> </tr>
</tbody></table><div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0cm;"><br />
</div><div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0cm;">Showing some of image in one figure/screen:</div><table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-yfti-tbllook: 1184;"><tbody>
<tr style="mso-yfti-firstrow: yes; mso-yfti-irow: 0; mso-yfti-lastrow: yes;"> <td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 478.8pt;" valign="top" width="638"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="font-family: "Courier New"; font-size: 10pt;">subplot (m,n,p); imread(‘img.ext’);</span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><br />
</div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: forestgreen; font-family: "Courier New"; font-size: 10pt;">%annotation:</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: forestgreen; font-family: "Courier New"; font-size: 10pt;">%m = total row</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: forestgreen; font-family: "Courier New"; font-size: 10pt;">%n = total column</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: forestgreen; font-family: "Courier New"; font-size: 10pt;">%p = image position</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div></td> </tr>
</tbody></table><div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0cm;"><br />
</div><div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0cm;">Making a new screen/figure:</div><table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-yfti-tbllook: 1184;"><tbody>
<tr style="mso-yfti-firstrow: yes; mso-yfti-irow: 0; mso-yfti-lastrow: yes;"> <td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 478.8pt;" valign="top" width="638"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="font-family: "Courier New"; font-size: 10pt;">figure;</span></div></td> </tr>
</tbody></table><div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0cm;"><br />
<a name='more'></a></div><div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0cm;">Conversion from RGB to grayscale:</div><table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-yfti-tbllook: 1184;"><tbody>
<tr style="mso-yfti-firstrow: yes; mso-yfti-irow: 0; mso-yfti-lastrow: yes;"> <td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 478.8pt;" valign="top" width="638"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="font-family: "Courier New"; font-size: 10pt;">gray = rgb2gray(image);</span></div></td> </tr>
</tbody></table><div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0cm;"><br />
</div><div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0cm;">Conversion from RGB to HSV:</div><table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-yfti-tbllook: 1184;"><tbody>
<tr style="mso-yfti-firstrow: yes; mso-yfti-irow: 0; mso-yfti-lastrow: yes;"> <td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 478.8pt;" valign="top" width="638"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="font-family: "Courier New"; font-size: 10pt;">hsv = rgb2hsv(image);</span></div></td> </tr>
</tbody></table><div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0cm;"><br />
</div><div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0cm;">Conversion from RGB to black and white (BW):</div><table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-yfti-tbllook: 1184;"><tbody>
<tr style="mso-yfti-firstrow: yes; mso-yfti-irow: 0; mso-yfti-lastrow: yes;"> <td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 478.8pt;" valign="top" width="638"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="font-family: "Courier New"; font-size: 10pt;">bw = im2bw(image);</span></div></td> </tr>
</tbody></table><div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0cm;"><br />
</div><div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0cm;">Looking for an image histogram:</div><table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-yfti-tbllook: 1184;"><tbody>
<tr style="mso-yfti-firstrow: yes; mso-yfti-irow: 0; mso-yfti-lastrow: yes;"> <td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 478.8pt;" valign="top" width="638"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="font-family: "Courier New"; font-size: 10pt;">histogram = imhist(image); </span><span style="color: forestgreen; font-family: "Courier New"; font-size: 10pt;">%it can’t be implemented in RGB image</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="font-family: "Courier New"; font-size: 10pt;">plot(histogram);</span></div></td> </tr>
</tbody></table><div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0cm;"><br />
</div><div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0cm;">Accessing pixel in certain position:</div><table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-yfti-tbllook: 1184;"><tbody>
<tr style="mso-yfti-firstrow: yes; mso-yfti-irow: 0; mso-yfti-lastrow: yes;"> <td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 478.8pt;" valign="top" width="638"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="font-family: "Courier New"; font-size: 10pt;">pixel = image (m,n);</span></div></td> </tr>
</tbody></table><div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0cm;"><br />
</div><div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0cm;">Kernel prewitt: </div><table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-yfti-tbllook: 1184;"><tbody>
<tr style="mso-yfti-firstrow: yes; mso-yfti-irow: 0;"> <td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 478.8pt;" valign="top" width="638"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="font-family: "Courier New"; font-size: 10pt;">-1 0 1</span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="font-family: "Courier New"; font-size: 10pt;">-1 0 1 </span><span style="color: forestgreen; font-family: "Courier New"; font-size: 10pt;">%for left</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="font-family: "Courier New"; font-size: 10pt;">-1 0 1</span></div></td> </tr>
<tr style="mso-yfti-irow: 1; mso-yfti-lastrow: yes;"> <td style="border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 478.8pt;" valign="top" width="638"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="font-family: "Courier New"; font-size: 10pt;">1 0 -1</span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="font-family: "Courier New"; font-size: 10pt;">1 0 -1 </span><span style="color: forestgreen; font-family: "Courier New"; font-size: 10pt;">%for right</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="font-family: "Courier New"; font-size: 10pt;">1 0 -1</span></div></td> </tr>
</tbody></table><div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0cm;"><br />
</div><div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0cm;">Kernel sobel: </div><table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-yfti-tbllook: 1184;"><tbody>
<tr style="mso-yfti-firstrow: yes; mso-yfti-irow: 0;"> <td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 478.8pt;" valign="top" width="638"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="font-family: "Courier New"; font-size: 10pt;">-1 0 1</span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="font-family: "Courier New"; font-size: 10pt;">-2 0 2 </span><span style="color: forestgreen; font-family: "Courier New"; font-size: 10pt;">%for left</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="font-family: "Courier New"; font-size: 10pt;">-1 0 1</span></div></td> </tr>
<tr style="mso-yfti-irow: 1; mso-yfti-lastrow: yes;"> <td style="border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 478.8pt;" valign="top" width="638"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="font-family: "Courier New"; font-size: 10pt;">1 0 -1</span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="font-family: "Courier New"; font-size: 10pt;">2 0 -2 </span><span style="color: forestgreen; font-family: "Courier New"; font-size: 10pt;">%for right</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="font-family: "Courier New"; font-size: 10pt;">1 0 -1</span></div></td> </tr>
</tbody></table><div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0cm;"><br />
</div><div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0cm;">Kernel laplace: </div><table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-yfti-tbllook: 1184;"><tbody>
<tr style="mso-yfti-firstrow: yes; mso-yfti-irow: 0;"> <td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 478.8pt;" valign="top" width="638"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="font-family: "Courier New"; font-size: 10pt;">-1 -1 -1</span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="font-family: "Courier New"; font-size: 10pt;">-1 8 -1 </span><span style="color: forestgreen; font-family: "Courier New"; font-size: 10pt;">%trial 1</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="font-family: "Courier New"; font-size: 10pt;">-1 -1 -1</span></div></td> </tr>
<tr style="mso-yfti-irow: 1; mso-yfti-lastrow: yes;"> <td style="border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 478.8pt;" valign="top" width="638"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="font-family: "Courier New"; font-size: 10pt;"> 1 -2 1</span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="font-family: "Courier New"; font-size: 10pt;">-2 4 -2 </span><span style="color: forestgreen; font-family: "Courier New"; font-size: 10pt;">%trial 2</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="font-family: "Courier New"; font-size: 10pt;"> 1 -2 1</span></div></td> </tr>
</tbody></table><div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0cm;"><br />
</div><div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0cm;">Rotation: </div><table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-yfti-tbllook: 1184;"><tbody>
<tr style="mso-yfti-firstrow: yes; mso-yfti-irow: 0; mso-yfti-lastrow: yes;"> <td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 478.8pt;" valign="top" width="638"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">function</span><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> rotasi(img)</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> [row,col] = size(img);</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">for</span><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> i = 1:row</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">for</span><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> j = 1:col</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> out(j,row+1-i) = img(i,j);</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">end</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">end</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> subplot(1,2,1),imshow(img);</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> subplot(1,2,2),imshow(out);</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">end</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><br />
</div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: forestgreen; font-family: "Courier New"; font-size: 10pt;">%annotaion:</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: forestgreen; font-family: "Courier New"; font-size: 10pt;">%90 degrees = (j,row+1-i)</span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: forestgreen; font-family: "Courier New"; font-size: 10pt;">%180 degrees = (row+1-i,column+1-j)</span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: forestgreen; font-family: "Courier New"; font-size: 10pt;">%270 degrees = (column +1-j,i)</span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><br />
</div></td> </tr>
</tbody></table><div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0cm;"><br />
</div><div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0cm;">Translation: </div><table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-yfti-tbllook: 1184;"><tbody>
<tr style="mso-yfti-firstrow: yes; mso-yfti-irow: 0; mso-yfti-lastrow: yes;"> <td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 478.8pt;" valign="top" width="638"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">function</span><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> translasi(img,m,n)</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> row = size(img,1);</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> column = size(img,2);</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">for</span><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> i = 1:row</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">for</span><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> j = 1:column</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">if</span><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> i+m>0 && i+m<row+1 && j-n>0 && j-n<column+1</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> result(i,j) = img(i+m, j-n);</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">else</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> result(i,j) = img(1,1)*0;</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">end</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">end</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">end</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> imshow(result);</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">end</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div></td> </tr>
</tbody></table><div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0cm;"><br />
</div><div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0cm;">Dilatation: </div><table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-yfti-tbllook: 1184;"><tbody>
<tr style="mso-yfti-firstrow: yes; mso-yfti-irow: 0; mso-yfti-lastrow: yes;"> <td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 478.8pt;" valign="top" width="638"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">function</span><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> dilatasi(img,sx,sy)</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> row = size(img,1)*sx;</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> column = size(img,2)*sy;</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">for</span><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> i = 1:row</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">for</span><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> j = 1:column</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">if</span><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> sx*i>0 && sx*i<row+1 && sy*j>0 && sy*j<column+1</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> out(sx*i, sy*j) = img(i,j);</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">end</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">end</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> imshow(out);</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: "Courier New"; font-size: 10pt;"> end</span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">end</span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><br />
</div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: forestgreen; font-family: "Courier New"; font-size: 10pt;">%annotation:</span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: forestgreen; font-family: "Courier New"; font-size: 10pt;">%sx = sy = scale</span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;"></span></div></td> </tr>
</tbody></table><div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0cm;"><br />
</div><div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0cm;">Reflection: </div><table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-yfti-tbllook: 1184;"><tbody>
<tr style="mso-yfti-firstrow: yes; mso-yfti-irow: 0; mso-yfti-lastrow: yes;"> <td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 478.8pt;" valign="top" width="638"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><br />
</div></td> </tr>
</tbody></table><div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0cm;"><br />
</div><div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0cm;">To binary (for grayscale only): </div><table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-yfti-tbllook: 1184;"><tbody>
<tr style="mso-yfti-firstrow: yes; mso-yfti-irow: 0; mso-yfti-lastrow: yes;"> <td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 478.8pt;" valign="top" width="638"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">function</span><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> result = toBiner(img)</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> result = img>=128;</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">end</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div></td> </tr>
</tbody></table><div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0cm;"><br />
</div><div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0cm;">To negative (for grayscale only): </div><table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-yfti-tbllook: 1184;"><tbody>
<tr style="mso-yfti-firstrow: yes; mso-yfti-irow: 0; mso-yfti-lastrow: yes;"> <td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 478.8pt;" valign="top" width="638"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">function</span><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> result = toNegatif(img)</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> result = 255-img;</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> imshow(result);</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">end</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div></td> </tr>
</tbody></table><div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0cm;"><br />
</div><div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0cm;">Brightening and darkening (for grayscale only): </div><table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-yfti-tbllook: 1184;"><tbody>
<tr style="mso-yfti-firstrow: yes; mso-yfti-irow: 0; mso-yfti-lastrow: yes;"> <td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 478.8pt;" valign="top" width="638"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">function</span><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> result = brightening(img, c)</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> result = img + c;</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">end</span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><br />
</div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">function</span><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> result = darkening(img, c)</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> result = img - c;</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">end</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div></td> </tr>
</tbody></table><div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0cm;"><br />
</div><div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0cm;">Clipping (for grayscale only): </div><table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-yfti-tbllook: 1184;"><tbody>
<tr style="mso-yfti-firstrow: yes; mso-yfti-irow: 0; mso-yfti-lastrow: yes;"> <td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 478.8pt;" valign="top" width="638"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">function</span><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> result = clipping(img)</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> out = img; </span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">for</span><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> i = size(img,1)</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">for</span><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> j = size(img,2);</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">if</span><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> img(i,j)<0</span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> out(i,j) = 0;</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">elseif</span><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> img(i,j)>=0 && img(i,j)<=255</span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> out(i,j) = img(i,j);</span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">else</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> out(i,j) = 255;</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">end</span><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">end</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">end</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> result = out;</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">end</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div></td> </tr>
</tbody></table><div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0cm;"><br />
</div><div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0cm;">Erotion (for binary only): </div><table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-yfti-tbllook: 1184;"><tbody>
<tr style="mso-yfti-firstrow: yes; mso-yfti-irow: 0; mso-yfti-lastrow: yes;"> <td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 478.8pt;" valign="top" width="638"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">function</span><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> result = erotion(img, a)</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> [maxRow, maxCol] = size(img);</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> out = img;</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">for</span><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> i = 1:(maxRow-2)</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">for</span><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> j = 1:(maxCol-2)</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">if</span><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> img(i+1,j+1)==0</span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">for</span><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> k = 1:3</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">for</span><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> l = 1:3</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> out(i+k-1,j+l-1) = img(i+1,j+1).*a(k,l);</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">end</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">end</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">end</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">end</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">end</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> result = out;</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">end</span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><br />
</div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: forestgreen; font-family: "Courier New"; font-size: 10pt;">%annotation:</span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: forestgreen; font-family: "Courier New"; font-size: 10pt;">%a = matrix 3 x 3 (kernel that be used)</span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><br />
</div></td> </tr>
</tbody></table><div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0cm;"><br />
</div><div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0cm;">Dilation (for binary only): </div><table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-yfti-tbllook: 1184;"><tbody>
<tr style="mso-yfti-firstrow: yes; mso-yfti-irow: 0; mso-yfti-lastrow: yes;"> <td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 478.8pt;" valign="top" width="638"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">function</span><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> result = dilate(img,a)</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> [maxRow, maxCol] = size(img);</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> out = img;</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">for</span><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> i = 1:(maxRow-2)</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">for</span><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> j = 1:(maxCol-2)</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">if</span><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> img(i+1,j+1)==1</span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">for</span><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> k = 1:3</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">for</span><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> l = 1:3</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">if</span><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> a(k,l)==1</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> out(i+k-1,j+l-1) = img(i+1,j+1).*a(k,l);</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">end</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">end</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">end</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">end</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">end</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">end</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> result = out;</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">end</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><br />
</div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: forestgreen; font-family: "Courier New"; font-size: 10pt;">%annotation:</span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: forestgreen; font-family: "Courier New"; font-size: 10pt;">%a = matrix 3 x 3 (kernel that be used)</span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><br />
</div></td> </tr>
</tbody></table><div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0cm;"><br />
</div><div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0cm;">Making mean filter for image: </div><table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-yfti-tbllook: 1184;"><tbody>
<tr style="mso-yfti-firstrow: yes; mso-yfti-irow: 0; mso-yfti-lastrow: yes;"> <td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 478.8pt;" valign="top" width="638"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">function</span><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> result = meanFilter(img)</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> a = [1/9 1/9 1/9;1/9 1/9 1/9;1/9 1/9 1/9];</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> [maxRow, maxCol] = size(img);</span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> out = img;</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">for</span><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> i = 1:(maxRow-2)</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">for</span><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> j = 1:(maxCol-2)</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">if</span><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> img(i+1,j+1)==0</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> mean = 0;</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">for</span><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> k = 1:3</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">for</span><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> l = 1:3</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> mean = mean + img(i+k-1,j+l-1).*a(k,l);</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">end</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">end</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> out(i+1,j+1) = mean;</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">end</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">end</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">end</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> result = out;</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">end</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div></td> </tr>
</tbody></table><div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0cm;"><br />
</div><div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0cm;">Making median filter for image:</div><table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-yfti-tbllook: 1184;"><tbody>
<tr style="mso-yfti-firstrow: yes; mso-yfti-irow: 0; mso-yfti-lastrow: yes;"> <td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 478.8pt;" valign="top" width="638"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">function</span><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> result = medianFilter(img)</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> [maxRow, maxCol] = size(img);</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> out = img;</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">for</span><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> i = 1:(maxRow-2)</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">for</span><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> j = 1:(maxCol-2)</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">if</span><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> img(i+1,j+1)==0</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> temp = zeros(1,9);</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">for</span><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> k = 1:3</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">for</span><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> l = 1:3</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> temp(1,l+3*(k-1)) = img(i+k-1,j+l-1);</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">end</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">end</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> out(i+1,j+1) = median(temp,2);</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">end</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">end</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">end</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> result = out;</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">end</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div></td> </tr>
</tbody></table><div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0cm;"><br />
</div><div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0cm;">Making a chess board:</div><table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-yfti-tbllook: 1184;"><tbody>
<tr style="mso-yfti-firstrow: yes; mso-yfti-irow: 0; mso-yfti-lastrow: yes;"> <td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 478.8pt;" valign="top" width="638"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">function</span><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> chessBoard</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> [x,y] = meshgrid(0:1:255);</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> z = mod(floor(x/32)+floor(y/32),2);</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> imshow(z)</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">end</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div></td> </tr>
</tbody></table><div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0cm;"><br />
</div><div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0cm;">Making a white hole:</div><table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-yfti-tbllook: 1184;"><tbody>
<tr style="mso-yfti-firstrow: yes; mso-yfti-irow: 0; mso-yfti-lastrow: yes;"> <td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 478.8pt;" valign="top" width="638"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">function</span><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> whiteHole(radius)</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> [x,y] = meshgrid(0:255,0:255);</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> img = (sqrt((x-127).^2 + (y-127).^2)<= radius);</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> imshow(img);</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="color: blue; font-family: "Courier New"; font-size: 10pt;">end</span><span style="font-family: "Courier New"; font-size: 12pt;"></span></div></td> </tr>
</tbody></table><div class="MsoNormal"><br />
</div>Yudhitaprawesti Shahranuwiragustihttp://www.blogger.com/profile/11277945009359187722noreply@blogger.com2tag:blogger.com,1999:blog-1860948775305280018.post-61618452066922244522011-04-10T15:20:00.004+07:002011-05-07T12:49:25.103+07:00Create a Digital Clock in Java<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="http://4.bp.blogspot.com/-weOBuAHIJA0/TaFkjOBhqyI/AAAAAAAAADs/jSl3CkVf_cY/s1600/Untitled.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img alt="Digital Clock in Java" border="0" src="http://4.bp.blogspot.com/-weOBuAHIJA0/TaFkjOBhqyI/AAAAAAAAADs/jSl3CkVf_cY/s1600/Untitled.png" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Digital Clock </td></tr>
</tbody></table><a href="http://www.mediafire.com/?5ffjipe4zst9q2z">Download DigitalClock.java</a><br />
Digital Clock class:<br />
<pre class="brush: java;">/**
* @author Eri Setiawan
*/
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.text.SimpleDateFormat;
import java.util.Date;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.Timer;
public class DigitalClock extends JLabel {
private String pattern;
private Timer timer;
private int delay;
<a name='more'></a>
/**
* Constructs a Digital Clock using the given pattern and the default delay.
* @param pattern - the pattern describing the date and time format
*/
public DigitalClock(String pattern){
this.pattern = pattern;
this.delay = 1000;
createTimer();
timer.start();
}
/**
* Constructs a Digital Clock using the given pattern and delay.
* @param delay - the number of milliseconds between action events
* @param pattern - the pattern describing the date and time format
*/
public DigitalClock(String pattern, int delay){
this.pattern = pattern;
this.delay = delay;
createTimer();
timer.start();
}
/**
* Constructs a Digital Clock using the default pattern and delay.
*/
public DigitalClock(){
pattern = "hh:mm:ss a";
this.delay = 1000;
createTimer();
timer.start();
}
private void createTimer(){
timer = new Timer(delay, new ActionListener() {
@Override
public void actionPerformed(ActionEvent arg0) {
setText(new SimpleDateFormat(pattern).format(new Date()));
}
});
}
public String getPattern() {
return pattern;
}
public void setPattern(String pattern) {
this.pattern = pattern;
}
public Timer getTimer() {
return timer;
}
public int getDelay() {
return delay;
}
public void setDelay(int delay) {
this.delay = delay;
}
public static void main(String[] args){
JFrame frame = new JFrame();
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setBounds(100, 100, 193, 72);
JPanel contentPane = new JPanel();
frame.setContentPane(contentPane);
contentPane.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));
DigitalClock digitalClock = new DigitalClock();
contentPane.add(digitalClock);
frame.setVisible(true);
}
}
</pre>Unknownnoreply@blogger.com7tag:blogger.com,1999:blog-1860948775305280018.post-7319615653799536422011-04-08T20:39:00.005+07:002011-04-08T20:56:55.402+07:00Write Comma Separated Value (CSV) from ResultSet<div class="MsoNormal">This code requires the use of the free library <a href="http://sourceforge.net/projects/javacsv/">java CSV</a> and <a href="http://www.mediafire.com/?g2yr3ln9ybcl2wy">MyCsvWriter</a>.</div><table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;"><tbody>
<tr style="mso-yfti-firstrow: yes; mso-yfti-irow: 0; mso-yfti-lastrow: yes;"> <td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 6.65in;" valign="top" width="638"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;">. . .</span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;">MyCsvWriter csvWriter = </span><b><span style="color: #7f0055; font-family: "Courier New"; font-size: 10pt;">new</span></b><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> MyCsvWriter(</span><span style="color: #2a00ff; font-family: "Courier New"; font-size: 10pt;">"File Name.csv"</span><span style="color: black; font-family: "Courier New"; font-size: 10pt;">);</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><b><span style="color: #7f0055; font-family: "Courier New"; font-size: 10pt;">try</span></b><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> {</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> csvWriter.writeColumnNames(rs);</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> csvWriter.writeRecords(rs);</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> csvWriter.flush();</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> csvWriter.close(); </span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;">} </span><b><span style="color: #7f0055; font-family: "Courier New"; font-size: 10pt;">catch</span></b><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> (SQLException e) {</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> System.</span><i><span style="color: #0000c0; font-family: "Courier New"; font-size: 10pt;">out</span></i><span style="color: black; font-family: "Courier New"; font-size: 10pt;">.println(</span><span style="color: #2a00ff; font-family: "Courier New"; font-size: 10pt;">"Oops-> "</span><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> + e.getMessage());</span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;">} </span><b><span style="color: #7f0055; font-family: "Courier New"; font-size: 10pt;">catch</span></b><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> (IOException e) {</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> System.</span><i><span style="color: #0000c0; font-family: "Courier New"; font-size: 10pt;">out</span></i><span style="color: black; font-family: "Courier New"; font-size: 10pt;">.println(</span><span style="color: #2a00ff; font-family: "Courier New"; font-size: 10pt;">"Oops-> "</span><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> + e.getMessage());</span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;">}</span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: "Courier New";">. . .</span></div></td> </tr>
</tbody></table><div class="MsoNormal"><br />
<a name='more'></a><br />
</div><div class="MsoNormal">MyCsvWriter :</div><table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;"><tbody>
<tr style="mso-yfti-firstrow: yes; mso-yfti-irow: 0; mso-yfti-lastrow: yes;"> <td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 6.65in;" valign="top" width="638"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: #3f5fbf; font-family: "Courier New"; font-size: 10pt;">/**</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: #3f5fbf; font-family: "Courier New"; font-size: 10pt;"> * </span><b><span style="color: #7f9fbf; font-family: "Courier New"; font-size: 10pt;">@author</span></b><span style="color: #3f5fbf; font-family: "Courier New"; font-size: 10pt;"> <u>Eri</u> <u>Setiawan</u></span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: #3f5fbf; font-family: "Courier New"; font-size: 10pt;"> */</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><br />
</div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><b><span style="color: #7f0055; font-family: "Courier New"; font-size: 10pt;">import</span></b><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> java.io.IOException;</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><b><span style="color: #7f0055; font-family: "Courier New"; font-size: 10pt;">import</span></b><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> java.io.OutputStream;</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><b><span style="color: #7f0055; font-family: "Courier New"; font-size: 10pt;">import</span></b><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> java.io.Writer;</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><b><span style="color: #7f0055; font-family: "Courier New"; font-size: 10pt;">import</span></b><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> java.nio.charset.Charset;</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><b><span style="color: #7f0055; font-family: "Courier New"; font-size: 10pt;">import</span></b><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> java.sql.ResultSet;</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><b><span style="color: #7f0055; font-family: "Courier New"; font-size: 10pt;">import</span></b><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> java.sql.SQLException;</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><br />
</div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><b><span style="color: #7f0055; font-family: "Courier New"; font-size: 10pt;">import</span></b><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> com.csvreader.CsvWriter;</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><br />
</div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><b><span style="color: #7f0055; font-family: "Courier New"; font-size: 10pt;">public</span></b><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><b><span style="color: #7f0055; font-family: "Courier New"; font-size: 10pt;">class</span></b><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> MyCsvWriter </span><b><span style="color: #7f0055; font-family: "Courier New"; font-size: 10pt;">extends</span></b><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> CsvWriter {</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><br />
</div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><b><span style="color: #7f0055; font-family: "Courier New"; font-size: 10pt;">public</span></b><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> MyCsvWriter(OutputStream arg0, </span><b><span style="color: #7f0055; font-family: "Courier New"; font-size: 10pt;">char</span></b><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> arg1, Charset arg2) {</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><b><span style="color: #7f0055; font-family: "Courier New"; font-size: 10pt;">super</span></b><span style="color: black; font-family: "Courier New"; font-size: 10pt;">(arg0, arg1, arg2);</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> }</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><br />
</div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><b><span style="color: #7f0055; font-family: "Courier New"; font-size: 10pt;">public</span></b><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> MyCsvWriter(String arg0, </span><b><span style="color: #7f0055; font-family: "Courier New"; font-size: 10pt;">char</span></b><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> arg1, Charset arg2) {</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><b><span style="color: #7f0055; font-family: "Courier New"; font-size: 10pt;">super</span></b><span style="color: black; font-family: "Courier New"; font-size: 10pt;">(arg0, arg1, arg2);</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> }</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><br />
</div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><b><span style="color: #7f0055; font-family: "Courier New"; font-size: 10pt;">public</span></b><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> MyCsvWriter(String arg0) {</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><b><span style="color: #7f0055; font-family: "Courier New"; font-size: 10pt;">super</span></b><span style="color: black; font-family: "Courier New"; font-size: 10pt;">(arg0);</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> }</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><br />
</div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><b><span style="color: #7f0055; font-family: "Courier New"; font-size: 10pt;">public</span></b><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> MyCsvWriter(Writer arg0, </span><b><span style="color: #7f0055; font-family: "Courier New"; font-size: 10pt;">char</span></b><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> arg1) {</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><b><span style="color: #7f0055; font-family: "Courier New"; font-size: 10pt;">super</span></b><span style="color: black; font-family: "Courier New"; font-size: 10pt;">(arg0, arg1);</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> }</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: #3f5fbf; font-family: "Courier New"; font-size: 10pt;">/**</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: #3f5fbf; font-family: "Courier New"; font-size: 10pt;"> * </span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: #3f5fbf; font-family: "Courier New"; font-size: 10pt;"> * </span><b><span style="color: #7f9fbf; font-family: "Courier New"; font-size: 10pt;">@param</span></b><span style="color: #3f5fbf; font-family: "Courier New"; font-size: 10pt;"> rs</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: #3f5fbf; font-family: "Courier New"; font-size: 10pt;"> * </span><b><span style="color: #7f9fbf; font-family: "Courier New"; font-size: 10pt;">@throws</span></b><span style="color: #3f5fbf; font-family: "Courier New"; font-size: 10pt;"> SQLException</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: #3f5fbf; font-family: "Courier New"; font-size: 10pt;"> * </span><b><span style="color: #7f9fbf; font-family: "Courier New"; font-size: 10pt;">@throws</span></b><span style="color: #3f5fbf; font-family: "Courier New"; font-size: 10pt;"> IOException</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: #3f5fbf; font-family: "Courier New"; font-size: 10pt;"> */</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><b><span style="color: #7f0055; font-family: "Courier New"; font-size: 10pt;">public</span></b><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><b><span style="color: #7f0055; font-family: "Courier New"; font-size: 10pt;">void</span></b><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> writeColumnNames(ResultSet rs) </span><b><span style="color: #7f0055; font-family: "Courier New"; font-size: 10pt;">throws</span></b><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> SQLException, IOException {</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><b><span style="color: #7f0055; font-family: "Courier New"; font-size: 10pt;">for</span></b><span style="color: black; font-family: "Courier New"; font-size: 10pt;">(</span><b><span style="color: #7f0055; font-family: "Courier New"; font-size: 10pt;">int</span></b><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> i = 1;i <= rs.getMetaData().getColumnCount();i++){</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> String columnName = rs.getMetaData().getColumnName(i);</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> String columnLabel = rs.getMetaData().getColumnLabel(i);</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><b><span style="color: #7f0055; font-family: "Courier New"; font-size: 10pt;">if</span></b><span style="color: black; font-family: "Courier New"; font-size: 10pt;">(columnLabel.equals(columnName))</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> write(<i>formatColumnName</i>(columnName));</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><b><span style="color: #7f0055; font-family: "Courier New"; font-size: 10pt;">else</span></b><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> write(<i>formatColumnName</i>(columnLabel));</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> }</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> endRecord();</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> }</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><b><span style="color: #7f0055; font-family: "Courier New"; font-size: 10pt;">public</span></b><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><b><span style="color: #7f0055; font-family: "Courier New"; font-size: 10pt;">void</span></b><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> writeRecords(ResultSet rs) </span><b><span style="color: #7f0055; font-family: "Courier New"; font-size: 10pt;">throws</span></b><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> SQLException, IOException{</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><b><span style="color: #7f0055; font-family: "Courier New"; font-size: 10pt;">while</span></b><span style="color: black; font-family: "Courier New"; font-size: 10pt;">(rs.next()){</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><b><span style="color: #7f0055; font-family: "Courier New"; font-size: 10pt;">for</span></b><span style="color: black; font-family: "Courier New"; font-size: 10pt;">(</span><b><span style="color: #7f0055; font-family: "Courier New"; font-size: 10pt;">int</span></b><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> i = 1;i <= rs.getMetaData().getColumnCount();i++){</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> write(rs.getString(i));</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> }</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> }</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> }</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><span style="color: #3f5fbf; font-family: "Courier New"; font-size: 10pt;">/**</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: #3f5fbf; font-family: "Courier New"; font-size: 10pt;"> * Convert an unformatted column name to a formatted column name.</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: #3f5fbf; font-family: "Courier New"; font-size: 10pt;"> *</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: #3f5fbf; font-family: "Courier New"; font-size: 10pt;"> * That is, insert a space when a new <u>uppercase</u> character is found,</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: #3f5fbf; font-family: "Courier New"; font-size: 10pt;"> * insert multiple upper case characters are grouped together.</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: #3f5fbf; font-family: "Courier New"; font-size: 10pt;"> *</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: #3f5fbf; font-family: "Courier New"; font-size: 10pt;"> * </span><b><span style="color: #7f9fbf; font-family: "Courier New"; font-size: 10pt;">@param</span></b><span style="color: #3f5fbf; font-family: "Courier New"; font-size: 10pt;"> columnName unformatted column name</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: #3f5fbf; font-family: "Courier New"; font-size: 10pt;"> * </span><b><span style="color: #7f9fbf; font-family: "Courier New"; font-size: 10pt;">@return</span></b><span style="color: #3f5fbf; font-family: "Courier New"; font-size: 10pt;"> the formatted column name</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: #3f5fbf; font-family: "Courier New"; font-size: 10pt;"> */</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><b><span style="color: #7f0055; font-family: "Courier New"; font-size: 10pt;">public</span></b><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><b><span style="color: #7f0055; font-family: "Courier New"; font-size: 10pt;">static</span></b><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> String formatColumnName(String columnName) {</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><b><span style="color: #7f0055; font-family: "Courier New"; font-size: 10pt;">if</span></b><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> (columnName.length() < 3) </span><b><span style="color: #7f0055; font-family: "Courier New"; font-size: 10pt;">return</span></b><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> columnName;</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><br />
</div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> StringBuffer buffer = </span><b><span style="color: #7f0055; font-family: "Courier New"; font-size: 10pt;">new</span></b><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> StringBuffer( columnName );</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><b><span style="color: #7f0055; font-family: "Courier New"; font-size: 10pt;">boolean</span></b><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> isPreviousLowerCase = </span><b><span style="color: #7f0055; font-family: "Courier New"; font-size: 10pt;">false</span></b><span style="color: black; font-family: "Courier New"; font-size: 10pt;">;</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><br />
</div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><b><span style="color: #7f0055; font-family: "Courier New"; font-size: 10pt;">for</span></b><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> (</span><b><span style="color: #7f0055; font-family: "Courier New"; font-size: 10pt;">int</span></b><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> i = 1; i < buffer.length(); i++) {</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><b><span style="color: #7f0055; font-family: "Courier New"; font-size: 10pt;">boolean</span></b><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> isCurrentUpperCase = Character.<i>isUpperCase</i>( buffer.charAt(i) );</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><b><span style="color: #7f0055; font-family: "Courier New"; font-size: 10pt;">if</span></b><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> (isCurrentUpperCase && isPreviousLowerCase){</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> buffer.insert(i, </span><span style="color: #2a00ff; font-family: "Courier New"; font-size: 10pt;">" "</span><span style="color: black; font-family: "Courier New"; font-size: 10pt;">);</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> i++;</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> }</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> isPreviousLowerCase = ! isCurrentUpperCase;</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> }</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> </span><b><span style="color: #7f0055; font-family: "Courier New"; font-size: 10pt;">return</span></b><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> buffer.toString();</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;"> }</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: "Courier New"; font-size: 10pt;">}</span><span style="font-family: "Courier New"; font-size: 10pt;"></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><br />
</div><div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;"><br />
</div></td> </tr>
</tbody></table><div class="MsoNormal"><br />
</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-1860948775305280018.post-15655103469026176412011-02-27T20:34:00.069+07:002011-03-02T23:16:26.662+07:00Running a Java Program<div class="MsoNormal" style="font-family: inherit; line-height: 150%; margin-bottom: 0in; text-align: justify;"><span style="font-size: small;"><b><i><span class="Apple-style-span">The Way Java Works<o:p></o:p></span></i></b></span></div><div class="separator" style="clear: both; font-family: inherit; text-align: center;"><span style="font-size: small;"><a href="https://lh4.googleusercontent.com/-5yURr_kliMI/TWpDcAwBNFI/AAAAAAAAADg/yzfE0xuH1mU/s1600/Java+Works.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="120" src="https://lh4.googleusercontent.com/-5yURr_kliMI/TWpDcAwBNFI/AAAAAAAAADg/yzfE0xuH1mU/s400/Java+Works.jpg" width="400" /></a></span></div><ol start="1" style="font-family: inherit; margin-top: 0in;" type="1"><li class="MsoNormal" style="line-height: 150%; margin-bottom: 0in; text-align: justify;"><span class="Apple-style-span" style="font-size: small;">Source<o:p></o:p></span></li>
</ol><div class="MsoNormal" style="font-family: inherit; line-height: 150%; margin: 0in 0in 0in 0.5in; text-align: justify;"><span class="Apple-style-span" style="font-size: small;">Create a source document in Java language.<o:p></o:p></span></div><ol start="2" style="font-family: inherit; margin-top: 0in;" type="1"><li class="MsoNormal" style="line-height: 150%; margin-bottom: 0in; text-align: justify;"><span class="Apple-style-span" style="font-size: small;">Compiler<o:p></o:p></span></li>
</ol><div class="MsoNormal" style="font-family: inherit; line-height: 150%; margin: 0in 0in 0in 0.5in; text-align: justify;"><span class="Apple-style-span" style="font-size: small;">Run the document through a source code compiler. The compiler checks for </span><span style="font-size: small;"><i><span class="Apple-style-span">errors </span></i></span><span class="Apple-style-span" style="font-size: small;">and won’t let us compile until it’s satisfied that everything will run correctly.<o:p></o:p></span></div><ol start="3" style="font-family: inherit; margin-top: 0in;" type="1"><li class="MsoNormal" style="line-height: 150%; margin-bottom: 0in; text-align: justify;"><span class="Apple-style-span" style="font-size: small;">Output Code<o:p></o:p></span></li>
</ol><div class="MsoNormal" style="font-family: inherit; line-height: 150%; margin: 0in 0in 0in 0.5in; text-align: justify;"><span class="Apple-style-span" style="font-size: small;">The compiler creates a new document, coded into Java </span><span style="font-size: small;"><i><span class="Apple-style-span">bytecode.</span></i></span><span class="Apple-style-span" style="font-size: small;"> Any device capable of running Java will be able to interpret this file into something it can </span><span style="font-size: small;"><i><span class="Apple-style-span">run. </span></i></span><span class="Apple-style-span" style="font-size: small;">The compiled bytecode is platform-independent.<o:p></o:p></span></div><ol start="4" style="font-family: inherit; margin-top: 0in;" type="1"><li class="MsoNormal" style="line-height: 150%; margin-bottom: 0in; text-align: justify;"><span class="Apple-style-span" style="font-size: small;">Virtual Machines<o:p></o:p></span></li>
</ol><div class="MsoNormal" style="font-family: inherit; line-height: 150%; margin: 0in 0in 0in 0.5in; text-align: justify;"><span class="Apple-style-span" style="font-size: small;">The Virtual Machine reads and </span><span style="font-size: small;"><i><span class="Apple-style-span">runs</span></i></span><span class="Apple-style-span" style="font-size: small;"> the bytecode.</span><br />
<span class="Apple-style-span" style="font-size: small;"></span><br />
<a name='more'></a><span class="Apple-style-span" style="font-size: small;"><o:p></o:p></span></div><div class="MsoNormal" style="font-family: inherit; line-height: 150%; margin-bottom: 0in; text-align: justify;"><span style="font-size: small;"><br />
</span></div><div class="MsoNormal" style="font-family: inherit; line-height: 150%; margin-bottom: 0in; text-align: justify;"><span style="font-size: small;"><b><i><span class="Apple-style-span">Running a Java Program<o:p></o:p></span></i></b></span></div><div class="MsoNormal" style="font-family: inherit; line-height: 150%; margin-bottom: 0in; text-align: justify;"><span class="Apple-style-span" style="font-size: small;">After learning how Java works, let's try to make a simple program in Java language. But first make sure you have installed Java Development Kit (JDK). JDK can be downloaded at </span><span class="Apple-style-span" style="font-size: small;"><a href="http://www.oracle.com/technetwork/java/javase/downloads/index.html">http://www.oracle.com/technetwork/java/javase/downloads/index.html</a></span><span class="Apple-style-span" style="font-size: small;">. Let’s start.<o:p></o:p></span></div><ol start="1" style="font-family: inherit; margin-top: 0in;" type="1"><li class="MsoNormal" style="line-height: 150%; margin-bottom: 0in; text-align: justify;"><span class="Apple-style-span" style="font-size: small;">Create Source Program<o:p></o:p></span></li>
</ol><div class="MsoNormal" style="font-family: inherit; line-height: 150%; margin: 0in 0in 0in 0.5in; text-align: justify;"><span class="Apple-style-span" style="font-size: small;">We will use the "Notepad" editor that comes with Microsoft Windows operating systems. The goal is to create a text file called </span><span style="font-size: small;"><i><span class="Apple-style-span">Hello.java</span></i></span><span class="Apple-style-span" style="font-size: small;"> containing the characters below:<o:p></o:p></span></div><table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: medium none; font-family: inherit; margin-left: 0.5in;"><tbody>
<tr> <td style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 6.15in;" valign="top" width="590"><div class="MsoNormal" style="font-family: "Courier New",Courier,monospace; line-height: 150%; margin-bottom: 0in; text-align: justify;"><span style="font-size: small; line-height: 150%;"><span class="Apple-style-span">class Hello{<o:p></o:p></span></span></div><div class="MsoNormal" style="font-family: "Courier New",Courier,monospace; line-height: 150%; margin-bottom: 0in; text-align: justify;"><span style="font-size: small; line-height: 150%;"><span class="Apple-style-span"> public static void main ( String[] args ){<o:p></o:p></span></span></div><div class="MsoNormal" style="font-family: "Courier New",Courier,monospace; line-height: 150%; margin-bottom: 0in; text-align: justify;"><span style="font-size: small; line-height: 150%;"><span class="Apple-style-span"> System.out.println("Hello Java!");<o:p></o:p></span></span></div><div class="MsoNormal" style="font-family: "Courier New",Courier,monospace; line-height: 150%; margin-bottom: 0in; text-align: justify;"><span style="font-size: small; line-height: 150%;"><span class="Apple-style-span"> }<o:p></o:p></span></span></div><div class="MsoNormal" style="line-height: 150%; margin-bottom: 0in; text-align: justify;"><span style="font-size: small; line-height: 150%;"><span class="Apple-style-span"><span style="font-family: 'Courier New', Courier, monospace;">}</span><o:p></o:p></span></span></div></td> </tr>
</tbody></table><div class="MsoNormal" style="font-family: inherit; line-height: 150%; margin: 0in 0in 0in 0.5in; text-align: justify;"><span class="hps" style="font-size: small;"><span lang="EN"><span class="Apple-style-span">Copy the</span></span></span><span lang="EN" style="font-size: small;"><span class="Apple-style-span"> </span><span class="hps"><span class="Apple-style-span">code</span></span><span class="Apple-style-span"> </span><span class="hps"><span class="Apple-style-span">above</span></span><span class="Apple-style-span"> </span><span class="hps"><span class="Apple-style-span">into</span></span><span class="Apple-style-span"> </span><span class="hps"><span class="Apple-style-span">notepad</span></span><span class="Apple-style-span"> </span><span class="hps"><span class="Apple-style-span">and then</span></span><span class="Apple-style-span"> </span><span class="hps"><span class="Apple-style-span">save it as</span></span><span class="Apple-style-span"> </span><span class="hps"><i><span class="Apple-style-span">Hello.java</span></i></span><span class="Apple-style-span"> </span><span class="hps"><span class="Apple-style-span">(</span></span><b><span style="color: red;"><span class="Apple-style-span">NOT</span></span></b><span class="Apple-style-span"> </span><span class="hps"><span class="Apple-style-span">txt file</span></span><span class="Apple-style-span">).</span></span><span class="Apple-style-span" style="font-size: small;"><o:p></o:p></span></div><ol start="2" style="font-family: inherit; margin-top: 0in;" type="1"><li class="MsoNormal" style="line-height: 150%; margin-bottom: 0in; text-align: justify;"><span class="Apple-style-span" style="font-size: small;">Compile it<o:p></o:p></span></li>
<ol start="1" style="margin-top: 0in;" type="a"><li class="MsoNormal" style="line-height: 150%; margin-bottom: 0in; text-align: justify;"><span class="Apple-style-span" style="font-size: small;">Change the directory where the files are stored. As an example, I store </span><span style="font-size: small;"><b><i><span class="Apple-style-span">Hello.java</span></i></b></span><span class="Apple-style-span" style="font-size: small;"> in “d:\”.<o:p></o:p></span></li>
<li class="MsoNormal" style="line-height: 150%; margin-bottom: 0in; text-align: justify;"><span class="Apple-style-span" style="font-size: small;">Compile the Hello.java file by running javac (the compiler application). Type <span style="font-family: 'Courier New', Courier, monospace;">javac Hello.java </span>then press enter button.<o:p></o:p></span></li>
<li class="MsoNormal" style="line-height: 150%; margin-bottom: 0in; text-align: justify;"><span class="Apple-style-span" style="font-size: small;">If you don’t have errors, you’ll get a second document named </span><span style="font-size: small;"><b><i><span class="Apple-style-span">Hello.class</span></i></b></span><span class="Apple-style-span" style="font-size: small;"><o:p></o:p></span></li>
</ol></ol><div class="MsoNormal" style="font-family: inherit; line-height: 150%; margin-bottom: 0in; text-align: justify;"><span style="font-size: small;"><br />
</span></div><div class="separator" style="clear: both; font-family: inherit; text-align: center;"><span style="font-size: small;"></span></div><div class="separator" style="clear: both; text-align: center;"><a href="https://lh3.googleusercontent.com/-qkDADH-gGZk/TWpDemEOhCI/AAAAAAAAADk/G9Qxqb9vN2o/s1600/compile.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="103" src="https://lh3.googleusercontent.com/-qkDADH-gGZk/TWpDemEOhCI/AAAAAAAAADk/G9Qxqb9vN2o/s400/compile.jpg" width="400" /></a></div><ol start="3" style="font-family: inherit; margin-top: 0in;" type="1"><li class="MsoNormal" style="line-height: 150%; margin-bottom: 0in; text-align: justify;"><span class="Apple-style-span" style="font-size: small;">Output<o:p></o:p></span></li>
</ol><div class="MsoNormal" style="font-family: inherit; line-height: 150%; margin: 0in 0in 0in 0.5in; text-align: justify;"><span class="Apple-style-span" style="font-size: small;">The compiler-generated </span><span style="font-size: small;"><i><span class="Apple-style-span">Hello.class</span></i></span><span class="Apple-style-span" style="font-size: small;"> file is made up of </span><span style="font-size: small;"><i><span class="Apple-style-span">bytecodes.</span></i></span><span class="Apple-style-span" style="font-size: small;"><o:p></o:p></span></div><ol start="4" style="font-family: inherit; margin-top: 0in;" type="1"><li class="MsoNormal" style="line-height: 150%; margin-bottom: 0in; text-align: justify;"><span class="Apple-style-span" style="font-size: small;">Run the program<o:p></o:p></span></li>
</ol><div class="MsoNormal" style="font-family: inherit; line-height: 150%; margin: 0in 0in 0in 0.5in; text-align: justify;"><span class="Apple-style-span" style="font-size: small;">Run the program by starting the Java Virtual Machine (JVM) with the </span><span style="font-size: small;"><i><span class="Apple-style-span">Hello.class</span></i></span><span class="Apple-style-span" style="font-size: small;"> file. The JVM translates the </span><span style="font-size: small;"><i><span class="Apple-style-span">bytecode</span></i></span><span class="Apple-style-span" style="font-size: small;"> into something the underlying platform understands, and runs the program. To do that enter command <span style="font-family: 'Courier New', Courier, monospace;">java Hello</span>.<o:p></o:p></span></div><div class="MsoNormal" style="font-family: inherit; line-height: 150%; margin-bottom: 0in; text-align: justify;"><span style="font-size: small;"><br />
</span><br />
<div class="separator" style="clear: both; text-align: center;"><span style="font-size: small;"></span></div><div class="separator" style="clear: both; text-align: center;"><a href="https://lh6.googleusercontent.com/-ATL0VKtEb5M/TWpDfoB9dcI/AAAAAAAAADo/M0nEsfsm0gU/s1600/run.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="103" src="https://lh6.googleusercontent.com/-ATL0VKtEb5M/TWpDfoB9dcI/AAAAAAAAADo/M0nEsfsm0gU/s400/run.jpg" width="400" /></a></div><span style="font-size: small;"><br />
</span><br />
<span style="font-size: small;"><br />
</span></div><div class="MsoNormal" style="font-family: inherit; line-height: 150%; margin-bottom: 0in; text-align: justify;"><span style="font-size: small;"><br />
</span></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-1860948775305280018.post-5366902322679549292011-02-23T09:04:00.004+07:002011-02-23T09:22:46.736+07:00Hello Java<div style="margin-bottom: .0001pt; margin: 0in; text-align: justify;"><div class="separator" style="clear: both; text-align: center;"><a href="http://3.bp.blogspot.com/-0jzUz7s-9Fs/TWRuChtwnBI/AAAAAAAAADc/oyvoacRcL4k/s1600/java.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="200" src="http://3.bp.blogspot.com/-0jzUz7s-9Fs/TWRuChtwnBI/AAAAAAAAADc/oyvoacRcL4k/s200/java.jpg" width="200" /></a></div><span class="Apple-style-span" style="font-family: inherit;"><b><i><span style="color: black;">What is Java technology?</span><u1:p></u1:p></i></b><span style="color: black;"><o:p></o:p></span></span></div><div style="margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 22.5pt; margin-right: 0in; margin-top: 0in; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -22.5pt;"><span class="Apple-style-span" style="font-family: inherit;"><span style="color: black;">1.<span style="font: normal normal normal 7pt/normal 'Times New Roman';"><span class="Apple-style-span" style="font-size: small;"> </span></span></span><span style="color: black;">A Programming Language<o:p></o:p></span><u1:p></u1:p></span></div><div style="margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 22.5pt; margin-right: 0in; margin-top: 0in; text-align: justify;"><span class="Apple-style-span" style="font-family: inherit;"><span style="color: black;">As a programming language, java can create all kind of applications, desktop, web, and others, as created using other conventional programming language.<o:p></o:p></span><u1:p></u1:p></span></div><div style="margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 22.5pt; margin-right: 0in; margin-top: 0in; text-align: justify;"><span class="Apple-style-span" style="font-family: inherit;"><span style="color: black;">Java is an open source programming language and object-oriented programming (OOP) and can be run on various operating systems. Java development is not only focused on one operating system, but developed for different operating systems.<o:p></o:p></span><u1:p></u1:p></span></div><div style="margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 22.5pt; margin-right: 0in; margin-top: 0in; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -22.5pt;"><span class="Apple-style-span" style="font-family: inherit;"><span style="color: black;">2.<span style="font: normal normal normal 7pt/normal 'Times New Roman';"><span class="Apple-style-span" style="font-size: small;"> </span></span></span><span style="color: black;">A Development Environment<o:p></o:p></span><u1:p></u1:p></span></div><div style="margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 22.5pt; margin-right: 0in; margin-top: 0in; text-align: justify;"><span class="Apple-style-span" style="font-family: inherit;"><span style="color: black;">As a builder tools, Java technology provides many tools:<span class="apple-converted-space"> </span> compiler, interpreter, compiler documentation, class packages and so forth.</span></span><br />
<span class="Apple-style-span" style="font-family: inherit;"><span style="color: black;"><a name='more'></a></span></span></div><div style="margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 22.5pt; margin-right: 0in; margin-top: 0in; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -22.5pt;"><span class="Apple-style-span" style="font-family: inherit;"><span style="color: black;">3.<span style="font: normal normal normal 7pt/normal 'Times New Roman';"><span class="Apple-style-span" style="font-size: small;"> </span></span></span><span style="color: black;">An Application<o:p></o:p></span><u1:p></u1:p></span></div><div style="margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 22.5pt; margin-right: 0in; margin-top: 0in; text-align: justify;"><span style="color: black; font-family: inherit;">Applications with Java technology in general are a versatile application that can be run on all machines that have Java Runtime Environment (JRE).</span><br />
<span style="color: black; font-family: inherit;"></span></div><div style="margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 22.5pt; margin-right: 0in; margin-top: 0in; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -22.5pt;"><span class="Apple-style-span" style="font-family: inherit;"><span style="color: black;">4.<span style="font: normal normal normal 7pt/normal 'Times New Roman';"><span class="Apple-style-span" style="font-size: small;"> </span></span></span><span style="color: black;">A Deployment Environment<o:p></o:p></span><u1:p></u1:p></span></div><div style="margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 22.5pt; margin-right: 0in; margin-top: 0in; text-align: justify;"><span style="color: black; font-family: inherit;">There are two main components of the Deployment Environment. The first is the JRE, which is located on J2SDK package, containing classes for all Java technology package that includes basic classes of Java GUI components and so forth. Other components contained in the Web Browser. Almost all commercial Web browsers provide interpreters and runtime environment of Java technology.</span><br />
<span style="color: black; font-family: inherit;"></span><br />
<span style="color: black; font-family: inherit;"></span></div><div style="margin-bottom: .0001pt; margin: 0in; text-align: justify;"><span class="Apple-style-span" style="font-family: inherit;"><b><i><span style="color: black;">Why Learning Java?</span><u1:p></u1:p></i></b><span style="color: black;"><o:p></o:p></span></span></div><div style="margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 22.5pt; margin-right: 0in; margin-top: 0in; mso-list: l1 level1 lfo2; text-align: justify; text-indent: -22.5pt;"><span class="Apple-style-span" style="font-family: inherit;"><span style="color: black;">1.<span style="font: normal normal normal 7pt/normal 'Times New Roman';"><span class="Apple-style-span" style="font-size: small;"> </span></span></span><span style="color: black;">Simple<o:p></o:p></span><u1:p></u1:p></span></div><div style="margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 22.5pt; margin-right: 0in; margin-top: 0in; text-align: justify;"><span class="Apple-style-span" style="font-family: inherit;"><span style="color: black;">The Java programming language using syntax similar to C++ but the syntax of Java has improved a lot, especially eliminating the use of pointers and multiple inheritance. Java also uses automatic memory allocation and memory garbage collection.<o:p></o:p></span><u1:p></u1:p></span></div><div style="margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 22.5pt; margin-right: 0in; margin-top: 0in; mso-list: l1 level1 lfo2; text-align: justify; text-indent: -22.5pt;"><span class="Apple-style-span" style="font-family: inherit;"><span style="color: black;">2.<span style="font: normal normal normal 7pt/normal 'Times New Roman';"><span class="Apple-style-span" style="font-size: small;"> </span></span></span><span style="color: black;">Object-Oriented (OO)<o:p></o:p></span><u1:p></u1:p></span></div><div style="margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 22.5pt; margin-right: 0in; margin-top: 0in; text-align: justify;"><span class="Apple-style-span" style="font-family: inherit;"><span style="color: black;">Java using object-oriented programming makes the program can be created in a modular and can be reused. Object-oriented programming models the real world into objects and makes interaction between the objects.<o:p></o:p></span><u1:p></u1:p></span></div><div style="margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 22.5pt; margin-right: 0in; margin-top: 0in; mso-list: l1 level1 lfo2; text-align: justify; text-indent: -22.5pt;"><span class="Apple-style-span" style="font-family: inherit;"><span style="color: black;">3.<span style="font: normal normal normal 7pt/normal 'Times New Roman';"><span class="Apple-style-span" style="font-size: small;"> </span></span></span><span style="color: black;">Can be distributed easily<o:p></o:p></span><u1:p></u1:p></span></div><div style="margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 22.5pt; margin-right: 0in; margin-top: 0in; text-align: justify;"><span class="Apple-style-span" style="font-family: inherit;"><span style="color: black;">Java was made to create distributed applications easily with the integrated networking libraries in Java.<o:p></o:p></span><u1:p></u1:p></span></div><div style="margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 22.5pt; margin-right: 0in; margin-top: 0in; mso-list: l1 level1 lfo2; text-align: justify; text-indent: -22.5pt;"><span class="Apple-style-span" style="font-family: inherit;"><span style="color: black;">4.<span style="font: normal normal normal 7pt/normal 'Times New Roman';"><span class="Apple-style-span" style="font-size: small;"> </span></span></span><span style="color: black;">Interpreter<o:p></o:p></span><u1:p></u1:p></span></div><div style="margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 22.5pt; margin-right: 0in; margin-top: 0in; text-align: justify;"><span class="Apple-style-span" style="font-family: inherit;"><span style="color: black;">Java programs executed using the interpreter of the Java Virtual Machine (JVM). This causes the Java source code that has been compiled into Java bytecodes can run on different platforms.<o:p></o:p></span><u1:p></u1:p></span></div><div style="margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 22.5pt; margin-right: 0in; margin-top: 0in; mso-list: l1 level1 lfo2; text-align: justify; text-indent: -22.5pt;"><span class="Apple-style-span" style="font-family: inherit;"><span style="color: black;">5.<span style="font: normal normal normal 7pt/normal 'Times New Roman';"><span class="Apple-style-span" style="font-size: small;"> </span></span></span><span style="color: black;">Robust<o:p></o:p></span><u1:p></u1:p></span></div><div style="margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 22.5pt; margin-right: 0in; margin-top: 0in; text-align: justify;"><span class="Apple-style-span" style="font-family: inherit;"><span style="color: black;">Java has a high reliability. Compiler in Java has the ability to detect errors more thoroughly than any other programming language. Java has a runtime-exception handling to help overcome the errors in programming.<o:p></o:p></span><u1:p></u1:p></span></div><div style="margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 22.5pt; margin-right: 0in; margin-top: 0in; mso-list: l1 level1 lfo2; text-align: justify; text-indent: -22.5pt;"><span class="Apple-style-span" style="font-family: inherit;"><span style="color: black;">6.<span style="font: normal normal normal 7pt/normal 'Times New Roman';"><span class="Apple-style-span" style="font-size: small;"> </span></span></span><span style="color: black;">Safe<o:p></o:p></span><u1:p></u1:p></span></div><div style="margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 22.5pt; margin-right: 0in; margin-top: 0in; text-align: justify;"><span class="Apple-style-span" style="font-family: inherit;"><span style="color: black;">As a programming language for Internet and distributed applications, Java has several security mechanisms to keep the application to not be used to damage a computer system that runs the application.<o:p></o:p></span><u1:p></u1:p></span></div><div style="margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 22.5pt; margin-right: 0in; margin-top: 0in; mso-list: l1 level1 lfo2; text-align: justify; text-indent: -22.5pt;"><span class="Apple-style-span" style="font-family: inherit;"><span style="color: black;">7.<span style="font: normal normal normal 7pt/normal 'Times New Roman';"><span class="Apple-style-span" style="font-size: small;"> </span></span></span><span style="color: black;">Architecture Neutral<o:p></o:p></span></span></div><div style="margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 22.5pt; margin-right: 0in; margin-top: 0in; text-align: justify;"><span class="Apple-style-span" style="font-family: inherit;"><span style="color: black;">Java programs are platform independent. The program simply has one version that can run on different platforms with a Java Virtual Machine.<o:p></o:p></span><u1:p></u1:p></span></div><div style="margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 22.5pt; margin-right: 0in; margin-top: 0in; mso-list: l1 level1 lfo2; text-align: justify; text-indent: -22.5pt;"><span class="Apple-style-span" style="font-family: inherit;"><span style="color: black;">8.<span style="font: normal normal normal 7pt/normal 'Times New Roman';"><span class="Apple-style-span" style="font-size: small;"> </span></span></span><span style="color: black;">Portable<o:p></o:p></span><u1:p></u1:p></span></div><div style="margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 22.5pt; margin-right: 0in; margin-top: 0in; text-align: justify;"><span class="Apple-style-span" style="font-family: inherit;"><span style="color: black;">Java programs can easily be taken to different platforms without having to be recompiled.<o:p></o:p></span><u1:p></u1:p></span></div><div style="margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 22.5pt; margin-right: 0in; margin-top: 0in; mso-list: l1 level1 lfo2; text-align: justify; text-indent: -22.5pt;"><span class="Apple-style-span" style="font-family: inherit;"><span style="color: black;">9.<span style="font: normal normal normal 7pt/normal 'Times New Roman';"><span class="Apple-style-span" style="font-size: small;"> </span></span></span><span style="color: black;">Performance <o:p></o:p></span></span></div><div style="margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 22.5pt; margin-right: 0in; margin-top: 0in; text-align: justify;"><span class="Apple-style-span" style="font-family: inherit;"><span style="color: black;">Performance in Java is often said to be less high. However, Java performance can be improved using other Java compilations such as artificial Inprise, Microsoft or Symantec that using Just In Time Compilers (JIT).<o:p></o:p></span><u1:p></u1:p></span></div><div style="margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 22.5pt; margin-right: 0in; margin-top: 0in; mso-list: l1 level1 lfo2; text-align: justify; text-indent: -22.5pt;"><span class="Apple-style-span" style="font-family: inherit;"><span style="color: black;">10.<span style="font: normal normal normal 7pt/normal 'Times New Roman';"><span class="Apple-style-span" style="font-size: small;"> </span></span></span><span style="color: black;">Multithreaded<o:p></o:p></span><u1:p></u1:p></span></div><div style="margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 22.5pt; margin-right: 0in; margin-top: 0in; text-align: justify;"><span class="Apple-style-span" style="font-family: inherit;"><span style="color: black;">Java has the ability to create a program that can do several jobs at once and simultaneously.<o:p></o:p></span><u1:p></u1:p></span></div><div style="margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 22.5pt; margin-right: 0in; margin-top: 0in; mso-list: l1 level1 lfo2; text-align: justify; text-indent: -22.5pt;"><span class="Apple-style-span" style="font-family: inherit;"><span style="color: black;">11.<span style="font: normal normal normal 7pt/normal 'Times New Roman';"><span class="Apple-style-span" style="font-size: small;"> </span></span></span><span style="color: black;">Dynamic<o:p></o:p></span><u1:p></u1:p></span></div><div style="margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 22.5pt; margin-right: 0in; margin-top: 0in; text-align: justify;"><span style="color: black; font-family: inherit;">Java is designed to be run in a dynamic environment. A change in a class by adding properties or methods can be performed without disturbing the program that uses that class.</span></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-1860948775305280018.post-81284764829542124662011-02-22T20:27:00.013+07:002011-05-21T22:08:48.842+07:00Vegetarian Lifestyle!<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIe8ywhgEKAG6GI1TFJ2eBlSjwUt7cBRn4bDqxQlpCynz6bRiN-YsH0Uq6vGJDGs-BNRAFLMJAZlVWGXsppxwuWMDYMeCcuDFOcd0vsq5a9oUZJiWkrnfIj6dlEzf-CT_fuKBqdXzH4lo/s1600/bc_vegetarian_icon1.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="200" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIe8ywhgEKAG6GI1TFJ2eBlSjwUt7cBRn4bDqxQlpCynz6bRiN-YsH0Uq6vGJDGs-BNRAFLMJAZlVWGXsppxwuWMDYMeCcuDFOcd0vsq5a9oUZJiWkrnfIj6dlEzf-CT_fuKBqdXzH4lo/s200/bc_vegetarian_icon1.jpg" width="200" /></a></div><div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in; text-align: justify; text-indent: 21.25pt;">Vegetarian or vegan are so popular in hxc scene. People who are straight edge usually they go to vegetarian or vegan even not at all. Now I will tell you about vegetarianism. What is vegetarian? And how to become vegetarian?<o:p></o:p></div><div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in; text-align: justify; text-indent: 21.25pt;">For much of the world, vegetarianism is largely a matter of economics: Meat costs a lot more than, soy, beans or rice, so meat becomes a special-occasion dish (if it's eaten at all). Even where meat is more plentiful, it's still used in moderation, often providing a side note to a meal rather than taking center stage.</div><a name='more'></a><br />
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in; text-align: justify; text-indent: 21.25pt;">In countries like the United States where meat is not as expensive, though, people choose to be vegetarians for reasons other than cost. Parental preferences, religious or other beliefs, and health issues are among the most common reasons for choosing to be a vegetarian. Many people choose a vegetarian diet out of concern over animal rights or the environment. And lots of people have more than one reason for choosing vegetarianism.<o:p></o:p></div><div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in; text-align: justify; text-indent: 21.25pt;">When deciding what type of vegetarian you want to be, think about what you want to include or avoid. You don’t need to fit into one of these categories, but understanding them will help you think about your short-term and long-term goals.<o:p></o:p></div><div class="MsoListParagraphCxSpFirst" style="margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 45.0pt; margin-right: 0in; margin-top: 0in; mso-add-space: auto; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -23.75pt;">1.<span style="font: 7pt 'Times New Roman';"> </span>Pescatarian (also spelled pescetarian): The word “pescatarian” is occasionally used to describe those who abstain from eating all meat and animal flesh with the exception of fish. Although the word is not commonly used, more and more people are adopting this kind of diet, usually for health reasons or as a stepping stone to a fully vegetarian diet.<o:p></o:p></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCs22dAjS0ovvitd9x7ASqSP5imTTeQmUHZNswsKrSzUexbrq2xp24_s19EDmE1WqxcoRKqfs61MEK-ZiOFK2zRMhASAPm80Q9hUaocNAcIuZ2yRBy8pGdYvRvRa99iaySbUaCKdi33vM/s1600/pyramid-vegetarian.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="299" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCs22dAjS0ovvitd9x7ASqSP5imTTeQmUHZNswsKrSzUexbrq2xp24_s19EDmE1WqxcoRKqfs61MEK-ZiOFK2zRMhASAPm80Q9hUaocNAcIuZ2yRBy8pGdYvRvRa99iaySbUaCKdi33vM/s320/pyramid-vegetarian.jpg" width="320" /></a></div><div class="MsoListParagraphCxSpMiddle" style="margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 45.0pt; margin-right: 0in; margin-top: 0in; mso-add-space: auto; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -23.75pt;">2.<span style="font: 7pt 'Times New Roman';"> </span>Flexitarian/Semi-vegetarian: You don’t have to be vegetarian to love vegetarian food! “Flexitarian” is a term recently coined to describe those who eat a mostly vegetarian diet, but occasionally eat meat.<o:p></o:p></div><div class="MsoListParagraphCxSpMiddle" style="margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 45.0pt; margin-right: 0in; margin-top: 0in; mso-add-space: auto; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -23.75pt;">3.<span style="font: 7pt 'Times New Roman';"> </span>Vegetarian (Lacto-ovo- vegetarian): When most people think of vegetarians, they think of lacto-ovo-vegetarians. People who do not eat beef, pork, poultry, fish, shellfish or animal flesh of any kind, but do eat eggs and dairy products are lacto-ovo vegetarians (“lacto” comes from the Latin for milk, and “ovo” for egg). Lacto-vegetarian is used to describe a vegetarian who does not eat eggs, but does eat dairy products. Ovo-vegetarian refers to people who do not eat meat or dairy products but do eat eggs.<o:p></o:p></div><div class="MsoListParagraphCxSpMiddle" style="margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 45.0pt; margin-right: 0in; margin-top: 0in; mso-add-space: auto; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -23.75pt;">4.<span style="font: 7pt 'Times New Roman';"> </span>Vegan: Vegans do not eat meat of any kind and also do not eat eggs, dairy products, or processed foods containing these or other animal-derived ingredients such as gelatin. Many vegans also refrain from eating foods that are made using animal products that may not contain animal products in the finished process, such as sugar and some wines. There is some debate as to whether certain foods, such as honey, fit into a vegan diet.<o:p></o:p></div><div class="MsoListParagraphCxSpMiddle" style="margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 45.0pt; margin-right: 0in; margin-top: 0in; mso-add-space: auto; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -23.75pt;">5.<span style="font: 7pt 'Times New Roman';"> </span>Raw vegan/Raw food diet: A raw vegan diet consists of unprocessed vegan foods that have not been heated above 115 degrees Fahrenheit (46 degrees Celsius). “Raw foodists” believe that foods cooked above this temperature have lost a significant amount of their nutritional value and are harmful to the body.<o:p></o:p></div><div class="MsoListParagraphCxSpLast" style="margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 45.0pt; margin-right: 0in; margin-top: 0in; mso-add-space: auto; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -23.75pt;">6.<span style="font: 7pt 'Times New Roman';"> </span>Macrobiotic: The macrobiotic diet, revered by some for its healthy and healing qualities, includes unprocessed vegan foods, such as whole grains, fruits and vegetables, and allows the occasional consumption of fish. Sugar and refined oils are avoided. Perhaps the most unique qualifier of the macrobiotic diet is its emphasis on the consumption of Asian vegetables, such as daikon, and sea vegetables, such as seaweed.<o:p></o:p></div>Yudhitaprawesti Shahranuwiragustihttp://www.blogger.com/profile/11277945009359187722noreply@blogger.com0tag:blogger.com,1999:blog-1860948775305280018.post-50967307327880562972011-02-15T23:19:00.003+07:002011-02-16T11:08:07.235+07:00Black and White<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_ewE9HXzV_vrqG_rLr37XwOaQgNRcF90g-qt-xDWquqZE7ekb9BbMPOxHoo5F0ohQ1rcQlWZ6B2XpVMLZfBMr-jbuIa2PTMyPVrhVUbQSqhKA_R1J3KUkQNXvItS8aMeJ3c3seXP5SBw/s1600/75830021.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_ewE9HXzV_vrqG_rLr37XwOaQgNRcF90g-qt-xDWquqZE7ekb9BbMPOxHoo5F0ohQ1rcQlWZ6B2XpVMLZfBMr-jbuIa2PTMyPVrhVUbQSqhKA_R1J3KUkQNXvItS8aMeJ3c3seXP5SBw/s320/75830021.JPG" width="212" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">"Jail" - yudhit</td></tr>
</tbody></table><a name='more'></a><br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4hRql_Z2a9En2z7EnbPIv690Ug7U2qxTQg3smK5l7Il57ZJsFbNxNXt09mLDX4JtxKhuNtY22cpHnR4cW_W6U9nI0TfZj_ezOHSFcZtqUdHOZJLSjI9cIUgZKCf6BvnM8wgzVNIAMgZA/s1600/59210004.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="212" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4hRql_Z2a9En2z7EnbPIv690Ug7U2qxTQg3smK5l7Il57ZJsFbNxNXt09mLDX4JtxKhuNtY22cpHnR4cW_W6U9nI0TfZj_ezOHSFcZtqUdHOZJLSjI9cIUgZKCf6BvnM8wgzVNIAMgZA/s320/59210004.JPG" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">"Just smile" - yudhit</td></tr>
</tbody></table><br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAyQPipGBHW1CxxcsffIi5mR_9fVMeO_xCwDPZpQ-ukaTigWSsRjz6qqQYioMJpOiqh_IVeLw6cRcUsaAg9gFcQNSs7cZuXi-ckdO1kAtzt77yqfjkdrO7pRjIUJI8SrLdrt5NxhoQAuw/s1600/59210006.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="212" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAyQPipGBHW1CxxcsffIi5mR_9fVMeO_xCwDPZpQ-ukaTigWSsRjz6qqQYioMJpOiqh_IVeLw6cRcUsaAg9gFcQNSs7cZuXi-ckdO1kAtzt77yqfjkdrO7pRjIUJI8SrLdrt5NxhoQAuw/s320/59210006.JPG" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">by eri</td></tr>
</tbody></table><br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3WV6CTRqVd9Lce0CYebUIEwrCg8V0QpJsM11Wnqe6va4C09DhMCSgeWUJyOuf3Xexv6TnREq9mLkMH5OYYMKFujsM9GVMm5ehaFIeFK2b_rfHV_fBF8fOhT7ELItdno9CWeAt5_V5uF0/s1600/75830005.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="212" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3WV6CTRqVd9Lce0CYebUIEwrCg8V0QpJsM11Wnqe6va4C09DhMCSgeWUJyOuf3Xexv6TnREq9mLkMH5OYYMKFujsM9GVMm5ehaFIeFK2b_rfHV_fBF8fOhT7ELItdno9CWeAt5_V5uF0/s320/75830005.JPG" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">by yudhit</td></tr>
</tbody></table><br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtYBuWWmUGFpPwvX6ZvoXMWZwnlvMXXfWivr5Wo9Tugv1ZjRyqEuvYeOo5gCprsR5AYgsMm8SG-f7MpnRF_KXQ7VNbGayPWYIVgJdO3g7Y6XGWVsOjRFu9I1lFgOrdXwrQrv-zIbLchzc/s1600/75830011.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="212" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtYBuWWmUGFpPwvX6ZvoXMWZwnlvMXXfWivr5Wo9Tugv1ZjRyqEuvYeOo5gCprsR5AYgsMm8SG-f7MpnRF_KXQ7VNbGayPWYIVgJdO3g7Y6XGWVsOjRFu9I1lFgOrdXwrQrv-zIbLchzc/s320/75830011.JPG" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">by yudhit</td></tr>
</tbody></table><br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYAemB2pCq7yRb9CQc5OpkTRy5r7z3ahJoX-mF3f4j2QcDH66Al6Xe1MNYon5DbUT7TipWOYVSwKbGVI6I5mwxnhLyvrLMBKXTJHKaWtHea_lD9J3O-4FOWHCgB3hxlm7XlH8SgJZi8sE/s1600/75830012.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYAemB2pCq7yRb9CQc5OpkTRy5r7z3ahJoX-mF3f4j2QcDH66Al6Xe1MNYon5DbUT7TipWOYVSwKbGVI6I5mwxnhLyvrLMBKXTJHKaWtHea_lD9J3O-4FOWHCgB3hxlm7XlH8SgJZi8sE/s320/75830012.JPG" width="212" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">by yudhit</td></tr>
</tbody></table><br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwXYnV8MdSO7KN6d1gaR__y40ndoWesvXRHOb1PYitCcc1ZTgidcYJaB1SSzOTEtHU3i3qI5tGyghz7ZeCOYDqKEHUXKqM0p81MnX64Tdvtl-sOYBimfBODXlAqIJ3MCyS1_rJ3inBjQI/s1600/75830017.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwXYnV8MdSO7KN6d1gaR__y40ndoWesvXRHOb1PYitCcc1ZTgidcYJaB1SSzOTEtHU3i3qI5tGyghz7ZeCOYDqKEHUXKqM0p81MnX64Tdvtl-sOYBimfBODXlAqIJ3MCyS1_rJ3inBjQI/s320/75830017.JPG" width="212" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">by yudhit</td></tr>
</tbody></table><br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIaR7qc_5Wm3BVYuxg7eCyZjgCZIwVGZiwOrjq_-8ru-F-H_iqaq5jSviKxQdvPI-aXuCdonguRT2l2ASZx3QT0OVm9aQzgYqmJ7sNym1SusMO7Pdz1f_iBK0-uAlU108hw474BITzkIA/s1600/75830018.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIaR7qc_5Wm3BVYuxg7eCyZjgCZIwVGZiwOrjq_-8ru-F-H_iqaq5jSviKxQdvPI-aXuCdonguRT2l2ASZx3QT0OVm9aQzgYqmJ7sNym1SusMO7Pdz1f_iBK0-uAlU108hw474BITzkIA/s320/75830018.JPG" width="212" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">"What are you looking at.." - yudhit</td></tr>
</tbody></table><br />
<div class="separator" style="clear: both; text-align: center;"></div>Yudhitaprawesti Shahranuwiragustihttp://www.blogger.com/profile/11277945009359187722noreply@blogger.com0tag:blogger.com,1999:blog-1860948775305280018.post-31518129579720546132011-02-15T22:20:00.016+07:002011-02-16T10:56:17.738+07:00Colours<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiA_532PH4iRYc1TbGi8Ftcp7UlfZRfJDY86FrwuiaimJaEB211WV0NYtf58fK6Ixd2AjcpuhEgFDUEq5tpfKv8m2BXbn_7c6cRwM7J3Bo17qL2ZC1X-FlVvUtrti3xhw30Dcktj-WlKMM/s1600/IMG_8682.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="213" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiA_532PH4iRYc1TbGi8Ftcp7UlfZRfJDY86FrwuiaimJaEB211WV0NYtf58fK6Ixd2AjcpuhEgFDUEq5tpfKv8m2BXbn_7c6cRwM7J3Bo17qL2ZC1X-FlVvUtrti3xhw30Dcktj-WlKMM/s320/IMG_8682.JPG" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">"Butterfly that never die" - yudhit</td></tr>
</tbody></table><div class="separator" style="clear: both; text-align: center;"></div><a name='more'></a><table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKfdlifd5zrgPnlULJCFqfK6mWs5e2zw62l7h9CkvbD7rtCxQBpfOAwO2wlUyXO-HBfYVr2NneS9aI73QyYP-C3bUO8RDSnWZqwehHXD4bnllc8z2sZ_ACNlDOj_MBQXpY9VdF_yZUfsY/s1600/IMG_8586.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="213" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKfdlifd5zrgPnlULJCFqfK6mWs5e2zw62l7h9CkvbD7rtCxQBpfOAwO2wlUyXO-HBfYVr2NneS9aI73QyYP-C3bUO8RDSnWZqwehHXD4bnllc8z2sZ_ACNlDOj_MBQXpY9VdF_yZUfsY/s320/IMG_8586.JPG" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">"Flower-Blower" - yudhit</td></tr>
</tbody></table><br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIhsbzsngyFgLgoSkX76X_f0_A6GHmNNpYubn9zpoHV6v9iLmiJMyzji8S0IZa6TVIcFw85vuU6M4O3-WZxzjt308LrlbG43-ZHJc_Hefy2nlEhTwA0mCClC2s1aUepJ7hOiiORpUSlVU/s1600/IMG_8587.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="213" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIhsbzsngyFgLgoSkX76X_f0_A6GHmNNpYubn9zpoHV6v9iLmiJMyzji8S0IZa6TVIcFw85vuU6M4O3-WZxzjt308LrlbG43-ZHJc_Hefy2nlEhTwA0mCClC2s1aUepJ7hOiiORpUSlVU/s320/IMG_8587.JPG" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">"Spot light" - yudhit</td></tr>
</tbody></table><br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEyNb57gfmI4DKFd04JBMYtiVHMwbGZfogHMMB-TuFbjZxP6iex_jKYwBS48R5T6jfoiN18rEufDssGMfJBoK_DrMUsQNJMG4QB4w_BtuRYDpao5qeCYCfE8aE95B402VfWtVpWVrinGA/s1600/IMG_8634.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="213" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEyNb57gfmI4DKFd04JBMYtiVHMwbGZfogHMMB-TuFbjZxP6iex_jKYwBS48R5T6jfoiN18rEufDssGMfJBoK_DrMUsQNJMG4QB4w_BtuRYDpao5qeCYCfE8aE95B402VfWtVpWVrinGA/s320/IMG_8634.JPG" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">"Pinky" - yudhit</td></tr>
</tbody></table><br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRn6p7wfZf2hOPd91RoePxApBujDUPb4AfjwtIMKXUwp1MYTGdpX5co3yyJMv2nFeyeyscxy_zdz_pNCpD2GOobU8k9esxTt80Ayl7-CJQ9t-d9nYG0QDZC2tkBxG68IcXMlYNjuIQmnM/s1600/IMG_8636.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="213" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRn6p7wfZf2hOPd91RoePxApBujDUPb4AfjwtIMKXUwp1MYTGdpX5co3yyJMv2nFeyeyscxy_zdz_pNCpD2GOobU8k9esxTt80Ayl7-CJQ9t-d9nYG0QDZC2tkBxG68IcXMlYNjuIQmnM/s320/IMG_8636.JPG" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">"White kamboja" - yudhit</td></tr>
</tbody></table><br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGXTd5T3LfRPtfPKmrYTCIihjvwCNLgdO7xj5o-8uGjj8el6ah8zhaOMlsjsnMKAf3rK14gkJgToeGvt3A1pZPDmHStyUtOAbB2Dx7TvuqJDHrux4DnC7BkyP6u8Df2cgAyhcXxC76uY4/s1600/IMG_8640.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="213" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGXTd5T3LfRPtfPKmrYTCIihjvwCNLgdO7xj5o-8uGjj8el6ah8zhaOMlsjsnMKAf3rK14gkJgToeGvt3A1pZPDmHStyUtOAbB2Dx7TvuqJDHrux4DnC7BkyP6u8Df2cgAyhcXxC76uY4/s320/IMG_8640.JPG" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">"Tricky" -yudhit</td></tr>
</tbody></table><br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiU7w24_2xGqcft1R3DOCrcN86kJQUse21t4HKG9uZXQr-YkuoxcTxkPTH-CMc53225rGKnY38_YKaMnSmPf2svkzdqONztyiYKr3DS6EsHR60p4h0EPxwXWgWz79s7i25tEvbR8wQ24Fs/s1600/IMG_8643.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="213" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiU7w24_2xGqcft1R3DOCrcN86kJQUse21t4HKG9uZXQr-YkuoxcTxkPTH-CMc53225rGKnY38_YKaMnSmPf2svkzdqONztyiYKr3DS6EsHR60p4h0EPxwXWgWz79s7i25tEvbR8wQ24Fs/s320/IMG_8643.JPG" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">"Branch" - yudhit</td></tr>
</tbody></table><br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKnOEn7DMOHC5iyB0O1mdzeAOwsFS_WtDwuXC7-qWAtanJ-RBwDCocWZ_4JPxlE_MVISarKOyQi_kxlwD0gdn7z-MhLwY4KJbj_S_bajAZvZbNC4aPvQpZqX5FtCD4B4me3HHMQBmVQbg/s1600/IMG_8644.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="213" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKnOEn7DMOHC5iyB0O1mdzeAOwsFS_WtDwuXC7-qWAtanJ-RBwDCocWZ_4JPxlE_MVISarKOyQi_kxlwD0gdn7z-MhLwY4KJbj_S_bajAZvZbNC4aPvQpZqX5FtCD4B4me3HHMQBmVQbg/s320/IMG_8644.JPG" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">"Dragonfly" - yudhit</td></tr>
</tbody></table><br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIzM_CkERqN29-q7tzJt9_y4gS8UwmD62ub52njbQifxjAp16LH0YA8wRdREVty2WSrtkpUrPvqSi3j7s6PhcZT3-K6izj5mjLwkQnTnMUc1lLeJbPAIGjUecechBSDymLNCZ_r5f60vQ/s1600/IMG_8694.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="213" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIzM_CkERqN29-q7tzJt9_y4gS8UwmD62ub52njbQifxjAp16LH0YA8wRdREVty2WSrtkpUrPvqSi3j7s6PhcZT3-K6izj5mjLwkQnTnMUc1lLeJbPAIGjUecechBSDymLNCZ_r5f60vQ/s320/IMG_8694.JPG" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">"Smug cat" - yudhit</td></tr>
</tbody></table><br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPIrXmnyTOT85QHdtSvcj_rd7VmjFuXR76X9gZiqph1gNf1Ie9XWOXSq3BW9r9HqPgRbI_6CNywLKKFWeo91Ngax2bq-9s7VcALqS-VlVnoENCDc95GmrVFaZg4q0qIEYwgbqf_Edtcp0/s1600/000007.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="216" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPIrXmnyTOT85QHdtSvcj_rd7VmjFuXR76X9gZiqph1gNf1Ie9XWOXSq3BW9r9HqPgRbI_6CNywLKKFWeo91Ngax2bq-9s7VcALqS-VlVnoENCDc95GmrVFaZg4q0qIEYwgbqf_Edtcp0/s320/000007.JPG" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">"Chips" - yudhit</td></tr>
</tbody></table><br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6wNUHVv1v2CQ_cQxivb2pP8ESIQ51LVRQII3ixG75UDayZTm5iZhOONS8bN1MN9fI3tXXEFkQvD0cxVw3hjyzbvJ9GnP82-1doqDlpxglsd7PsPZJkrrtlLX-WpN5JMU15Cxi7d5rS-I/s1600/19.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6wNUHVv1v2CQ_cQxivb2pP8ESIQ51LVRQII3ixG75UDayZTm5iZhOONS8bN1MN9fI3tXXEFkQvD0cxVw3hjyzbvJ9GnP82-1doqDlpxglsd7PsPZJkrrtlLX-WpN5JMU15Cxi7d5rS-I/s320/19.JPG" width="216" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">by eri</td></tr>
</tbody></table><br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1VEikpGjABEIkE-lIY-wt3aeoiA-8EJVTXr2bct2V3DCneWW9u-sSZjxdSGczzTUz_3DJW08YhrpimvjOUFxgO7AACnLxpPYvIrINAD5TcHfW7OjHZgtCU4UysBI9j6sF2qT9C4zBfMc/s1600/000020.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1VEikpGjABEIkE-lIY-wt3aeoiA-8EJVTXr2bct2V3DCneWW9u-sSZjxdSGczzTUz_3DJW08YhrpimvjOUFxgO7AACnLxpPYvIrINAD5TcHfW7OjHZgtCU4UysBI9j6sF2qT9C4zBfMc/s320/000020.JPG" width="216" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">"Light" - yudhit</td></tr>
</tbody></table><br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5_kEIToRbkVFFlvFRTuWtwZRcS5ojd_WfvsSKYwfYp8ZhSQelYUKopqXlBUvuqRppv11rN511f7uDRKBiief3cCkEYZG9EZByYfvLoJpToURWfzbK7p3bq7M9t7_FrOCgoml0v3QYwB4/s1600/00031.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="216" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5_kEIToRbkVFFlvFRTuWtwZRcS5ojd_WfvsSKYwfYp8ZhSQelYUKopqXlBUvuqRppv11rN511f7uDRKBiief3cCkEYZG9EZByYfvLoJpToURWfzbK7p3bq7M9t7_FrOCgoml0v3QYwB4/s320/00031.JPG" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">by eri</td></tr>
</tbody></table><br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiN18wa6hliDaX3LO6U-dugGYAQoCr1dfX_GaAMZy3gz9u3AY0mtuAD1L0TS525XYJjeVOYpxSZ2uPQ9wU95HkTKnb51xsdINys4UGBxnmOTdMH21y7f0xk_cGEqqUaUMf4-9p7ILMSQoM/s1600/00041.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiN18wa6hliDaX3LO6U-dugGYAQoCr1dfX_GaAMZy3gz9u3AY0mtuAD1L0TS525XYJjeVOYpxSZ2uPQ9wU95HkTKnb51xsdINys4UGBxnmOTdMH21y7f0xk_cGEqqUaUMf4-9p7ILMSQoM/s320/00041.JPG" width="216" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">"Flirty" - yudhit</td></tr>
</tbody></table><br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6JZvVYMG4wkDbCZKgUfHPMWopMB8TrfsLe4MmNrI2JLJ5RBGvgUf1U4ittmKmaFsl3K3PYL8ua5UFv7wk2plbBsTxzCnriei0JEC6MqgK7nnVwB2gquthDqsmr0ceTDFR4Ga6dvM6o2U/s1600/00043.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6JZvVYMG4wkDbCZKgUfHPMWopMB8TrfsLe4MmNrI2JLJ5RBGvgUf1U4ittmKmaFsl3K3PYL8ua5UFv7wk2plbBsTxzCnriei0JEC6MqgK7nnVwB2gquthDqsmr0ceTDFR4Ga6dvM6o2U/s320/00043.JPG" width="216" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">"Big nose" -yudhit</td></tr>
</tbody></table><br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7dgOeAyhgHK4BIZWL_Tsera071cB7JbxL7LlBy16TCDjRYBOxVEdNWJA9G79XZE8NXYtHLWX7jmCvlVXPDsLIceTuXbBw_YoC3m33-UzkkG30lQ0apPBN9OhtlTGKR2vcemMf51qCbOU/s1600/00046.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="216" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7dgOeAyhgHK4BIZWL_Tsera071cB7JbxL7LlBy16TCDjRYBOxVEdNWJA9G79XZE8NXYtHLWX7jmCvlVXPDsLIceTuXbBw_YoC3m33-UzkkG30lQ0apPBN9OhtlTGKR2vcemMf51qCbOU/s320/00046.JPG" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">"Near Husein" - yudhit</td></tr>
</tbody></table><br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgv3bA2-jPqMyAlgn5Ij8curKakZ8MHk_Odw2LFeb6Z-h2ANZvItcO3M7uVEvaDm-5yjD42mb54QHMCfQyE5uiHhpiOPC2MRLC1XhWjhGquYIP1xQtvKLhHjJ4nktU1rDJn1_Y4BcADy84/s1600/000050.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgv3bA2-jPqMyAlgn5Ij8curKakZ8MHk_Odw2LFeb6Z-h2ANZvItcO3M7uVEvaDm-5yjD42mb54QHMCfQyE5uiHhpiOPC2MRLC1XhWjhGquYIP1xQtvKLhHjJ4nktU1rDJn1_Y4BcADy84/s320/000050.JPG" width="216" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">"Surrender" - yudhit</td></tr>
</tbody></table>Yudhitaprawesti Shahranuwiragustihttp://www.blogger.com/profile/11277945009359187722noreply@blogger.com0tag:blogger.com,1999:blog-1860948775305280018.post-89452766367693551392011-02-11T13:08:00.020+07:002011-02-22T21:37:35.921+07:00Straight Edge<div style="line-height: 18.0pt; margin-bottom: 6.0pt; margin-left: 0in; margin-right: 0in; margin-top: 4.8pt; text-align: justify; text-indent: 28.35pt;"><span class="Apple-style-span" style="font-family: Calibri, sans-serif; font-size: small;"><span class="Apple-style-span" style="font-size: 13px;"><b></b></span></span></div><span class="Apple-style-span" style="font-family: Calibri, sans-serif; font-size: small;"><b></b></span><br />
<span class="Apple-style-span" style="font-family: Calibri, sans-serif; font-size: small;"><b><div style="line-height: 18.0pt; margin-bottom: 6.0pt; margin-left: 0in; margin-right: 0in; margin-top: 4.8pt; text-align: justify; text-indent: 28.35pt;"><span class="Apple-style-span" style="font-size: small;"></span></div><div style="line-height: 18.0pt; margin-bottom: 6.0pt; margin-left: 0in; margin-right: 0in; margin-top: 4.8pt; text-align: justify; text-indent: 28.35pt;"><span style="font-size: 11pt; line-height: 115%;"><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;">What is straight edge? sXe?</span><span class="Apple-style-span" style="font-weight: normal;"><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"> Though there isn't a specific straight-edge look, this article will teach you how to live the sXe lifestyle.</span></span></span></div><div class="MsoNormal" style="text-align: justify; text-indent: 28.35pt;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjW1jnNxdlw4IOGgFV_YXFBw6tkxzNGff_ocJZW_X2bijQ5DJIhFmmC8n-RbOUxQ-JzC4TBTiBWbJwD8A2Z9UYHJPsDZdbt8wvvHlhWVakfeRJFibVcjNsssq9Pbz_A2f_9iydYSGLnstU/s1600/straightedge1.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><span class="Apple-style-span" style="font-weight: normal;"><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"><img border="0" height="200" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjW1jnNxdlw4IOGgFV_YXFBw6tkxzNGff_ocJZW_X2bijQ5DJIhFmmC8n-RbOUxQ-JzC4TBTiBWbJwD8A2Z9UYHJPsDZdbt8wvvHlhWVakfeRJFibVcjNsssq9Pbz_A2f_9iydYSGLnstU/s200/straightedge1.jpg" width="200" /></span></span></a><span class="Apple-style-span" style="color: #414141;"><span class="Apple-style-span" style="font-weight: normal;"><span style="font-size: 11pt; line-height: 115%;"><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;">Straight Edge, sXe, or edge, is a subculture that started in the hardcore punk culture and has moved into many other subcultures over the years. Straight edge is a philosophy of staying clean and sober: meaning refraining from using alcohol, tobacco, and recreational drugs. The principle "don't drink, don't smoke, don't free-sex" which came to be in the late 80s by Ian MacKaye and the band Minor Threat. The basic beliefs that drugs and alcohol were not needed and should be rejected. That one should live against the grain of popular society and live by rules and standards from themselves and not the ones dictated by society.</span></span></span></span><br />
<span class="Apple-style-span" style="color: #414141;"><span class="Apple-style-span" style="font-weight: normal;"><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"><span style="font-size: 11pt; line-height: 115%;"></span></span></span></span><br />
<span class="Apple-style-span" style="color: #414141;"><span class="Apple-style-span" style="font-weight: normal;"><span style="font-size: 11pt; line-height: 115%;"><a name='more'></a></span></span></span><br />
<span class="apple-style-span"><span style="color: #414141;"><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"><span class="Apple-style-span" style="font-weight: normal;"></span></span></span></span></div><div class="MsoNormal" style="text-align: justify; text-indent: 28.35pt;"><span class="Apple-style-span" style="color: #414141;"><span style="font-size: 11pt; line-height: 115%;"><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;">And what is X on your hand?</span><span class="Apple-style-span" style="font-weight: normal;"><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"> In the late 1970s and early 1980s a group of bands and kids began something that grew into a movement. It would become a movement that would outlive many of their involvement in the music and the scene. They didn't know what they were doing. They knew they didn't like what was going on around them, the self destruction, the self hatred, the pain and suffering caused by the punk mentality. The free sex attitude and all text above didn't make sense to them. They took a symbol that was originally used to identify them as being too young to drink so that the bartenders would know not to serve them and they made it their own. So they started setting themselves apart by wearing X's on their hands and by singing angry songs proclaiming:</span></span></span></span></div><div align="center" class="MsoNormal" style="text-align: center;"><span class="Apple-style-span" style="color: #414141;"><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"><span class="Apple-style-span" style="font-weight: normal;"></span></span></span><br />
<span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"><span class="Apple-style-span" style="color: #414141;"></span></span><br />
<span class="Apple-style-span" style="color: #414141;"><div class="MsoNormal" style="text-align: justify;"></div><div class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center;"><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;">"I'm a person just like you<o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center;"><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;">But I've got better things to do<o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center;"><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;">Than sit around and fuck my head<o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center;"><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;">Hang out with the living dead<o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center;"><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;">Snort white shit up my nose<o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center;"><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;">Pass out at the shows<o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center;"><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;">I don't even think about speed<o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center;"><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;">That's something I just don't need<o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center;"><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;">I've got the straight edge"<o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center;"><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"><br />
</span></div></span></div><div class="MsoNormal" style="text-align: justify; text-indent: 28.35pt;"><span class="Apple-style-span" style="color: #414141;"><span class="Apple-style-span" style="font-weight: normal;"><span style="font-size: 11pt; line-height: 115%;"><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;">The letter X is the most known symbol of straight edge, and is sometimes worn as a marking on the back of both hands, though it can be displayed on other body parts as well. Some followers of straight edge have also incorporated the symbol into clothing and pins.</span></span></span></span></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglpdrGIi04psxNvsnCTtVfYPmZar0pgfz9V9arLjfxS07_vBR6W5gR3GRwaioRDykPqaCGL4D33ggllzOBHU8LrjZ49-ccxamH01e4Bbet_HyRHoAyeQSksOyCju00hwK-2q994K7vISM/s1600/Straight-Edge-500x300.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span class="Apple-style-span" style="font-weight: normal;"><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"><img border="0" height="192" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglpdrGIi04psxNvsnCTtVfYPmZar0pgfz9V9arLjfxS07_vBR6W5gR3GRwaioRDykPqaCGL4D33ggllzOBHU8LrjZ49-ccxamH01e4Bbet_HyRHoAyeQSksOyCju00hwK-2q994K7vISM/s320/Straight-Edge-500x300.jpg" width="320" /></span></span></a></div><div class="MsoNormal" style="text-align: justify; text-indent: 28.35pt;"><span class="Apple-style-span" style="color: #414141;"><span class="Apple-style-span" style="font-weight: normal;"><span style="font-size: 11pt; line-height: 115%;"><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;">Since the late 1970s, straight edge has been a part of the punk scene. During that time, a wide variety of beliefs and ideas have been incorporated into straight edge including violence, vegetarianism, animal rights, communism and Hare Krishna beliefs. In many parts of the United States, straight edge is treated as a gang; however, recent studies suggest that only a small minority of the people who refer to themselves as straight edge are violent.</span></span></span></span></div><div class="separator" style="clear: both; text-align: center;"></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqPK1rGLyYSQQxTWlpIuxeQv5P2FtyIK_wOtP1MK6FLkArZLZr8md-H8Mv9d3JnXom32svDjaFTcfPNVlRv33KAzaXwGznHWAQTFIAZmsfWKS44y4W0uAJ_Dq3l_0iz11g4A1mS6E1tTo/s1600/VS086.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><span class="Apple-style-span" style="font-weight: normal;"><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"><img border="0" height="117" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqPK1rGLyYSQQxTWlpIuxeQv5P2FtyIK_wOtP1MK6FLkArZLZr8md-H8Mv9d3JnXom32svDjaFTcfPNVlRv33KAzaXwGznHWAQTFIAZmsfWKS44y4W0uAJ_Dq3l_0iz11g4A1mS6E1tTo/s200/VS086.jpg" width="200" /></span></span></a></div><div class="MsoNormal" style="text-align: justify; text-indent: 28.35pt;"><span class="Apple-style-span" style="color: #414141;"><span class="Apple-style-span" style="font-weight: normal;"><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"><br />
</span> </span></span></div><span class="Apple-style-span" style="color: #414141;"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; text-indent: 28.35pt;"><span class="Apple-style-span" style="font-weight: normal;"><span style="font-size: 11pt; line-height: 115%;"><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;">Now, we know what is X on their hand and what is straight edge. There are no dietary or religious beliefs tied to straight edge. And yes I’m Straight Edge! I think with straight edge we can life better. How about you? =)</span></span></span></div></span><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"><br />
<br />
</span> </b></span><br />
<span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"><br />
</span><br />
<span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"><br />
</span> <br />
<br />
<span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"><div class="MsoNormal">http://en.wikipedia.org/wiki/Straight_edge<o:p></o:p></div></span>Yudhitaprawesti Shahranuwiragustihttp://www.blogger.com/profile/11277945009359187722noreply@blogger.com18