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

<channel>
	<title>Coretan Pelangi Malam</title>
	<atom:link href="http://harisanto.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://harisanto.wordpress.com</link>
	<description>×÷·.·´¯`·)»Blow My Dream To The Code«(·´¯`·.·÷×</description>
	<lastBuildDate>Mon, 22 Dec 2008 04:33:34 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='harisanto.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/15e9c2bd603abdb74f05867bd9b103c2?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Coretan Pelangi Malam</title>
		<link>http://harisanto.wordpress.com</link>
	</image>
			<item>
		<title>VB.Net with Dates and Times</title>
		<link>http://harisanto.wordpress.com/2008/11/18/vbnet-with-dates-and-times/</link>
		<comments>http://harisanto.wordpress.com/2008/11/18/vbnet-with-dates-and-times/#comments</comments>
		<pubDate>Tue, 18 Nov 2008 03:10:54 +0000</pubDate>
		<dc:creator>harisanto</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[VB.NET]]></category>

		<guid isPermaLink="false">http://has.web.id/?p=73</guid>
		<description><![CDATA[VB.NET&#8217;s DateTime anatomy represents an burning in time and is usually bidding as a accurate date and time of the day. DateTime comes in accessible whenever you charge to actuate the system&#8217;s date and time; it aswell performs assorted operations on date/time variables. In this article, I appearance how to advance DateTime backdrop and methods [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=harisanto.wordpress.com&blog=2983020&post=119&subd=harisanto&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p align="justify">VB.NET&#8217;s DateTime anatomy represents an burning in time and is usually bidding as a accurate date and time of the day. DateTime comes in accessible whenever you charge to actuate the system&#8217;s date and time; it aswell performs assorted operations on date/time variables. In this article, I appearance how to advance DateTime backdrop and methods so you can plan with DateTime ethics in VB.NET.</p>
<p align="justify">Here are listings of the a lot of frequently acclimated backdrop and methods of the DateTime structure.</p>
<p align="justify"><strong>Properties:</strong></p>
<ol>
<li>
<div><strong>Date</strong>: allotment the date basic of the DateTime value.</div>
</li>
<li>
<div><strong>Day</strong>: allotment the day of the ages basic of the DateTime value.</div>
</li>
<li>
<div><strong>DayOfWeek</strong>: allotment the day of the anniversary basic of the DateTime value.</div>
</li>
<li>
<div><strong>DayOfYear</strong>: allotment the day of the year basic of the DateTime value.</div>
</li>
<li>
<div><strong>Hour</strong>: allotment the hour basic of the DateTime value.</div>
</li>
<li>
<div><strong>Millisecond</strong>: allotment the milliseconds basic of the DateTime value.</div>
</li>
<li>
<div><strong>Minute</strong>: allotment the minute basic of the DateTime value.</div>
</li>
<li>
<div><strong>Month</strong>: allotment the ages basic of the DateTime value.</div>
</li>
<li>
<div><strong>Now</strong>: allotment a DateTime amount that is the accepted bounded date and time on this computer.</div>
</li>
<li>
<div><strong>Second</strong>: allotment the abnormal basic of the DateTime value.</div>
</li>
<li>
<div><strong>TimeOfDay</strong>: allotment the time of day of the DateTime value.</div>
</li>
<li>
<div><strong>Today</strong>: allotment the accepted arrangement date.</div>
</li>
<li>
<div><strong>UtcNow</strong>: allotment a DateTime amount that is the accepted bounded date and time on this computer bidding as the Coordinated Universal Time (UTC).</div>
</li>
<li>
<div><strong>Year</strong>: allotment the year basic of the DateTime value.</div>
</li>
</ol>
<p align="justify"><strong>Methods :</strong></p>
<ol>
<li>
<div><strong>Add</strong>: adds the amount of the defined TimeSpan to the DateTime value.</div>
</li>
<li>
<div><strong>AddDays</strong>: adds the defined amount of canicule to the DateTime value.</div>
</li>
<li>
<div><strong>AddHours</strong>: adds the defined amount of hours to the DateTime value.</div>
</li>
<li>
<div><strong>AddMilliseconds</strong>: adds the defined amount of milliseconds to the DateTime value.</div>
</li>
<li>
<div><strong>AddMinutes</strong>: adds the defined amount of account to the DateTime value.</div>
</li>
<li>
<div><strong>AddMonths</strong>: adds the defined amount of months to the DateTime value.</div>
</li>
<li>
<div><strong>AddSeconds</strong>: adds the defined amount of abnormal to the DateTime value.</div>
</li>
<li>
<div><strong>AddYears</strong>: adds the defined amount of years to the DateTime value.</div>
</li>
<li>
<div><strong>DaysInMonth</strong>: allotment the amount of canicule in the defined ages of the defined year.</div>
</li>
<li>
<div><strong>IsLeapYear</strong>: allotment an adumbration of whether the defined year is a bound year.</div>
</li>
<li>
<div><strong>Subtract</strong>: subtracts the defined time or continuance from the DateTime value.</div>
</li>
<li>
<div><strong>ToLocalTime</strong>: converts the accepted Coordinated Universal Time (UTC) to bounded time.</div>
</li>
<li>
<div><strong>ToLongDateString</strong>: converts the amount of this instance to its agnate continued date cord representation.</div>
</li>
<li>
<div><strong>ToLongTimeString</strong>: converts the amount of this instance to its agnate continued time cord representation.</div>
</li>
<li>
<div><strong>ToShortDateString</strong>: converts the amount of this instance to its agnate abbreviate date cord representation.</div>
</li>
<li>
<div><strong>ToShortTimeString</strong>: converts the amount of this instance to its agnate abbreviate time cord representation.</div>
</li>
<li>
<div><strong>ToUniversalTime</strong>: converts the accepted bounded time to Coordinated Universal Time (UTC).</div>
</li>
</ol>
<div class="bjtags">Tags:  <a rel="tag" href="http://technorati.com/tag/Dates+and+times">Dates+and+times</a></div>
Posted in Coding, VB.NET  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/harisanto.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/harisanto.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/harisanto.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/harisanto.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/harisanto.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/harisanto.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/harisanto.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/harisanto.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/harisanto.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/harisanto.wordpress.com/119/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=harisanto.wordpress.com&blog=2983020&post=119&subd=harisanto&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://harisanto.wordpress.com/2008/11/18/vbnet-with-dates-and-times/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e8ae967f748960e083a73aee01ea55d9?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Harisanto</media:title>
		</media:content>
	</item>
		<item>
		<title>Paging results in MS SQL Server</title>
		<link>http://harisanto.wordpress.com/2008/10/23/paging-results-in-ms-sql-server/</link>
		<comments>http://harisanto.wordpress.com/2008/10/23/paging-results-in-ms-sql-server/#comments</comments>
		<pubDate>Thu, 23 Oct 2008 07:58:22 +0000</pubDate>
		<dc:creator>harisanto</dc:creator>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[MsSQL]]></category>
		<category><![CDATA[Paging MsSQL]]></category>

		<guid isPermaLink="false">http://has.web.id/?p=68</guid>
		<description><![CDATA[One of the thngs I like about my job is solving problems. In particular problems where there is a bit of thought involved. The particular problem I had is that for a search interface I&#8217;m building a re...<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=harisanto.wordpress.com&blog=2983020&post=117&subd=harisanto&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p align="justify">One of the thngs I like about my job is solving problems. In particular problems where there is a bit of thought involved. The particular problem I had is that for a search interface I’m building a requirement is the ability to page result set. This is easy using MySQL as it has a LIMIT keyword that limits the results to a certain number, and allows an offset, so for example you to retrieve results 16-20 you would use LIMIT 15,5.</p>
<p align="justify">Unfortunately, SQL Server does not have an equivalent to the offset argument. Its nearest is TOP n, which returns the first n rows.</p>
<p align="justify">This puzzled me for a few days, but then the answer came to me in a flash of inspiration: Results 20-16 would be the first 5 rows of a TOP 5 statement, with a nested query with a TOP 20 statement in the opposite order. Then I could just reverse the order to get the result the right way around.</p>
<p align="justify">So here’s what I came up with:</p>
<p align="justify">
<pre>SELECT * FROM (
	SELECT TOP x * FROM (
		SELECT TOP y fields
		FROM table
		WHERE conditions
		ORDER BY table.field  ASC) as foo
	ORDER by field DESC) as bar
ORDER by field ASC</pre>
<p align="justify">x is the number of rows you want returned and y is x+offset.</p>
<p align="justify">After looking at this in Query Analyzer, it appears that the extra nesting does not add very much to the load. For the queries I was running it was only about 2%.</p>
<p align="justify">Source: <a href="http://josephlindsay.com/archives/2005/05/27/paging-results-in-ms-sql-server/">http://josephlindsay.com/archives/2005/05/27/paging-results-in-ms-sql-server/</a></p>
Posted in Databases, MsSQL Tagged: Paging MsSQL <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/harisanto.wordpress.com/117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/harisanto.wordpress.com/117/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/harisanto.wordpress.com/117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/harisanto.wordpress.com/117/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/harisanto.wordpress.com/117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/harisanto.wordpress.com/117/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/harisanto.wordpress.com/117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/harisanto.wordpress.com/117/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/harisanto.wordpress.com/117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/harisanto.wordpress.com/117/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=harisanto.wordpress.com&blog=2983020&post=117&subd=harisanto&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://harisanto.wordpress.com/2008/10/23/paging-results-in-ms-sql-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e8ae967f748960e083a73aee01ea55d9?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Harisanto</media:title>
		</media:content>
	</item>
		<item>
		<title>Comparing 2 Dates</title>
		<link>http://harisanto.wordpress.com/2008/10/10/comparing-2-dates/</link>
		<comments>http://harisanto.wordpress.com/2008/10/10/comparing-2-dates/#comments</comments>
		<pubDate>Fri, 10 Oct 2008 02:29:19 +0000</pubDate>
		<dc:creator>harisanto</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[VB.NET]]></category>
		<category><![CDATA[datetime]]></category>

		<guid isPermaLink="false">http://has.web.id/?p=66</guid>
		<description><![CDATA[I discovered a very interesting little twist on the differences between the Today property and the Now property in the DateTime Class. I was working on something recently and using the built-in Compare method of the DateTime Type. Essentially the user selected a date and I had a validation snippet that was supposed to check [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=harisanto.wordpress.com&blog=2983020&post=116&subd=harisanto&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p align="justify">I discovered a very interesting little twist on the differences between the Today property and the Now property in the DateTime Class. I was working on something recently and using the built-in Compare method of the DateTime Type. Essentially the user selected a date and I had a validation snippet that was supposed to check that they had not picked a future date. One of the ways they could choose their date was via a DateTimePicker control. I thought that this code might do the trick:</p>
<pre>Dim EndDate As DateTime
Dim Current As DateTime = Today

If DateTime.Compare(Current, EndDate) &lt; 0 then
    label6.text ="" "CONTRACT EXPIRED LESS THAN"
end if
if datetime.compare(current, enddate) ="" 0 then
    label6.text ="" "CONTRACT EXPIRED EQUALS"
end if
if datetime.compare(current, enddate) &gt; 0 Then
    Label6.Text = "CONTRACT NOT EXPIRED GREATER"
End If</pre>
<div class="bjtags">Tags:  <a rel="tag" href="http://technorati.com/tag/vb.net,+compare+datetime">vb.net,+compare+datetime</a></div>
Posted in Coding, VB.NET Tagged: datetime, VB.NET <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/harisanto.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/harisanto.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/harisanto.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/harisanto.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/harisanto.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/harisanto.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/harisanto.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/harisanto.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/harisanto.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/harisanto.wordpress.com/116/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=harisanto.wordpress.com&blog=2983020&post=116&subd=harisanto&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://harisanto.wordpress.com/2008/10/10/comparing-2-dates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e8ae967f748960e083a73aee01ea55d9?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Harisanto</media:title>
		</media:content>
	</item>
		<item>
		<title>Met Idul Fitri 1429 H</title>
		<link>http://harisanto.wordpress.com/2008/10/06/met-idul-fitri-1429-h/</link>
		<comments>http://harisanto.wordpress.com/2008/10/06/met-idul-fitri-1429-h/#comments</comments>
		<pubDate>Mon, 06 Oct 2008 07:23:41 +0000</pubDate>
		<dc:creator>harisanto</dc:creator>
				<category><![CDATA[Diary]]></category>
		<category><![CDATA[Idul Fitri]]></category>

		<guid isPermaLink="false">http://has.web.id/?p=64</guid>
		<description><![CDATA[
Tags:  Idul+Fitri,+Lebaran
Posted in Diary Tagged: Idul Fitri      <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=harisanto.wordpress.com&blog=2983020&post=115&subd=harisanto&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><span><a href="http://wallpaper.indowebster.com/Idul_Fitri_2008-443.html"><img src="http://i216.photobucket.com/albums/cc289/harisanto/blog/idulfitri2.jpg" border="0" alt="Idul Fitri 2008" align="middle" /></a></span></p>
<div class="bjtags">Tags:  <a rel="tag" href="http://technorati.com/tag/Idul+Fitri,+Lebaran">Idul+Fitri,+Lebaran</a></div>
Posted in Diary Tagged: Idul Fitri <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/harisanto.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/harisanto.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/harisanto.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/harisanto.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/harisanto.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/harisanto.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/harisanto.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/harisanto.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/harisanto.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/harisanto.wordpress.com/115/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=harisanto.wordpress.com&blog=2983020&post=115&subd=harisanto&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://harisanto.wordpress.com/2008/10/06/met-idul-fitri-1429-h/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e8ae967f748960e083a73aee01ea55d9?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Harisanto</media:title>
		</media:content>

		<media:content url="http://i216.photobucket.com/albums/cc289/harisanto/blog/idulfitri2.jpg" medium="image">
			<media:title type="html">Idul Fitri 2008</media:title>
		</media:content>
	</item>
		<item>
		<title>Membuat Type Data Null</title>
		<link>http://harisanto.wordpress.com/2008/09/24/membuat-type-data-null/</link>
		<comments>http://harisanto.wordpress.com/2008/09/24/membuat-type-data-null/#comments</comments>
		<pubDate>Wed, 24 Sep 2008 02:33:29 +0000</pubDate>
		<dc:creator>harisanto</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[VB.NET]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Type Data]]></category>

		<guid isPermaLink="false">http://has.web.id/?p=60</guid>
		<description><![CDATA[Dengan support terbaru yang terdapat pada .NET, beberapa fitur telah ditambahkan. Salah satunya adalah " Build Typesafe Generic Classes ". Sekarang kita dapat menyelesaikan permasalahan pada type data...<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=harisanto.wordpress.com&blog=2983020&post=112&subd=harisanto&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p align="justify">Dengan support terbaru yang terdapat pada .NET, beberapa fitur telah ditambahkan. Salah satunya adalah &#8220;<strong>Build Typesafe Generic Classes</strong>&#8220;. Sekarang kita dapat menyelesaikan permasalahan pada type data NULL.</p>
<blockquote>
<p align="justify">Apakah biasanya anda melakukan pelambangan pada data yang NULL? Saat ini .NET telah melakukan perbaikan dan solve problem.</p>
</blockquote>
<p dir="ltr" align="justify">Nilai NULL yang dikenali oleh Visual Basic sebagai flag istimewa yang menunjukkan data yang tidak muncul. <span>kebanyakan nilai NULL menunjukan bahwa resource atau bisa kita ibaratkan benda tersebut ada tetapi tidak terlihat atau tidak terciptakan</span>. Misalnya pada kode berikut, <span>FileStream</span> berisi Null referensi karena tidak ter-<span>instantiated</span> dengan <span>New</span> Keywords:</p>
<div>
<pre>Dim fs As FileStream
If fs Is Nothing
    Console.WriteLine("Object contains a null reference.")
End If</pre>
</div>
<p dir="ltr" align="justify">Core tipe data seperti  integer dan string tidak dapat berisi NULL Values. Variable numerik akan otomatis bernilaoi 0 (Nol) dan boolean akan berisi variable False. Sedangkan tipe data String akan berisi kosong (“”) secara otomatis. Pada dasarnya, bila anda melakukan set type data dengan variable <span>Nothing</span> pada code, akan secara otomatis bila terjadi kekosongan data akan dikembalikan pada nilai kosong (0,False,””). Contoh:</p>
<div>
<pre>Dim j As Integer = Nothing
If j = 0 Then
    Console.WriteLine("Non-nullable integer j = " &amp; j)
End If</pre>
</div>
<p align="justify">Bentuk ini kadang-kadang menyebabkan masalah, dimana tidak ada pembeda antara nilai kosong (NULL) dengan nilai yang tidak pernah ada. Secara sederhana saya contohkan, bila anda membuat code dimana anda harus mengembalikan nilai text pada textbox dan pada saat itu diset 0, maka anda tidak dapat tahu, apakah textbox tersebut memang kosong atau 0 adalah nilai awal (Tentu saja bila tidak disertai Flag-flag tertentu sebagai konfigurasi).</p>
<p align="justify">.NET 2.0 telah memberikan solusinya, yaitu <span>System.Nullable</span> Class yang dapat melingkupi berbagai macam tipe data. Bila anda membuat suatu definisi yang tidak mempunyai nilai awal (atau nullable) atau tidak melakukan setting nilai dasar, maka anda dapat melakukan test dengan metode <span>Nullable.Hastype()</span> dan anda akan mendapatkan nilai balik <span>Nullable.Value</span></p>
<p align="justify">Berikut contohnya:</p>
<div>
<pre>Dim i As Nullable(Of Integer)
If Not i.HasValue Then
    Console.WriteLine("i is a null value")
End If

i = 100
If i.HasValue Then
    Console.WriteLine("Nullable integer i = " &amp; i.Value)
End If</pre>
</div>
<blockquote>
<p align="justify">…Memakai <strong>Nullable </strong>sebagai referensi object sangat bermanfaat walaupun anda tidak membutuhkannya, ini akan tetap dapat memberikan anda keuntungan, yaitu paling tidak kode anda akan lebih mudah untuk dibaca <strong>HasValue()</strong> yaitu metode yang lebih baik untuk melakukan tes untuk value <strong>Nothing</strong>. Yang terbaik adalah, anda dapat mengadakan perubahan secara berkesinambungan, karena Class Nullable mempunyai kemampuan untuk melakukan konversi antara Nullable dengan type data itu sendiri.</p>
</blockquote>
<div class="bjtags">Tags:  <a rel="tag" href="http://technorati.com/tag/VB.NET,Type+Data+Null">VB.NET,Type+Data+Null</a></div>
Posted in Coding, VB.NET Tagged: MySQL, Type Data <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/harisanto.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/harisanto.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/harisanto.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/harisanto.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/harisanto.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/harisanto.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/harisanto.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/harisanto.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/harisanto.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/harisanto.wordpress.com/112/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=harisanto.wordpress.com&blog=2983020&post=112&subd=harisanto&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://harisanto.wordpress.com/2008/09/24/membuat-type-data-null/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e8ae967f748960e083a73aee01ea55d9?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Harisanto</media:title>
		</media:content>
	</item>
		<item>
		<title>Mengambil Informasi Applikasi</title>
		<link>http://harisanto.wordpress.com/2008/09/23/mengambil-informasi-applikasi/</link>
		<comments>http://harisanto.wordpress.com/2008/09/23/mengambil-informasi-applikasi/#comments</comments>
		<pubDate>Tue, 23 Sep 2008 02:27:34 +0000</pubDate>
		<dc:creator>harisanto</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[VB.NET]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://has.web.id/?p=49</guid>
		<description><![CDATA[My.Application  obyek adalah pusat informasi yang dengan cepat dapat anda dapatkan. Mengambil informasi dari sana dapat semudah anda menariknya dari system properti.
Memakai My.Application adalah salah satu cara untuk mengambil versi, lokasi dan parameter yang anda gunakan untuk applikasi anda.


BAGAIMANA ANDA MEMULAINYA?
Informasi yang terdapat pada object My.Application datang dengan beberapa situasi yang bervariasi.  Berikut [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=harisanto.wordpress.com&blog=2983020&post=102&subd=harisanto&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><div><a href="null"><img class="alignleft" title="Dot Net" src="http://i216.photobucket.com/albums/cc289/harisanto/blog/net.jpg" alt="" width="124" height="79" /></a><span>My.Application </span> obyek adalah pusat informasi yang dengan cepat dapat anda dapatkan. Mengambil informasi dari sana dapat semudah anda menariknya dari system properti.</p>
<blockquote><p>Memakai <strong>My.Application </strong>adalah salah satu cara untuk mengambil versi, lokasi dan parameter yang anda gunakan untuk applikasi anda.</p></blockquote>
</div>
<p><span id="more-102"></span></p>
<div><span><strong>BAGAIMANA ANDA MEMULAINYA?</strong></span><br />
Informasi yang terdapat pada object <span>My.Application </span>datang dengan beberapa situasi yang bervariasi.  Berikut 2 contoh :</p>
<ol>
<li>Anda inin mendapatakan versi dari applikasi. Ini akan sangat berguna bila anda ingin menempatkan <em>About Box</em>, atau melakukan checking dengan memakai web service untuk memastikan bahwa anda telah mendapatkan versi terbaru.</li>
<li>Anda ingin menyimpan informasi diagnostic yang mungkin akan berguna untuk anda kelak atau end user anda. Ini mungkin bisa menjadi sangat penting bila applikasi yang anda buat adalah bersifat client-server dan anda berkeninginan untuk melakukkan log informasi tentang applikasi yang sedang berjalan.</li>
</ol>
<p>Berikut contoh applikasi console yang mengambil detail applikasi kemudian menampilkannya ke console windows.</p>
<pre>' Find out what parameters were used to start the application.
Console.Write("Command line parameters: ")
For Each Arg As String In My.Application.CommandLineArgs
Console.Write(Arg &amp; " ")
Next
Console.WriteLine( )
Console.WriteLine( )

' Find out some information about the assembly where this code is located.
' This information comes from metadata (attributes in your code).
Console.WriteLine("Company: " &amp; My.Application.Info.CompanyName)
Console.WriteLine("Description: " &amp; My.Application.Info.Description)
Console.WriteLine("Located in: " &amp; My.Application.Info.DirectoryPath)
Console.WriteLine("Copyright: " &amp; My.Application.Info.Copyright)
Console.WriteLine("Trademark: " &amp; My.Application.Info.Trademark)
Console.WriteLine("Name: " &amp; My.Application.Info.AssemblyName)
Console.WriteLine("Product: " &amp; My.Application.Info.ProductName)
Console.WriteLine("Title: " &amp; My.Application.Info.Title)
Console.WriteLine("Version: " &amp; My.Application.Info.Version.ToString( ))
Console.WriteLine( )</pre>
<blockquote><p>Visual Studio 2005 mempunyai alat bantu <em>Quick Console</em> yang lebih ringan dari Command-Line Windows. Dalam beberapa kasus applikasi ini bisa sedikit lambat. Bila anda mendapat kesulitan dalam melakukan Running Tes dan kesulitan mendapat OutPut, anda dapat menDisable applikasi ini. Untuk melakukannya, Select Tools &#8211;&gt; Options, pastikan &#8220;Show All Setting&#8221; Checkbox dalam posisi tercentang, dan Select Debugging &#8211;&gt; General Tab. Matikan fungsi &#8220;Redirect all console Output to the Quick Console Window.&#8221;</p></blockquote>
<p>Sebelum anda melakukan tes code ini, pastikan untuk melakukan set up environment untuk meyakinkan bahwa anda akan dapat mendapatkan tampilan data yang anda inginkan. Contohnya, anda menginginkan Visual Studio untuk menampilkan Command-Line parameter bila applikasi dijalankan. Untuk itu yang anda harus lakukan adalah, Doble click icon My Project pada Solution Explorer. Kemudian, PilihDebug Tab dan lihat pada &#8220;Command Line Parameters&#8221; text box. Sebagai contoh anda dapat memasukkan 3 parameter berikut pada Command-Line <span>/a /b /c</span></p>
<p>Bila ingin menambahkan informasi seperti assembly author, product, version dan lainnya, anda butuh special attribute pada <em>AssemblyInfo.vb</em>, dan ini tidak terdapat pada Solution Explorer. Untuk mengaksesnya, anda harus melakukan langkah berikut, Solution &#8211;&gt; Show All Files. Anda akan mendapati AssemblyInfo.vb pada My Projects Node. berikut typical tags yang harus diisi:</p>
<p><span>&lt;Assembly: AssemblyVersion(&#8220;1.0.0.0&#8243;)&gt;<br />
&lt;Assembly: AssemblyCompany(&#8220;Prosetech&#8221;)&gt;<br />
&lt;Assembly: AssemblyDescription(&#8220;Utility that tests My.Application&#8221;)&gt;<br />
&lt;Assembly: AssemblyCopyright(&#8220;(C) Matthew MacDonald&#8221;)&gt;<br />
&lt;Assembly: AssemblyTrademark(&#8220;(R) Prosetech&#8221;)&gt;<br />
&lt;Assembly: AssemblyTitle(&#8220;Test App&#8221;)&gt;<br />
&lt;Assembly: AssemblyProduct(&#8220;Test App&#8221;)&gt;</span></p>
<p>Semua informasi ini akan dibendel pada applikasi sebagai metadata. Sekarang anda dapat melakukakn Running Test dan kurang lebihnya akan muncul console sebagai berikut.</p>
<p><span>Command line parameters: /a /b /c<br />
Company: has.web.id<br />
Description: Utility that tests My.Application<br />
Located in: C:\Code\VBNotebook\1.08\ApplicationInfo\bin<br />
Copyright: (C) Harisanto A.S<br />
Trademark: (R) Indonesia<br />
Name: ApplicationInfo.exe<br />
Product: Test App<br />
Title: Test App<br />
Version: 1.0.0.0<br />
</span></p>
<p>Ingin Lebih detail lagi dalam mendapatkan informasi diagnostic dari <span>My.Computer.Info</span> object dengan memakai <span>LoadedAssemblies</span>. Koleksi yang terdapat di dalam class akan lebih lengkap dan detail. Ini contoh code yang dapat dipakai untuk mendapatkan informasinya.</p>
<pre>Console.WriteLine("Currently loaded assemblies")
For Each Assm As System.Reflection.Assembly In _
  My.Application.Info.LoadedAssemblies
    Console.WriteLine(Assm.GetName( ).Name)
Next
Console.WriteLine( )    

Console.WriteLine("Current stack trace: " &amp; My.Application.Info.StackTrace)
Console.WriteLine( )</pre>
</div>
Posted in Coding, VB.NET Tagged: Coding, tips, VB.NET <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/harisanto.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/harisanto.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/harisanto.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/harisanto.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/harisanto.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/harisanto.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/harisanto.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/harisanto.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/harisanto.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/harisanto.wordpress.com/102/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=harisanto.wordpress.com&blog=2983020&post=102&subd=harisanto&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://harisanto.wordpress.com/2008/09/23/mengambil-informasi-applikasi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e8ae967f748960e083a73aee01ea55d9?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Harisanto</media:title>
		</media:content>

		<media:content url="http://i216.photobucket.com/albums/cc289/harisanto/blog/net.jpg" medium="image">
			<media:title type="html">Dot Net</media:title>
		</media:content>
	</item>
		<item>
		<title>Make Simple Data Types Nullable</title>
		<link>http://harisanto.wordpress.com/2008/08/22/make-simple-data-types-nullable/</link>
		<comments>http://harisanto.wordpress.com/2008/08/22/make-simple-data-types-nullable/#comments</comments>
		<pubDate>Fri, 22 Aug 2008 08:11:07 +0000</pubDate>
		<dc:creator>harisanto</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[VB.NET]]></category>
		<category><![CDATA[Nullable Data]]></category>

		<guid isPermaLink="false">http://www.harisanto.co.cc/?p=85</guid>
		<description><![CDATA[A null value (identified in Visual Basic by the keyword Nothing), is a special flag that indicates no data is present. Most developers are familiar with null object references, which indicate that the object has been defined but not created. For example, in the following code, the FileStream contains a null reference because it hasn&#8217;t [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=harisanto.wordpress.com&blog=2983020&post=100&subd=harisanto&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><div>A null value (identified in Visual Basic by the keyword Nothing), is a special flag that indicates no data is present. Most developers are familiar with null object references, which indicate that the object has been defined but not created. For example, in the following code, the FileStream contains a null reference because it hasn&#8217;t been instantiated with the New keyword:</p>
<pre>Dim fs As FileStream
If fs Is Nothing
    ' This is always true because the FileStream hasn't
    ' been created yet.
    Console.WriteLine("Object contains a null reference.")
End If</pre>
<p>Core data types like integers and strings can&#8217;t contain null values. Numeric variables are automatically initialized to 0. Boolean variables are False. String variables are set to an empty string (&#8221;&#8221;) automatically. In fact, even if you explicitly set a simple data type variable to Nothing in your code, it will automatically revert to the empty value (0, False, or &#8220;&#8221;), as the following code demonstrates:</p>
<pre>Dim j As Integer = Nothing
If j = 0 Then
    ' This is always true because there is an
    ' implicit conversion between Nothing and 0 for integers.
    Console.WriteLine("Non-nullable integer j = " &amp; j)
End If</pre>
<p>This design sometimes causes problems, because there&#8217;s no way to distinguish between an empty value and a value that was never supplied in the first place. For example, imagine you create code that needs to retrieve the number of times the user has placed an order from a text file. Later on, you examine this value. The problem occurs if this value is 0. Quite simply, you have no way to know whether this is valid data (the user placed no orders), or it represents missing information (the setting couldn&#8217;t be retrieved or the current user isn&#8217;t a registered customer).</p>
<p>Thanks to generics, .NET 2.0 has a solutiona System.Nullable class that can wrap any other data type. When you create an instance of Nullable you specify the data type. If you don&#8217;t set a value, this instance contains a null reference. You can test whether this is true by testing the Nullable.HasType( ) method, and you can retrieve the underlying object through the Nullable.Value property.</p>
<p>Here&#8217;s the sample code you need to create a nullable integer:</p>
<pre>Dim i As Nullable(Of Integer)
If Not i.HasValue Then
    ' This is true, because no value has been assigned.
    Console.WriteLine("i is a null value")
End If

' Assign a value. Note that you must assign directly to i, not i.Value.
' The i.Value property is read-only, and it always reflects the
' currently assigned object, if it is not Nothing.
i = 100
If i.HasValue Then
    ' This is true, because a value (100) is now present.
    Console.WriteLine("Nullable integer i = " &amp; i.Value)
End If</pre>
<blockquote><p>using <span>Nullable </span>with full-fledged reference objects? Although you don&#8217;t need this ability (because reference types can contain a null reference), it still gives you some advantages. Namely, you can use the slightly more readable <span>HasValue() </span>method instead of testing for Nothing. Best of all, you can make this change seamlessly, because the <span>Nullable class </span>has the remarkable ability to allow implicit conversions between Nullable and the type it wraps.</p></blockquote>
</div>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/harisanto.wordpress.com/100/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/harisanto.wordpress.com/100/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/harisanto.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/harisanto.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/harisanto.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/harisanto.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/harisanto.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/harisanto.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/harisanto.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/harisanto.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/harisanto.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/harisanto.wordpress.com/100/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=harisanto.wordpress.com&blog=2983020&post=100&subd=harisanto&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://harisanto.wordpress.com/2008/08/22/make-simple-data-types-nullable/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e8ae967f748960e083a73aee01ea55d9?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Harisanto</media:title>
		</media:content>
	</item>
		<item>
		<title>MySQL Data Null Handles With VB 6.0</title>
		<link>http://harisanto.wordpress.com/2008/07/24/mysql-data-null-handles-with-vb-60/</link>
		<comments>http://harisanto.wordpress.com/2008/07/24/mysql-data-null-handles-with-vb-60/#comments</comments>
		<pubDate>Thu, 24 Jul 2008 01:52:54 +0000</pubDate>
		<dc:creator>harisanto</dc:creator>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Null Data Handles]]></category>
		<category><![CDATA[VB]]></category>

		<guid isPermaLink="false">http://www.harisanto.co.cc/?p=84</guid>
		<description><![CDATA[If sometime you wite code in VB and you will find data into database that&#8217;s empty (read Null) and that&#8217;s maybe a big problem. Why you not insert some character to make the data field in data row sorted not null&#8230;? maybe you have some reason that make it cannot applicated into data storage. You [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=harisanto.wordpress.com&blog=2983020&post=99&subd=harisanto&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><img class="alignleft" src="http://i216.photobucket.com/albums/cc289/harisanto/blog/eye.jpg" alt="" width="137" height="106" />If sometime you wite code in VB and you will find data into database that&#8217;s empty (read Null) and that&#8217;s maybe a big problem. Why you not insert some character to make the data field in data row sorted not null&#8230;? maybe you have some reason that make it cannot applicated into data storage. You can try solution with ISNULL() Function.</p>
<p><strong>Syntax:</strong><br />
<span> IsNull(expression) </span></p>
<p><strong>Return Data type:</strong><br />
<span>Boolean</span></p>
<p><strong>Example:</strong></p>
<pre>If IsNull(RsData!telp_asal) = True Then
      Text1(4).Text = ""
      Text1(5).Text = ""
Else
      Text1(4).Text = Mid(RsData!telp_asal, 1, InStr(RsData!telp_asal, "-") - 1)
      Text1(5).Text = Mid(RsData!telp_asal, 1, InStr(RsData!telp_asal, "-") + 1)
End If</pre>
<p>That&#8217;s it&#8230;. simple methode to handle null data from database.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/harisanto.wordpress.com/99/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/harisanto.wordpress.com/99/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/harisanto.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/harisanto.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/harisanto.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/harisanto.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/harisanto.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/harisanto.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/harisanto.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/harisanto.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/harisanto.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/harisanto.wordpress.com/99/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=harisanto.wordpress.com&blog=2983020&post=99&subd=harisanto&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://harisanto.wordpress.com/2008/07/24/mysql-data-null-handles-with-vb-60/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e8ae967f748960e083a73aee01ea55d9?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Harisanto</media:title>
		</media:content>

		<media:content url="http://i216.photobucket.com/albums/cc289/harisanto/blog/eye.jpg" medium="image" />
	</item>
		<item>
		<title>Nautilus Bug</title>
		<link>http://harisanto.wordpress.com/2008/07/09/nautilus-bug/</link>
		<comments>http://harisanto.wordpress.com/2008/07/09/nautilus-bug/#comments</comments>
		<pubDate>Wed, 09 Jul 2008 14:03:24 +0000</pubDate>
		<dc:creator>harisanto</dc:creator>
				<category><![CDATA[Tips & Trick]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[nautilus]]></category>
		<category><![CDATA[Nautilus Bug]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.harisanto.co.cc/?p=83</guid>
		<description><![CDATA[I you your Ubuntu Box upgraded to hardy and rebooted. When you log in to Gnome, a Nautilus window flashes up and quickly disappears about ten times. There are no icons on the desktop. When I try to start Nautilus from the terminal and you may get:
Initializing gnome-mount extension
seahorse nautilus module initialized
nautilus: symbol lookup error: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=harisanto.wordpress.com&blog=2983020&post=98&subd=harisanto&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><img class="alignleft" src="http://tbn0.google.com/images?q=tbn:neVWQ8lbMd4yIM:http://www.thevarguy.com/wp-content/uploads/2008/02/ubuntu_logo.png" alt="" width="127" height="115" />I you your Ubuntu Box upgraded to hardy and rebooted. When you log in to Gnome, a Nautilus window flashes up and quickly disappears about ten times. There are no icons on the desktop. When I try to start Nautilus from the terminal and you may get:</p>
<p>Initializing gnome-mount extension<br />
seahorse nautilus module initialized<br />
nautilus: symbol lookup error: /usr/lib/</p>
<p>nautilus/extensions-1.0/libgnome-mount.so: undefined symbol: nautilus_file_info_get_drive</p>
<p>So&#8230; you maybe cry :p</p>
<p>It&#8217;s okay, you can do this step to resolve your problem:</p>
<ol>
<li>sudo apt-get autoremove nautilus</li>
<li>sudo apt-get install nautilus</li>
</ol>
<p>Yes&#8230; that&#8217;s it&#8230; and problem solve!!!</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/harisanto.wordpress.com/98/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/harisanto.wordpress.com/98/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/harisanto.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/harisanto.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/harisanto.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/harisanto.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/harisanto.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/harisanto.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/harisanto.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/harisanto.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/harisanto.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/harisanto.wordpress.com/98/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=harisanto.wordpress.com&blog=2983020&post=98&subd=harisanto&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://harisanto.wordpress.com/2008/07/09/nautilus-bug/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e8ae967f748960e083a73aee01ea55d9?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Harisanto</media:title>
		</media:content>

		<media:content url="http://tbn0.google.com/images?q=tbn:neVWQ8lbMd4yIM:http://www.thevarguy.com/wp-content/uploads/2008/02/ubuntu_logo.png" medium="image" />
	</item>
		<item>
		<title>Reducing MySQL Data</title>
		<link>http://harisanto.wordpress.com/2008/07/02/reducing-mysql-data/</link>
		<comments>http://harisanto.wordpress.com/2008/07/02/reducing-mysql-data/#comments</comments>
		<pubDate>Wed, 02 Jul 2008 06:23:11 +0000</pubDate>
		<dc:creator>harisanto</dc:creator>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[basic tutorial for mysql]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[innodb]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[mysql tutorial]]></category>

		<guid isPermaLink="false">http://www.harisanto.co.cc/?p=82</guid>
		<description><![CDATA[If you use the InnoDB storage engine for (some of) your MySQL tables, you’ve probably already came across a problem with its default configuration. As you may have noticed in your MySQL’s data directory lies a file called ‘innodb1?. It holds almost all the InnoDB data of the MySQL instance and could get quite big. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=harisanto.wordpress.com&blog=2983020&post=97&subd=harisanto&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><img class="alignleft" src="http://i216.photobucket.com/albums/cc289/harisanto/blog/mysql.png" alt="MySQL" width="141" height="160" />If you use the InnoDB storage engine for (some of) your MySQL tables, you’ve probably already came across a problem with its default configuration. As you may have noticed in your MySQL’s data directory lies a file called ‘innodb1?. It holds almost all the InnoDB data of the MySQL instance and could get quite big. Unfortunately, by design InnoDB data files can’t be shrinked. That’s why DELETEs, TRUNCATEs, DROPs, etc. can’t will not reclaim the space used by the file. Instead any freed regions are marked as unused and can be used later. Theoretically speaking the file could reach the maximum size allowed by the filesystem if no limit is set in the my.cnf file. Guess what ? It’s not set by default. However you can configure your InnoDB engine as described MySQL’s <a href="http://dev.mysql.com/doc/refman/5.0/en/innodb-configuration.html">Reference Manual</a>. Additionally you can force the server to create an <em>*.ibd</em> for each <strong>newly created</strong> InnoDB table by using the ‘<em>innodb_file_per_table</em>‘ option.</p>
<p>As mentioned above, you cannot shrink InnoDB data files. Additionally, you cannot make much changes in the settings of a InnoDB data file. So if you haven’t configured InnoDB properly right after the installation, you’ll probably have a pretty large ibdata1 file. There are three ways to reclaim your free space, but before doing so <strong><span>backup your whole MySQL data directory</span></strong>… just in case. And don’t forget to stop any services using MySQL databases.</p>
<h2>Dump the Whole Database</h2>
<p>In fact, this is the method I used to solve the problem. It requires much more space and time but it’s maybe the easiest one. So here it is:</p>
<ol>
<li>Dump all databases by calling:<br />
<blockquote><p>/usr/bin/mysqldump –-extended-insert –-all-databases –-add-drop-database –-disable-keys –-flush-privileges –-quick –-routines -triggers &gt; all-databases.sql</p></blockquote>
</li>
<li>Stop the MySQL server;</li>
<li>Rename or remove (in case you’ve already backed it up) the MySQL data directory and create an empty one with the same name and permissions;</li>
<li>Make the appropriated changed in <em>my.cnf</em>;</li>
<li>From the command prompt issue ‘<em>mysql_install_db</em>‘ in order to re-initialize the database;</li>
<li>Start the MySQL server;</li>
<li>Get into the ‘<em>mysql</em>‘ console and type:<br />
<blockquote><p>SET FOREIGN_KEY_CHECKS=0;<br />
SOURCE all-databases.sql;<br />
SET FOREIGN_KEY_CHECKS=1;</p></blockquote>
</li>
</ol>
<p>:)  Have fun !</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/harisanto.wordpress.com/97/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/harisanto.wordpress.com/97/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/harisanto.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/harisanto.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/harisanto.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/harisanto.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/harisanto.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/harisanto.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/harisanto.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/harisanto.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/harisanto.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/harisanto.wordpress.com/97/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=harisanto.wordpress.com&blog=2983020&post=97&subd=harisanto&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://harisanto.wordpress.com/2008/07/02/reducing-mysql-data/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e8ae967f748960e083a73aee01ea55d9?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Harisanto</media:title>
		</media:content>

		<media:content url="http://i216.photobucket.com/albums/cc289/harisanto/blog/mysql.png" medium="image">
			<media:title type="html">MySQL</media:title>
		</media:content>
	</item>
	</channel>
</rss>