tag:blogger.com,1999:blog-40680738467482895062024-03-12T21:17:34.603-07:00Kerberos UnleashedLearning while Working...kerbiehttp://www.blogger.com/profile/07665437560566279481noreply@blogger.comBlogger9125tag:blogger.com,1999:blog-4068073846748289506.post-50746945383971657232011-09-03T08:48:00.000-07:002011-09-03T08:48:13.338-07:00Places<div style="background-color: chocolate;"><br />
<span style="color: white; font-size: xx-small;"> RANDOM SHOTS @ SG</span></div><div align="center"><br />
<embed type="application/x-shockwave-flash" src="https://picasaweb.google.com/s/c/bin/slideshow.swf" width="600" height="400" flashvars="host=picasaweb.google.com&hl=en_US&feat=flashalbum&RGB=0x000000&feed=https%3A%2F%2Fpicasaweb.google.com%2Fdata%2Ffeed%2Fapi%2Fuser%2F106475880805760942202%2Falbumid%2F5647261126092678721%3Falt%3Drss%26kind%3Dphoto%26hl%3Den_US" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed><br />
kerbiehttp://www.blogger.com/profile/07665437560566279481noreply@blogger.com0tag:blogger.com,1999:blog-4068073846748289506.post-26944378867569051612011-09-03T08:34:00.000-07:002011-09-03T08:34:48.889-07:00What would you give up for an Asus ML Series Monitor?<br />
<div style="background-color: chocolate;"><br />
<span style="color: white; font-size: xx-small;"> I AM WILLING TO GIVE A BUNCH OF CHOPSTICKS FOR A BRAND NEW </span><span style="color: white; font-size: x-small;"><strong>23″ Asus ML Series 229H LED Monitor</strong></span></div><br />
<br />
<div align="center"><table style="width: auto;"><tbody>
<tr><td><a href="https://picasaweb.google.com/lh/photo/pUdrIPJWIkhKa2TSji2y1w?feat=embedwebsite"><img height="266" src="https://lh4.googleusercontent.com/-VTTWDmjnTE8/Tl8bqAzMeaI/AAAAAAAAAQ8/1FQXGMadBHw/s400/chopsticks.jpg" width="400" /></a></td></tr>
<tr><td style="font-family: arial,sans-serif; font-size: 11px; text-align: right;">From <a href="https://picasaweb.google.com/106475880805760942202/SGPhotos?authuser=0&feat=embedwebsite">SG Photos</a></td></tr>
</tbody></table></div><br />
<div align="right" style="color: #b45f06;"><div style="text-align: left;"><b style="color: black;">23″ Asus ML Series 229H LED <span class="IL_AD" id="IL_AD6">Monitor</span></b><span style="color: black;"> will </span><span class="IL_AD" id="IL_AD3" style="color: black;">bring</span><span style="color: black;"> all my works into life and show true colors in every pixel and angle of all my photos and designs.</span><i> </i></div><i>"</i><i>Asus ML Series: True colors in every angle"</i><br />
<span style="font-size: x-small;"><span style="color: #444444;">[This is my entry for <a href="http://www.yugatech.com/blog/contests/contest-what-would-you-give-up-for-an-asus-monitor/">Yugatech contest</a>]</span></span><i><br />
</i></div>kerbiehttp://www.blogger.com/profile/07665437560566279481noreply@blogger.com0tag:blogger.com,1999:blog-4068073846748289506.post-62038960441501824962011-07-22T03:30:00.000-07:002011-07-22T03:39:00.813-07:00Android Development Tutorial<span style="display: block; margin: 12px 0pt 4px;">Hello there, it's been a while since my last post. </span>This slide is for beginner android developers like me. :)<br />
<br />
<div align="center"><div id="__ss_2339951" style="width: 425px;" align="left"><b style="display: block; margin: 12px 0pt 4px;"><a href="http://www.slideshare.net/dtmilano/android-development-tutorial-v3" target="_blank" title="Android Development Tutorial V3">Android Development Tutorial V3</a></b> <iframe frameborder="0" height="355" marginheight="0" marginwidth="0" scrolling="no" src="http://www.slideshare.net/slideshow/embed_code/2339951" width="425"></iframe> <br />
<div style="padding: 5px 0pt 12px;">View more <a href="http://www.slideshare.net/" target="_blank">presentations</a> from <a href="http://www.slideshare.net/dtmilano" target="_blank">dtmilano</a> </div></div></div><br />
Kudos to the author of this slide! kerbiehttp://www.blogger.com/profile/07665437560566279481noreply@blogger.com0tag:blogger.com,1999:blog-4068073846748289506.post-54299853420513169942010-12-24T05:32:00.000-08:002010-12-24T05:32:13.348-08:00SKY<div style="background-color: chocolate;"><br />
<span style="color: white; font-size: xx-small;"> ROOFTOP SHOTS</span></div><div align="center"><div style="text-align: -webkit-auto;"><br />
</div><embed flashvars="host=picasaweb.google.com&hl=en_US&feat=flashalbum&RGB=0x000000&feed=http%3A%2F%2Fpicasaweb.google.com%2Fdata%2Ffeed%2Fapi%2Fuser%2F106475880805760942202%2Falbumid%2F5554228587890668961%3Falt%3Drss%26kind%3Dphoto%26hl%3Den_US" height="400" pluginspage="http://www.macromedia.com/go/getflashplayer" src="http://picasaweb.google.com/s/c/bin/slideshow.swf" type="application/x-shockwave-flash" width="600"></embed></div><br />
<br />
<br />
<br />
<br />
<div><br />
<br />
<br />
</div>kerbiehttp://www.blogger.com/profile/07665437560566279481noreply@blogger.com0tag:blogger.com,1999:blog-4068073846748289506.post-26600192418283349882010-12-23T00:46:00.001-08:002010-12-23T01:48:29.967-08:00TEST SHOTS<div style="background-color: chocolate;"><br />
<span style="color: white; font-size: xx-small;"> FIREWORKS</span></div><br />
<div align="center"><embed flashvars="host=picasaweb.google.com&hl=en_US&feat=flashalbum&RGB=0x000000&feed=http%3A%2F%2Fpicasaweb.google.com%2Fdata%2Ffeed%2Fapi%2Fuser%2F106475880805760942202%2Falbumid%2F5552616957958011361%3Falt%3Drss%26kind%3Dphoto%26hl%3Den_US" height="400" pluginspage="http://www.macromedia.com/go/getflashplayer" src="http://picasaweb.google.com/s/c/bin/slideshow.swf" type="application/x-shockwave-flash" width="600"></embed></div><br />
<br />
<br />
<div><br />
<br />
</div>kerbiehttp://www.blogger.com/profile/07665437560566279481noreply@blogger.com0tag:blogger.com,1999:blog-4068073846748289506.post-15335935848827055212010-12-23T00:41:00.000-08:002010-12-23T00:43:56.195-08:00OLD PHOTOS<div style="background-color: chocolate;"><br />
<span class="Apple-style-span" style="color: white; font-size: xx-small;"> OLD PICTURES [nokia N96 / sony w210]</span></div><div align="center"><div style="text-align: -webkit-auto;"><br />
</div><embed flashvars="host=picasaweb.google.com&hl=en_US&feat=flashalbum&RGB=0x000000&feed=http%3A%2F%2Fpicasaweb.google.com%2Fdata%2Ffeed%2Fapi%2Fuser%2F106475880805760942202%2Falbumid%2F5455894893626567457%3Falt%3Drss%26kind%3Dphoto%26hl%3Den_US" height="400" pluginspage="http://www.macromedia.com/go/getflashplayer" src="http://picasaweb.google.com/s/c/bin/slideshow.swf" type="application/x-shockwave-flash" width="600"></embed></div><br />
<br />
<br />
<div><br />
<br />
</div>kerbiehttp://www.blogger.com/profile/07665437560566279481noreply@blogger.com0tag:blogger.com,1999:blog-4068073846748289506.post-71284218181543718452010-06-03T22:03:00.000-07:002010-06-03T23:41:09.807-07:00Get Value, Index, Text on HTML Select Tag [Javascript]<script type="text/javascript">
function getSelectedIndex(id,id2){
var indx = document.getElementById(id).selectedIndex;
var op = document.getElementById(id2);
op.value ="Index is: " + indx;
}
function getSelectedValue(id,id2){
var val = document.getElementById(id).value;
var op = document.getElementById(id2);
op.value = "Value is: " + val;
}
function getSelectedTxt(id,id2){
var indx = document.getElementById(id).selectedIndex;
var txt = document.getElementById(id).options[indx].text;
var op = document.getElementById(id2);
op.value = "Text is: " + txt;
}
</script><br />
<br />
<br />
<div style="background-color: #ffff99;" width="60%"><br />
Code:<br />
<br />
<span class="Apple-style-span" style="color: #666666; font-family: monospace; font-size: small;"><span class="Apple-style-span" style="font-size: 12px; line-height: 18px;"> function getSelectedIndex(id,id2){</span></span><br />
<span class="Apple-style-span" style="color: #666666; font-family: monospace; font-size: small;"><span class="Apple-style-span" style="font-size: 12px; line-height: 18px;"> var indx = document.getElementById(id).selectedIndex;</span></span><br />
<span class="Apple-style-span" style="color: #666666; font-family: monospace; font-size: small;"><span class="Apple-style-span" style="font-size: 12px; line-height: 18px;"> var op = document.getElementById(id2);</span></span><br />
<span class="Apple-style-span" style="color: #666666; font-family: monospace; font-size: small;"><span class="Apple-style-span" style="font-size: 12px; line-height: 18px;"> op.value ="Index is: " + indx;</span></span><br />
<span class="Apple-style-span" style="color: #666666; font-family: monospace; font-size: small;"><span class="Apple-style-span" style="font-size: 12px; line-height: 18px;"> }</span></span><br />
<span class="Apple-style-span" style="color: #666666; font-family: monospace; font-size: small;"><span class="Apple-style-span" style="font-size: 12px; line-height: 18px;"> function getSelectedValue(id,id2){</span></span><br />
<span class="Apple-style-span" style="color: #666666; font-family: monospace; font-size: small;"><span class="Apple-style-span" style="font-size: 12px; line-height: 18px;"> var val = document.getElementById(id).value;</span></span><br />
<span class="Apple-style-span" style="color: #666666; font-family: monospace; font-size: small;"><span class="Apple-style-span" style="font-size: 12px; line-height: 18px;"> var op = document.getElementById(id2);</span></span><br />
<span class="Apple-style-span" style="color: #666666; font-family: monospace; font-size: small;"><span class="Apple-style-span" style="font-size: 12px; line-height: 18px;"> op.value = "Value is: " + val;</span></span><br />
<span class="Apple-style-span" style="color: #666666; font-family: monospace; font-size: small;"><span class="Apple-style-span" style="font-size: 12px; line-height: 18px;"> }</span></span><br />
<span class="Apple-style-span" style="color: #666666; font-family: monospace; font-size: small;"><span class="Apple-style-span" style="font-size: 12px; line-height: 18px;"> function getSelectedTxt(id,id2){</span></span><br />
<span class="Apple-style-span" style="color: #666666; font-family: monospace; font-size: small;"><span class="Apple-style-span" style="font-size: 12px; line-height: 18px;"> var indx = document.getElementById(id).selectedIndex;</span></span><br />
<span class="Apple-style-span" style="color: #666666; font-family: monospace; font-size: small;"><span class="Apple-style-span" style="font-size: 12px; line-height: 18px;"> var txt = document.getElementById(id).options[indx].text;</span></span><br />
<span class="Apple-style-span" style="color: #666666; font-family: monospace; font-size: small;"><span class="Apple-style-span" style="font-size: 12px; line-height: 18px;"> var op = document.getElementById(id2);</span></span><br />
<span class="Apple-style-span" style="color: #666666; font-family: monospace; font-size: small;"><span class="Apple-style-span" style="font-size: 12px; line-height: 18px;"> op.value = "Text is: " + txt;</span></span><br />
<span class="Apple-style-span" style="color: #666666; font-family: monospace; font-size: small;"><span class="Apple-style-span" style="font-size: 12px; line-height: 18px;"> }</span></span><br />
<code><span class="Apple-style-span" style="color: #666666; font-family: 'Lucida Grande', 'Lucida Sans Unicode', Tahoma, Arial, san-serif; font-size: 12px; line-height: 18px;"><code><span class="Apple-style-span"><br />
</span></code></span></code></div><br />
<b>EXAMPLE</b><br />
Structure:<br />
<table border="0" cellpadding="0" cellspacing="0" style="background-color: #99ccff; border-collapse: collapse; width: 376px;"><col span="3" style="mso-width-source: userset; width: 94pt;" width="125"></col> <tbody>
<tr height="24" style="background-color: #3366ff; height: 18.0pt; mso-height-source: userset;"> <td class="oa1" height="24" style="height: 18.0pt; width: 94pt;" width="125"><div style="direction: ltr; language: en-US; margin-bottom: 0pt; margin-left: 0in; margin-top: 0pt; mso-line-break-override: none; punctuation-wrap: hanging; text-align: center; unicode-bidi: embed; vertical-align: bottom; word-break: normal;"><span class="Apple-style-span" style="color: white; font-family: Calibri; font-size: medium;"><span class="Apple-style-span" style="font-size: 15px;">INDEX</span></span></div></td> <td class="oa1" style="width: 94pt;" width="125"><div style="direction: ltr; language: en-US; margin-bottom: 0pt; margin-left: 0in; margin-top: 0pt; mso-line-break-override: none; punctuation-wrap: hanging; text-align: center; unicode-bidi: embed; vertical-align: bottom; word-break: normal;"><span style="font-family: Calibri; font-size: 11pt; font-style: normal; font-weight: normal;"><span class="Apple-style-span" style="color: white;">VALUE</span></span></div></td> <td class="oa1" style="width: 94pt;" width="125"><div style="direction: ltr; language: en-US; margin-bottom: 0pt; margin-left: 0in; margin-top: 0pt; mso-line-break-override: none; punctuation-wrap: hanging; text-align: center; unicode-bidi: embed; vertical-align: bottom; word-break: normal;"><span class="Apple-style-span" style="color: white; font-family: Calibri; font-size: medium;"><span class="Apple-style-span" style="font-size: 15px;">TEXT</span></span></div></td> </tr>
<tr height="24" style="height: 18.0pt; mso-height-source: userset;"> <td class="oa2" height="24" style="height: 18.0pt; width: 94pt;" width="125"><div style="direction: ltr; language: en-US; margin-bottom: 0pt; margin-left: 0in; margin-top: 0pt; mso-line-break-override: none; punctuation-wrap: hanging; text-align: center; unicode-bidi: embed; vertical-align: bottom; word-break: normal;"><span style="color: black; font-family: Calibri; font-size: 11pt; font-style: normal; font-weight: normal;">0</span></div></td> <td class="oa2" style="width: 94pt;" width="125"><div style="direction: ltr; language: en-US; margin-bottom: 0pt; margin-left: 0in; margin-top: 0pt; mso-line-break-override: none; punctuation-wrap: hanging; text-align: center; unicode-bidi: embed; vertical-align: bottom; word-break: normal;"><span style="color: black; font-family: Calibri; font-size: 11pt; font-style: normal; font-weight: normal;">String value 1</span></div></td> <td class="oa2" style="width: 94pt;" width="125"><div style="direction: ltr; language: en-US; margin-bottom: 0pt; margin-left: 0in; margin-top: 0pt; mso-line-break-override: none; punctuation-wrap: hanging; text-align: center; unicode-bidi: embed; vertical-align: bottom; word-break: normal;"><span style="color: black; font-family: Calibri; font-size: 11pt; font-style: normal; font-weight: normal;">Text 1</span></div></td> </tr>
<tr height="24" style="height: 18.0pt; mso-height-source: userset;"> <td class="oa3" height="24" style="height: 18.0pt; width: 94pt;" width="125"><div style="direction: ltr; language: en-US; margin-bottom: 0pt; margin-left: 0in; margin-top: 0pt; mso-line-break-override: none; punctuation-wrap: hanging; text-align: center; unicode-bidi: embed; vertical-align: bottom; word-break: normal;"><span style="color: black; font-family: Calibri; font-size: 11pt; font-style: normal; font-weight: normal;">1</span></div></td> <td class="oa3" style="width: 94pt;" width="125"><div style="direction: ltr; language: en-US; margin-bottom: 0pt; margin-left: 0in; margin-top: 0pt; mso-line-break-override: none; punctuation-wrap: hanging; text-align: center; unicode-bidi: embed; vertical-align: bottom; word-break: normal;"><span style="color: black; font-family: Calibri; font-size: 11pt; font-style: normal; font-weight: normal;">String value 2</span></div></td> <td class="oa3" style="width: 94pt;" width="125"><div style="direction: ltr; language: en-US; margin-bottom: 0pt; margin-left: 0in; margin-top: 0pt; mso-line-break-override: none; punctuation-wrap: hanging; text-align: center; unicode-bidi: embed; vertical-align: bottom; word-break: normal;"><span style="color: black; font-family: Calibri; font-size: 11pt; font-style: normal; font-weight: normal;">Text 2</span></div></td> </tr>
<tr height="24" style="height: 18.0pt; mso-height-source: userset;"> <td class="oa4" height="24" style="height: 18.0pt; width: 94pt;" width="125"><div style="direction: ltr; language: en-US; margin-bottom: 0pt; margin-left: 0in; margin-top: 0pt; mso-line-break-override: none; punctuation-wrap: hanging; text-align: center; unicode-bidi: embed; vertical-align: bottom; word-break: normal;"><span style="color: black; font-family: Calibri; font-size: 11pt; font-style: normal; font-weight: normal;">2</span></div></td> <td class="oa4" style="width: 94pt;" width="125"><div style="direction: ltr; language: en-US; margin-bottom: 0pt; margin-left: 0in; margin-top: 0pt; mso-line-break-override: none; punctuation-wrap: hanging; text-align: center; unicode-bidi: embed; vertical-align: bottom; word-break: normal;"><span style="color: black; font-family: Calibri; font-size: 11pt; font-style: normal; font-weight: normal;">String value 3</span></div></td> <td class="oa4" style="width: 94pt;" width="125"><div style="direction: ltr; language: en-US; margin-bottom: 0pt; margin-left: 0in; margin-top: 0pt; mso-line-break-override: none; punctuation-wrap: hanging; text-align: center; unicode-bidi: embed; vertical-align: bottom; word-break: normal;"><span style="color: black; font-family: Calibri; font-size: 11pt; font-style: normal; font-weight: normal;">Text 3</span></div></td> </tr>
<tr height="24" style="height: 18.0pt; mso-height-source: userset;"> <td class="oa3" height="24" style="height: 18.0pt; width: 94pt;" width="125"><div style="direction: ltr; language: en-US; margin-bottom: 0pt; margin-left: 0in; margin-top: 0pt; mso-line-break-override: none; punctuation-wrap: hanging; text-align: center; unicode-bidi: embed; vertical-align: bottom; word-break: normal;"><span style="color: black; font-family: Calibri; font-size: 11pt; font-style: normal; font-weight: normal;">3</span></div></td> <td class="oa3" style="width: 94pt;" width="125"><div style="direction: ltr; language: en-US; margin-bottom: 0pt; margin-left: 0in; margin-top: 0pt; mso-line-break-override: none; punctuation-wrap: hanging; text-align: center; unicode-bidi: embed; vertical-align: bottom; word-break: normal;"><span style="color: black; font-family: Calibri; font-size: 11pt; font-style: normal; font-weight: normal;">String value 4</span></div></td> <td class="oa3" style="width: 94pt;" width="125"><div style="direction: ltr; language: en-US; margin-bottom: 0pt; margin-left: 0in; margin-top: 0pt; mso-line-break-override: none; punctuation-wrap: hanging; text-align: center; unicode-bidi: embed; vertical-align: bottom; word-break: normal;"><span style="color: black; font-family: Calibri; font-size: 11pt; font-style: normal; font-weight: normal;">Text 4</span></div></td> </tr>
<tr height="24" style="height: 18.0pt; mso-height-source: userset;"> <td class="oa4" height="24" style="height: 18.0pt; width: 94pt;" width="125"><div style="direction: ltr; language: en-US; margin-bottom: 0pt; margin-left: 0in; margin-top: 0pt; mso-line-break-override: none; punctuation-wrap: hanging; text-align: center; unicode-bidi: embed; vertical-align: bottom; word-break: normal;"><span style="color: black; font-family: Calibri; font-size: 11pt; font-style: normal; font-weight: normal;">4</span></div></td> <td class="oa4" style="width: 94pt;" width="125"><div style="direction: ltr; language: en-US; margin-bottom: 0pt; margin-left: 0in; margin-top: 0pt; mso-line-break-override: none; punctuation-wrap: hanging; text-align: center; unicode-bidi: embed; vertical-align: bottom; word-break: normal;"><span style="color: black; font-family: Calibri; font-size: 11pt; font-style: normal; font-weight: normal;">String value 5</span></div></td> <td class="oa4" style="width: 94pt;" width="125"><div style="direction: ltr; language: en-US; margin-bottom: 0pt; margin-left: 0in; margin-top: 0pt; mso-line-break-override: none; punctuation-wrap: hanging; text-align: center; unicode-bidi: embed; vertical-align: bottom; word-break: normal;"><span style="color: black; font-family: Calibri; font-size: 11pt; font-style: normal; font-weight: normal;">Text 5</span></div></td></tr>
</tbody></table><br />
<br />
Input Select Here:<br />
<select id="input"> <option selected="" value="String value 1">Text 1</option> <option value="String value 2">Text 2</option> <option value="String value 3">Text 3</option> <option value="String value 4">Text 4</option> <option value="String value 5">Text 5</option> </select><br />
Output:<br />
<input id="output" readonly="" size="30" type="text" value=" " /><br />
<br />
<input onclick="getSelectedIndex('input','output')" type="button" value="Get Index" /><input onclick="getSelectedValue('input','output')" type="button" value="Get Value" /><input onclick="getSelectedTxt('input','output')" type="button" value="Get Option Text" />kerbiehttp://www.blogger.com/profile/07665437560566279481noreply@blogger.com0tag:blogger.com,1999:blog-4068073846748289506.post-45652492624493235152010-06-02T22:23:00.000-07:002010-06-03T07:53:48.384-07:00trim(), ltrim(), rtrim() [Javascript Implementation]<script type="text/javascript">
function trim(id,id2){
var t1 = document.getElementById(id);
var t2 = document.getElementById(id2);
var str = t1.value.replace(/^\s+/, '').replace(/\s+$/, '');
t2.value = "|"+str+"|";
}
function ltrim(id,id2){
var t1 = document.getElementById(id);
var t2 = document.getElementById(id2);
var str = t1.value.replace(/^\s+/, '');
t2.value = "|"+str+"|";
}
function rtrim(id,id2){
var t1 = document.getElementById(id);
var t2 = document.getElementById(id2);
var str = t1.value.replace(/\s+$/, '');
t2.value = "|"+str+"|";
}
</script><br />
<span class="Apple-style-span" style="color: #666666; font-family: 'Lucida Grande', 'Lucida Sans Unicode', Tahoma, Arial, san-serif; font-size: 12px; line-height: 18px;"> <b>rtrim</b>, <b>ltrim</b>, <b>trim</b> are string manipulation functions</span><br />
<span class="Apple-style-span" style="color: #666666; font-family: 'Lucida Grande', 'Lucida Sans Unicode', Tahoma, Arial, san-serif; font-size: 12px; line-height: 18px;"> which strip or remove whitespaces from the beginning, ending,</span><br />
<span class="Apple-style-span" style="color: #666666; font-family: 'Lucida Grande', 'Lucida Sans Unicode', Tahoma, Arial, san-serif; font-size: 12px; line-height: 18px;"> or both beginning and ending of a string. </span><br />
<span class="Apple-style-span" style="color: #666666; font-family: 'Lucida Grande', 'Lucida Sans Unicode', Tahoma, Arial, san-serif; font-size: small;"><span class="Apple-style-span" style="font-size: 12px; line-height: 18px;"><br />
</span></span><br />
<div style="background-color: #ffff99;" width="60%"><br />
Code:<br />
<br />
<code><span class="Apple-style-span" style="color: #666666; font-family: 'Lucida Grande', 'Lucida Sans Unicode', Tahoma, Arial, san-serif; font-size: 12px; line-height: 18px;"><code> <span class="Apple-style-span"><span class="Apple-style-span"> function trim(id){</span></span></code><span class="Apple-style-span" style="background-color: white;"><br />
</span><code><span class="Apple-style-span"> var txt = document.getElementById(id);<br />
var str = txt.value.replace(/^\s+/, '').replace(/\s+$/, '');<br />
return str;<br />
}<br />
<br />
function ltrim(id){<br />
var txt = document.getElementById(id);<br />
var str = txt.value.replace(/^\s+/, '');<br />
return str;<br />
}<br />
<br />
function rtrim(id){<br />
var txt = document.getElementById(id);<br />
var str = txt.value.replace(/\s+$/, '');<br />
return str;<br />
}</span> </code></span></code><br />
<code><span class="Apple-style-span" style="color: #666666; font-family: 'Lucida Grande', 'Lucida Sans Unicode', Tahoma, Arial, san-serif; font-size: 12px; line-height: 18px;"><code><span class="Apple-style-span"><br />
</span></code></span></code></div><code><span class="Apple-style-span" style="background-color: #ffe599;"><code></code></span></code><code><span class="Apple-style-span" style="color: #666666; font-family: monospace; font-size: small;"><span class="Apple-style-span" style="background-color: #ffe599;"><span class="Apple-style-span" style="font-size: 12px; line-height: 18px;"></span></span></span></code><span class="Apple-style-span" style="background-color: #ffe599;"><span class="Apple-style-span" style="color: #666666; font-family: monospace; font-size: small;"></span></span><br />
<span class="Apple-style-span" style="color: #666666; font-family: monospace; font-size: small;"><span class="Apple-style-span" style="font-size: 12px; line-height: 18px;"><br />
</span></span> <span class="Apple-style-span" style="color: #666666; font-family: 'Lucida Grande', 'Lucida Sans Unicode', Tahoma, Arial, san-serif; font-size: 12px; line-height: 18px;">See sample output below:</span><br />
Input Text Here:<br />
<input autocomplete="off" id="input" size="30" type="text" value=" sample input " /><br />
Output:<br />
<input id="output" readonly="" size="30" type="text" value=" " /><br />
<br />
<input onclick="trim('input','output')" type="button" value="TRIM()" /><input onclick="ltrim('input','output')" type="button" value="LTRIM()" /><input onclick="rtrim('input','output')" type="button" value="RTRIM()" />kerbiehttp://www.blogger.com/profile/07665437560566279481noreply@blogger.com0tag:blogger.com,1999:blog-4068073846748289506.post-85231679249829076592010-06-02T07:31:00.000-07:002010-06-02T07:56:12.507-07:00Sharing your Dial-up Connection<span class="Apple-style-span" style="font-family: Arial; font-size: small;"><span class="Apple-style-span" style="font-size: 13px;"></span></span><br />
<span class="Apple-style-span" style="font-family: Arial; font-size: small;"><span class="Apple-style-span" style="font-size: 13px;"><div style="line-height: 18.0pt; margin-bottom: 6.0pt; margin-left: 0in; margin-right: 0in; margin-top: 4.8pt;"><span class="Apple-style-span" style="font-family: Arial, sans-serif;"><b>STEPS ON SHARING YOUR DIAL-UP CONNECTION VIA ROUTER (WIRED/WIRELESS)</b></span></div><div style="line-height: 18.0pt; margin-bottom: 6.0pt; margin-left: .5in; margin-right: 0in; margin-top: 4.8pt; mso-list: l3 level1 lfo1; text-indent: -.25in;"><span style="color: black; font-family: Symbol; font-size: 10pt;">·<span style="font: normal normal normal 7pt/normal 'Times New Roman';"> </span></span><span style="color: black; font-family: Arial, sans-serif; font-size: 10pt;">In order to share your dial-up connection using your (wired/wireless) router, you will first need to configure your computer for ICS. On your computer, you need to share your dial-up connection by turning on the ICS. <o:p></o:p></span></div><div style="line-height: 18.0pt; margin-bottom: 6.0pt; margin-left: 1.0in; margin-right: 0in; margin-top: 4.8pt; mso-list: l3 level2 lfo1; text-indent: -.25in;"><span style="color: black; font-family: 'Courier New'; font-size: 10pt;">o<span style="font: normal normal normal 7pt/normal 'Times New Roman';"> </span></span><span style="color: black; font-family: Arial, sans-serif; font-size: 10pt;">You can turn on ICS by running the network wizard and choosing to share your Internet connection. You can also try sharing it by going to Network Connections, right-click on the dial-up connection icon, select Properties, and then Advanced tab (or Sharing in WIN 7). Put a check on “Allow other network users to connect through this computer’s Internet connection”.<o:p></o:p></span></div><div style="line-height: 18.0pt; margin-bottom: 6.0pt; margin-left: .5in; margin-right: 0in; margin-top: 4.8pt; mso-list: l3 level1 lfo1; text-indent: -.25in;"><span style="color: black; font-family: Symbol; font-size: 10pt;">·<span style="font: normal normal normal 7pt/normal 'Times New Roman';"> </span></span><span style="color: black; font-family: Arial, sans-serif; font-size: 10pt;">Once ICS is turned on, your computer will be a DHCP server, that is, it will hand out IP addresses to client computers on the network that have their DHCP client turned on. For client computers:<o:p></o:p></span></div><div style="line-height: 18.0pt; margin-bottom: 6.0pt; margin-left: 1.0in; margin-right: 0in; margin-top: 4.8pt; mso-list: l3 level2 lfo1; text-indent: -.25in;"><span style="color: black; font-family: 'Courier New'; font-size: 10pt;">o<span style="font: normal normal normal 7pt/normal 'Times New Roman';"> </span></span><span style="color: black; font-family: Arial, sans-serif; font-size: 10pt;"> By default DHCP client is on, you can check it by going to Network Connections.<o:p></o:p></span></div><div style="line-height: 18.0pt; margin-bottom: 6.0pt; margin-left: 1.0in; margin-right: 0in; margin-top: 4.8pt; mso-list: l3 level2 lfo1; text-indent: -.25in;"><span style="color: black; font-family: 'Courier New'; font-size: 10pt;">o<span style="font: normal normal normal 7pt/normal 'Times New Roman';"> </span></span><span style="color: black; font-family: Arial, sans-serif; font-size: 10pt;"> Right-click on the LAN (Local Area Network) connection icon, select Properties. <o:p></o:p></span></div><div style="line-height: 18.0pt; margin-bottom: 6.0pt; margin-left: 1.0in; margin-right: 0in; margin-top: 4.8pt; mso-list: l3 level2 lfo1; text-indent: -.25in;"><span style="color: black; font-family: 'Courier New'; font-size: 10pt;">o<span style="font: normal normal normal 7pt/normal 'Times New Roman';"> </span></span><span style="color: black; font-family: Arial, sans-serif; font-size: 10pt;">Click “Internet Protocol Version 4 (TCP/IPv4)”, do not uncheck, and then click properties.<o:p></o:p></span></div><div style="line-height: 18.0pt; margin-bottom: 6.0pt; margin-left: 1.0in; margin-right: 0in; margin-top: 4.8pt; mso-list: l3 level2 lfo1; text-indent: -.25in;"><span style="color: black; font-family: 'Courier New'; font-size: 10pt;">o<span style="font: normal normal normal 7pt/normal 'Times New Roman';"> </span></span><span style="color: black; font-family: Arial, sans-serif; font-size: 10pt;"> On General tab, select “Obtain IP address automatically” and “Obtain DNS server address automatically”, click “OK”, then, “close”. <o:p></o:p></span></div><div style="line-height: 18.0pt; margin-bottom: 6.0pt; margin-left: 31.5pt; margin-right: 0in; margin-top: 4.8pt; mso-list: l1 level1 lfo2; text-indent: -.25in;"><span style="color: black; font-family: Symbol; font-size: 10pt;">·<span style="font: normal normal normal 7pt/normal 'Times New Roman';"> </span></span><span style="color: black; font-family: Arial, sans-serif; font-size: 10pt;">Your ICS computer's LAN network adapter should now have a static IP address. Kindly </span><span style="font-family: Arial, sans-serif; font-size: 10pt;"><span class="Apple-style-span" style="color: red;">TAKE NOTE</span></span><span style="color: black; font-family: Arial, sans-serif; font-size: 10pt;"> of your IP address because we’ll be using it for configuring the router, and </span><span style="font-family: Arial, sans-serif; font-size: 10pt;"><span class="Apple-style-span" style="color: red;">DO NOT CHANGE YOUR IP ADDRESS</span></span><span style="color: black; font-family: Arial, sans-serif; font-size: 10pt;">, changing it will break your ICS. I am not sure of the IP address, but I think it will look like 192.168.0.1 (for XP and VISTA) or 192.168.137.1 (for WIN7). Please check it and take note of your IP address.<o:p></o:p></span></div><div class="MsoNormal"><br />
</div><div class="MsoListParagraph" style="margin-left: 31.5pt; mso-add-space: auto; mso-list: l1 level1 lfo2; text-indent: -.25in;"><span style="font-family: Symbol; font-size: 10pt; line-height: 115%;">·<span style="font: normal normal normal 7pt/normal 'Times New Roman';"> </span></span><span style="font-family: Arial, sans-serif; font-size: 10pt; line-height: 115%;">Configure your router. I will only give one of the many possible configurations. This config allows your computers to have file sharing on your network and will able to play LAN games.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 18.0pt; margin-bottom: 1.2pt; margin-left: 49.5pt; mso-list: l2 level1 lfo3; mso-margin-top-alt: auto; tab-stops: list 49.5pt; text-indent: -.25in;"><span style="color: black; font-family: 'Courier New'; font-size: 10pt;">o<span style="font: normal normal normal 7pt/normal 'Times New Roman';"> </span></span><span style="color: black; font-family: Arial, sans-serif; font-size: 10pt;">Log in to your router's web interface.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 18.0pt; margin-bottom: 1.2pt; margin-left: 49.5pt; mso-list: l2 level1 lfo3; mso-margin-top-alt: auto; tab-stops: list 49.5pt; text-indent: -.25in;"><span style="color: black; font-family: 'Courier New'; font-size: 10pt;">o<span style="font: normal normal normal 7pt/normal 'Times New Roman';"> </span></span><span style="color: black; font-family: Arial, sans-serif; font-size: 10pt;">[Optional Step] Back up your current router’s configuration incase you want to revert the changes that you will do on your settings.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 18.0pt; margin-bottom: 1.2pt; margin-left: 49.5pt; mso-list: l2 level1 lfo3; mso-margin-top-alt: auto; tab-stops: list 49.5pt; text-indent: -.25in;"><span style="color: black; font-family: 'Courier New'; font-size: 10pt;">o<span style="font: normal normal normal 7pt/normal 'Times New Roman';"> </span></span><span style="color: black; font-family: Arial, sans-serif; font-size: 10pt;">[For wireless routers] Configure your wireless settings. Set your SSID, password, encryption type, etc.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 18.0pt; margin-bottom: 1.2pt; margin-left: 49.5pt; mso-list: l2 level1 lfo3; mso-margin-top-alt: auto; tab-stops: list 49.5pt; text-indent: -.25in;"><span style="color: black; font-family: 'Courier New'; font-size: 10pt;">o<span style="font: normal normal normal 7pt/normal 'Times New Roman';"> </span></span><span style="color: black; font-family: Arial, sans-serif; font-size: 10pt;">Go to the “Basic Setup" of your router.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 18.0pt; margin-bottom: 1.2pt; margin-left: 49.5pt; mso-list: l2 level1 lfo3; mso-margin-top-alt: auto; tab-stops: list 49.5pt; text-indent: -.25in;"><span style="color: black; font-family: 'Courier New'; font-size: 10pt;">o<span style="font: normal normal normal 7pt/normal 'Times New Roman';"> </span></span><span style="color: black; font-family: Arial, sans-serif; font-size: 10pt;">Disable DHCP.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 18.0pt; margin-bottom: 1.2pt; margin-left: 49.5pt; mso-list: l2 level1 lfo3; mso-margin-top-alt: auto; tab-stops: list 49.5pt; text-indent: -.25in;"><span style="color: black; font-family: 'Courier New'; font-size: 10pt;">o<span style="font: normal normal normal 7pt/normal 'Times New Roman';"> </span></span><span style="color: black; font-family: Arial, sans-serif; font-size: 10pt;">Set it to Static IP.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 18.0pt; margin-bottom: 1.2pt; margin-left: 49.5pt; mso-list: l2 level1 lfo3; mso-margin-top-alt: auto; tab-stops: list 49.5pt; text-indent: -.25in;"><span style="color: black; font-family: 'Courier New'; font-size: 10pt;">o<span style="font: normal normal normal 7pt/normal 'Times New Roman';"> </span></span><span style="color: black; font-family: Arial, sans-serif; font-size: 10pt;">Remember the IP address that you noted a while ago? <o:p></o:p></span></div><div class="MsoNormal" style="line-height: 18.0pt; margin-bottom: 1.2pt; margin-left: 67.5pt; mso-list: l2 level2 lfo3; mso-margin-top-alt: auto; tab-stops: list 67.5pt 1.0in; text-indent: -.25in;"><span style="color: black; font-family: Wingdings; font-size: 10pt;">§<span style="font: normal normal normal 7pt/normal 'Times New Roman';"> </span></span><span style="color: black; font-family: Arial, sans-serif; font-size: 10pt;">For example, my IP address that I noted is 192.168.137.1 (for WIN7). Let the first 3 segment remain the same (192.168.137) for your router’s 192.168.137.1 IP address.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 18.0pt; margin-bottom: 1.2pt; margin-left: 67.5pt; mso-list: l2 level2 lfo3; mso-margin-top-alt: auto; tab-stops: list 67.5pt 1.0in; text-indent: -.25in;"><span style="color: black; font-family: Wingdings; font-size: 10pt;">§<span style="font: normal normal normal 7pt/normal 'Times New Roman';"> </span></span><span style="color: black; font-family: Arial, sans-serif; font-size: 10pt;">Set your router’s LAN IP address to 192.168.137.x (if you have an IP of 192.168.137.1) where x is any number higher than 1 and less than 254.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 18.0pt; margin-bottom: 1.2pt; margin-left: 49.5pt; mso-list: l2 level1 lfo3; mso-margin-top-alt: auto; tab-stops: list 49.5pt; text-indent: -.25in;"><span style="color: black; font-family: 'Courier New'; font-size: 10pt;">o<span style="font: normal normal normal 7pt/normal 'Times New Roman';"> </span></span><span style="color: black; font-family: Arial, sans-serif; font-size: 10pt;"> Set your router’s gateway and DNS server to your IP address you noted (in our example, it will be 192.168.137.1).<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 18.0pt; margin-bottom: 1.2pt; margin-left: 49.5pt; mso-list: l2 level1 lfo3; mso-margin-top-alt: auto; tab-stops: list 49.5pt; text-indent: -.25in;"><span style="color: black; font-family: 'Courier New'; font-size: 10pt;">o<span style="font: normal normal normal 7pt/normal 'Times New Roman';"> </span></span><span style="color: black; font-family: Arial, sans-serif; font-size: 10pt;">Save your new settings.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 18.0pt; margin-bottom: 1.2pt; margin-left: 49.5pt; mso-list: l2 level1 lfo3; mso-margin-top-alt: auto; tab-stops: list 49.5pt; text-indent: -.25in;"><span style="color: black; font-family: 'Courier New'; font-size: 10pt;">o<span style="font: normal normal normal 7pt/normal 'Times New Roman';"> </span></span><span style="color: black; font-family: Arial, sans-serif; font-size: 10pt;">Plug a network cable from the Internet host computer into one of the switch ports in the back of the router,</span><span style="font-family: Arial, sans-serif; font-size: 10pt;"><span class="Apple-style-span" style="color: red;"> NOT IN THE WAN PORT</span></span><span style="color: black; font-family: Arial, sans-serif; font-size: 10pt;">, or you may connect your Internet host computer VIA wireless.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 18.0pt; margin-bottom: 1.2pt; margin-left: 49.5pt; mso-list: l2 level1 lfo3; mso-margin-top-alt: auto; tab-stops: list 49.5pt; text-indent: -.25in;"><span style="color: black; font-family: 'Courier New'; font-size: 10pt;">o<span style="font: normal normal normal 7pt/normal 'Times New Roman';"> </span></span><span style="color: black; font-family: Arial, sans-serif; font-size: 10pt;">Plug a network cable from the Dial-Up Modem into one of the switch ports in the back of the router,</span><span style="font-family: Arial, sans-serif; font-size: 10pt;"><span class="Apple-style-span" style="color: red;"> NOT IN THE WAN PORT</span></span><span style="color: black; font-family: Arial, sans-serif; font-size: 10pt;">.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 18.0pt; margin-bottom: 1.2pt; margin-left: 49.5pt; mso-list: l2 level1 lfo3; mso-margin-top-alt: auto; tab-stops: list 49.5pt; text-indent: -.25in;"><span style="color: black; font-family: 'Courier New'; font-size: 10pt;">o<span style="font: normal normal normal 7pt/normal 'Times New Roman';"> </span></span><span style="color: black; font-family: Arial, sans-serif; font-size: 10pt;">Dial your connection.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 18.0pt; margin-bottom: 1.2pt; margin-left: 49.5pt; mso-list: l2 level1 lfo3; mso-margin-top-alt: auto; tab-stops: list 49.5pt; text-indent: -.25in;"><span style="font-family: 'Courier New'; font-size: 10pt;">o<span style="font: normal normal normal 7pt/normal 'Times New Roman';"> </span></span><span style="color: black; font-family: Arial, sans-serif; font-size: 10pt;">Clients may now connect to the router VIA wired/wireless. They should receive addresses of 192.168.137.x (based on our example). </span><span style="font-family: Arial, sans-serif; font-size: 10pt;"><o:p></o:p></span></div><div class="MsoNormal" style="line-height: 18.0pt; margin-bottom: 1.2pt; margin-left: 49.5pt; mso-list: l2 level1 lfo3; mso-margin-top-alt: auto; tab-stops: list 49.5pt; text-indent: -.25in;"><span style="color: black; font-family: Arial, sans-serif; font-size: 10pt;"><br />
</span></div><div class="MsoNormal" style="line-height: 18.0pt; margin-bottom: 1.2pt; mso-margin-top-alt: auto;"><span style="color: black; font-family: Arial, sans-serif; font-size: 10pt;"><b>DEFINITION OF TERMS</b><o:p></o:p></span></div><div style="line-height: 18.0pt; margin-bottom: 6.0pt; margin-left: 0in; margin-right: 0in; margin-top: 4.8pt;"><span style="color: black; font-family: Arial, sans-serif; font-size: 10pt;">ICS <o:p></o:p></span></div><div style="line-height: 18.0pt; margin-bottom: 6.0pt; margin-left: 38.25pt; margin-right: 0in; margin-top: 4.8pt; mso-list: l0 level1 lfo5; text-indent: -.25in;"><span style="color: black; font-family: Symbol; font-size: 10pt;">·<span style="font: normal normal normal 7pt/normal 'Times New Roman';"> </span></span><span style="color: black; font-family: Arial, sans-serif; font-size: 10pt;">Internet Connection Sharing. Basically, ICS will "bridge" your WAN (which is your dial-up connection) with the LAN.<o:p></o:p></span></div><div style="line-height: 18.0pt; margin-bottom: 6.0pt; margin-left: 0in; margin-right: 0in; margin-top: 4.8pt;"><span style="color: black; font-family: Arial, sans-serif; font-size: 10pt;">DHCP<o:p></o:p></span></div><div style="line-height: 18.0pt; margin-bottom: 6.0pt; margin-left: .5in; margin-right: 0in; margin-top: 4.8pt; mso-list: l4 level1 lfo4; text-indent: -.25in;"><span class="apple-style-span"><span style="color: black; font-family: Symbol; font-size: 10pt;">·<span style="font: normal normal normal 7pt/normal 'Times New Roman';"> </span></span></span><span class="apple-style-span"><span style="color: black; font-family: Arial, sans-serif; font-size: 10pt;">Dynamic Host Configuration Protocol. <o:p></o:p></span></span></div><div style="line-height: 18.0pt; margin-bottom: 6.0pt; margin-left: .5in; margin-right: 0in; margin-top: 4.8pt; mso-list: l4 level1 lfo4; text-indent: -.25in;"><span style="color: black; font-family: Symbol; font-size: 10pt;">·<span style="font: normal normal normal 7pt/normal 'Times New Roman';"> </span></span><span style="color: black; font-family: Arial, sans-serif; font-size: 10pt;">DHCP client sends a broadcast request for configuration information. <o:p></o:p></span></div><div style="line-height: 18.0pt; margin-bottom: 6.0pt; margin-left: .5in; margin-right: 0in; margin-top: 4.8pt; mso-list: l4 level1 lfo4; text-indent: -.25in;"><span style="color: black; font-family: Symbol; font-size: 10pt;">·<span style="font: normal normal normal 7pt/normal 'Times New Roman';"> </span></span><span style="color: black; font-family: Arial, sans-serif; font-size: 10pt;">The<span class="apple-converted-space"> </span><i>DHCP server</i><span class="apple-converted-space"> </span>receives the request and responds with configuration information from its configuration database.<o:p></o:p></span></div><div style="line-height: 18.0pt; margin-bottom: 6.0pt; margin-left: .5in; margin-right: 0in; margin-top: 4.8pt; mso-list: l4 level1 lfo4; text-indent: -.25in;"><span style="color: black; font-family: Symbol; font-size: 10pt;">·<span style="font: normal normal normal 7pt/normal 'Times New Roman';"> </span></span><span style="color: black; font-family: Arial, sans-serif; font-size: 10pt;">In the absence of DHCP, all hosts on a network must be manually configured individually - a time-consuming and often error-prone undertaking.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 18.0pt; margin-bottom: 1.2pt; mso-margin-top-alt: auto;"><br />
</div><div class="MsoNormal"><br />
</div></span></span>kerbiehttp://www.blogger.com/profile/07665437560566279481noreply@blogger.com0