<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<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/"
	>

<channel>
	<title>insert &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://en.wordpress.com/tag/insert/</link>
	<description>Feed of posts on WordPress.com tagged "insert"</description>
	<pubDate>Mon, 30 Nov 2009 07:42:26 +0000</pubDate>

	<generator>http://en.wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[Illinois Criminal Arrest Records Lookup]]></title>
<link>http://asbestosattorneyillinois.wordpress.com/2009/11/30/illinois-criminal-arrest-records-lookup/</link>
<pubDate>Mon, 30 Nov 2009 06:17:38 +0000</pubDate>
<dc:creator>harry5599</dc:creator>
<guid>http://asbestosattorneyillinois.wordpress.com/2009/11/30/illinois-criminal-arrest-records-lookup/</guid>
<description><![CDATA[The arrest record in Illinois are perceived as public documents, are given according to which the pe]]></description>
<content:encoded><![CDATA[The arrest record in Illinois are perceived as public documents, are given according to which the pe]]></content:encoded>
</item>
<item>
<title><![CDATA[Sunday Coupon Preview 11/29]]></title>
<link>http://reapingyourharvest.wordpress.com/2009/11/28/sunday-coupon-preview-1129/</link>
<pubDate>Sat, 28 Nov 2009 19:34:43 +0000</pubDate>
<dc:creator>Reaping Your Harvest</dc:creator>
<guid>http://reapingyourharvest.wordpress.com/2009/11/28/sunday-coupon-preview-1129/</guid>
<description><![CDATA[This week you will only find one (1) insert within your papers. Here&#8217;s a preview of what to ex]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>This week you will only find one (1) insert within your papers. Here&#8217;s a preview of what to expect.</p>
<p><strong>P&#38;G</strong><br />
$5 off Align product<br />
.25/1 Bounty towels or napkins<br />
.25/1 Charmin Bathroom Tissue<br />
$1 off Covergirl Product<br />
.75/1 Crest Toothpaste 4oz.+ or liquid gel<br />
$7 off Crest Whitestrips Advanced Seal 14ct.<br />
$5 off Crest Whitestrips, Pro-Effects, Daily Multicare, Daily Whitening+<br />
.50/1 Dawn Hand Renewal with Olay Beauty<br />
.25/1 Dawn<br />
$1 off Febreeze Air Effects<br />
$2 off Febreeze Candle<br />
$1 off Febreeze Flameless Luminary Refill<br />
$3.50 off Febreeze Flameless Luminary Starter Kit<br />
.50/1 Fixodent, 1.2oz.+<br />
$1 off Gillette Body Wash 12oz.+<br />
$1 off Gillette Deodorant Product<br />
$4 off Gillette Fusion Razor<br />
$1 off Gillette Shampoo, Conditioner or Styler<br />
$1 off Gillette Shave Prep Product<br />
.50/1 Herbal Essences Shampoo, Conditioner or Styler<br />
$1 off Metamucil product<br />
$1 off Nice ‘n Easy hair color product<br />
$1.50 off NyQuil or DayQuil Product<br />
Free Olay Body Lotion wyb Olay Body Wash<br />
$1 off Olay Facial Moisturizer or Facial Cleanser<br />
$3 off Olay Regenerist Facial Moisturizer or Facial Cleanser<br />
Free Old Spice After Shave or Cologne, 4.25oz., wyb (3) old Spice Deodorants<br />
Free Old Spice Body Spray wyb (3) Old Spice Deodorants or Body Washes<br />
$1/2 Old Spice Deodorants or Body Washes<br />
$1 off Old Spice Fragrance Gift Set<br />
$1 off Oral-B Floss Picks 45ct.+, Oral-B Satin Floss or any Crest Glide Product<br />
$10 MIR Oral-B Pulsonic, Professional Care or Sonic Complete Rechargeable Toothbrush<br />
$5 off Oral-B refill, 3ct.+<br />
$1/2 Oral-B Stages or Zooth manual or Power Toothbrushes<br />
$1/2 Oral-B Stages or Zooth or Kids Crest Toothpastes or Liquid Gels<br />
$1.50 off Pampers Diapers or Pants<br />
$2 off Pampers Swaddlers Sensitive, Swaddlers, Cruisers, or Extra Protection Diapers<br />
$1 off Pantene Products<br />
$1 off Pantene Styling product or Treatment<br />
.50/1 Pepto Product<br />
$7/2 Prilosec OTC, 42pk.<br />
$3 off Prilosec OTC<br />
$1 off Prilosec OTC<br />
.25/3 Puffs Singles, or 3pk.<br />
$3 off Pur or Pur Flavor Options System (Pitcher or Faucet mount)<br />
$3 off Pur Pitcher or Faucet Mount Replacement Filter Multi-Pack or Refrigerator Filter, 1pk.<br />
.75/1 Scope Mouthwash, 710ml.+<br />
.35/1 Tide to Go<br />
.35/1 Tide<br />
.55/1 Vicks Product, any (except NyQuil or DayQuil)</p>
<p>Reaping In Abundance,<br />
Kay</p>
<p>Thanks <a href="http://proverbswife.blogspot.com/search/label/Insert%20Schedule">Proverbs Wife</a>!</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[MySQL: insert ถ้ายังไม่มี]]></title>
<link>http://veer66.wordpress.com/2009/11/28/insert_if_not_exist/</link>
<pubDate>Fri, 27 Nov 2009 18:48:55 +0000</pubDate>
<dc:creator>वीर</dc:creator>
<guid>http://veer66.wordpress.com/2009/11/28/insert_if_not_exist/</guid>
<description><![CDATA[ปกติใน MySQL (DBMS อื่นๆ ก็คงเหมือนกัน) ถ้าเราไป insert อะไรซ้ำๆ เข้าไปใน column ที่บังคับไว้ว่าต้อง]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>ปกติใน MySQL (DBMS อื่นๆ ก็คงเหมือนกัน) ถ้าเราไป insert อะไรซ้ำๆ เข้าไปใน column ที่บังคับไว้ว่าต้อง unique มันก็จะเจ๊ง ก็เลยต้องมาดูก่อนว่ามีข้อมูลแล้วหรือยัง ค่อย insert แต่ว่าจะเขียน SQL อย่างไรให้สั้นๆ ง่ายๆ เท่าที่อ่านมาจาก <a href="http://bogdan.org.ua/2007/10/18/mysql-insert-if-not-exists-syntax.html">http://bogdan.org.ua/2007/10/18/mysql-insert-if-not-exists-syntax.html</a> ผ่านทาง <a href="http://stackoverflow.com/questions/1361340/how-to-insert-if-not-exists-in-mysql">http://stackoverflow.com/questions/1361340/how-to-insert-if-not-exists-in-mysql</a> มาอีกที </p>
<p>ผมเลือกใช้ &#8220;on duplicate key update&#8221; เพิ่มใน insert เพราะเท่าที่อ่านมา 3 วิธีก็ วิธ๊นี้ก็ดูประหยัด และไม่ไปเพิกเฉยต่อ error อื่น ที่ไม่เกี่ยวข้อง </p>
<p>สมมุติว่าผมจะเพิ่ม 6 เข้าไปใน textunit_conflicts.textunit_id ก็เขียนแบบนี้</p>
<pre class="brush: sql;">insert into textunit_conflicts value (6) on duplicate key update textunit_id = textunit_id;</pre>
<p>textunit_id = textunit_id ก็เขียนไปไม่ให้มันผิด syntax เฉยๆ</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[RPF Agreement]]></title>
<link>http://rebelpenguinfederationrpf.wordpress.com/2009/11/23/rpf-is-best-medium-army/</link>
<pubDate>Mon, 23 Nov 2009 20:33:48 +0000</pubDate>
<dc:creator>ṨḜṜḠḬḜ717</dc:creator>
<guid>http://rebelpenguinfederationrpf.wordpress.com/2009/11/23/rpf-is-best-medium-army/</guid>
<description><![CDATA[EDIT: MFW AGREED TO OUR POST WE NOW OWN WALRUS AND MFW IS GIVEN ICICLE BACK, MFW IS IN THE TOP 10, R]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p style="text-align:center;"><span style="color:#800080;"><strong>EDIT: <span style="color:#ff0000;">MFW</span> AGREED TO OUR POST WE NOW OWN WALRUS AND MFW IS GIVEN ICICLE BACK,<span style="color:#ff0000;"> MFW</span> IS IN THE TOP 10, RPF IS THE BEST MEDIUM ARMY NOW.</strong></span></p>
<p style="text-align:center;"><span style="color:#800080;"><strong></p>
<div id="attachment_190" class="wp-caption aligncenter" style="width: 511px"><strong><a href="http://rebelpenguinfederationrpf.wordpress.com/files/2009/11/13.jpg"><img class="size-full wp-image-190" src="http://rebelpenguinfederationrpf.wordpress.com/files/2009/11/13.jpg" alt="" width="501" height="170" /></a></strong><p class="wp-caption-text">First RPF Accomplishment</p></div>
<p></strong></span></p>
<p style="text-align:center;"><span style="text-decoration:line-through;"><span style="text-decoration:underline;"><strong>Miroos&#8217; Comment</strong></span></span></p>
<blockquote>
<p style="text-align:center;"><span style="text-decoration:line-through;">Ok look. We obviously have to come to an agreement. Swearing at each other won’t get us anywhere. Neither will arguing about who won. So I suggest that we give you Walrus and we keep Icicle. But at least we got back into the CP Warfare spirit. <img src="http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif" alt=":D" /> Nice battles, it was fun – even the arguing. So yeah, I agree with Ads. Let’s see what Sergie says now…</span></p>
</blockquote>
<p style="text-align:center;"><span style="text-decoration:line-through;"><span style="text-decoration:underline;"><strong>Sergie&#8217;s Comment</strong></span></span></p>
<p style="text-align:center;"><span style="text-decoration:line-through;">I agree, this was good battle. But I think since you didn&#8217;t give us Yeti with Walrus, but only Walrus, then we will have 1 more thing before we agree. You either <strong>declare RPF as the best medium army, and become close allies</strong> or <strong>fight again and see who earns it, and probably have more arguments again. -.-</strong></span></p>
<p style="text-align:center;"><span style="text-decoration:line-through;">If you choose the first option, the RPF will announce you as the 2nd best medium army due to sportsmanship and active, reasonable leaders. We will also present an &#8220;<em>close-brother allie treaty</em>&#8221; which will make RPF and MFW a brother army, also making RPF help MFW at any battle they wish us to attend. If RPF is in trouble, MFW also could help if they have time. Sounds like a good deal unless you want the same thing over again with <em>Option 2</em>.</span></p>
<p style="text-align:center;"><img class="alignnone size-full wp-image-185" title="De" src="http://rebelpenguinfederationrpf.wordpress.com/files/2009/11/deal-or-no-deal-1of-2.jpg" alt="" width="400" height="303" /></p>
<p style="text-align:left;"><strong>Fight The Good Fight,</strong></p>
<p style="text-align:left;"><strong> &#8211; Sergie717</strong></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Sergie Saves The Day]]></title>
<link>http://rebelpenguinfederationrpf.wordpress.com/2009/11/23/sergie-saves-the-day/</link>
<pubDate>Mon, 23 Nov 2009 04:24:36 +0000</pubDate>
<dc:creator>ṨḜṜḠḬḜ717</dc:creator>
<guid>http://rebelpenguinfederationrpf.wordpress.com/2009/11/23/sergie-saves-the-day/</guid>
<description><![CDATA[Guess what you MFW fu*ers, I got my pictures. YOU WERE LUCKY I HAD TO GO TO MY COUSINS HOUSE TO BABY]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Guess what you MFW fu*ers, I got my pictures. YOU WERE LUCKY I HAD TO GO TO MY COUSINS HOUSE TO BABYSIT FOR 2 DAYS! MFW ARE COMPLETE NOOBS, RPF OWNED THEM. THE ACP SOLDIER RUMOR IS ALL NOT TRUE, WE RECRUITED YOU DUMB*UCKS. I couldn&#8217;t post RPF&#8217;s proof of the battle because I had to leave immediatly.. Well now you can<strong> SEE MY PROOF OF RPF WINNING. RPF OWNS ICICLE UNTIL MFW WANTS TO RE-INVADE IT!</strong></p>
<p><strong><span style="color:#ff0000;">MFW HAD ALLIE S DRESSED UP IN THEIR UNIFORM NO T US, PROOF:</span></strong></p>
<p><strong><span style="color:#ff0000;"><a href="http://rebelpenguinfederationrpf.wordpress.com/files/2009/11/haha.jpg"><img class="alignnone size-full wp-image-176" src="http://rebelpenguinfederationrpf.wordpress.com/files/2009/11/haha.jpg" alt="" width="502" height="40" /></a></span></strong></p>
<p><strong><span style="color:#ff0000;">MFW ADMITTED DEFEAT:</span></strong></p>
<p><strong><span style="color:#ff0000;"><a href="http://rebelpenguinfederationrpf.wordpress.com/files/2009/11/fail.jpg"><img class="alignnone size-full wp-image-177" src="http://rebelpenguinfederationrpf.wordpress.com/files/2009/11/fail.jpg" alt="" width="501" height="46" /></a></span></strong></p>
<p><strong><span style="color:#ff0000;">THE EPIC BATTLE, RPF vs. MFW:<br />
</span></strong></p>
<p><a href="http://rebelpenguinfederationrpf.wordpress.com/files/2009/11/0.jpg"><img class="alignnone size-full wp-image-166" src="http://rebelpenguinfederationrpf.wordpress.com/files/2009/11/0.jpg" alt="" width="510" height="331" /></a></p>
<p><a href="http://rebelpenguinfederationrpf.wordpress.com/files/2009/11/11.jpg"><img class="alignnone size-full wp-image-169" src="http://rebelpenguinfederationrpf.wordpress.com/files/2009/11/11.jpg" alt="" width="510" height="331" /></a></p>
<p><a href="http://rebelpenguinfederationrpf.wordpress.com/files/2009/11/3.jpg"><img class="alignnone size-full wp-image-170" src="http://rebelpenguinfederationrpf.wordpress.com/files/2009/11/3.jpg" alt="" width="510" height="319" /></a></p>
<p><a href="http://rebelpenguinfederationrpf.wordpress.com/files/2009/11/6.jpg"><img class="alignnone size-full wp-image-171" src="http://rebelpenguinfederationrpf.wordpress.com/files/2009/11/6.jpg" alt="" width="510" height="330" /></a></p>
<p><a href="http://rebelpenguinfederationrpf.wordpress.com/files/2009/11/8.jpg"><img class="alignnone size-full wp-image-172" src="http://rebelpenguinfederationrpf.wordpress.com/files/2009/11/8.jpg" alt="" width="510" height="331" /></a></p>
<p><a href="http://rebelpenguinfederationrpf.wordpress.com/files/2009/11/9.jpg"><img class="alignnone size-full wp-image-173" src="http://rebelpenguinfederationrpf.wordpress.com/files/2009/11/9.jpg" alt="" width="509" height="331" /></a></p>
<p><a href="http://rebelpenguinfederationrpf.wordpress.com/files/2009/11/10.jpg"><img class="alignnone size-full wp-image-174" src="http://rebelpenguinfederationrpf.wordpress.com/files/2009/11/10.jpg" alt="" width="510" height="329" /></a></p>
<p><a href="http://rebelpenguinfederationrpf.wordpress.com/files/2009/11/111.jpg"><img class="alignnone size-full wp-image-175" src="http://rebelpenguinfederationrpf.wordpress.com/files/2009/11/111.jpg" alt="" width="510" height="330" /></a></p>
<p><strong>Fight The Good Fight</strong></p>
<p><strong> &#8211; Sergie717</strong></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Invasion of Icicle v2]]></title>
<link>http://rebelpenguinfederationrpf.wordpress.com/2009/11/21/invasion-of-icicle-v2/</link>
<pubDate>Sat, 21 Nov 2009 02:23:28 +0000</pubDate>
<dc:creator>ṨḜṜḠḬḜ717</dc:creator>
<guid>http://rebelpenguinfederationrpf.wordpress.com/2009/11/21/invasion-of-icicle-v2/</guid>
<description><![CDATA[Since Fiasco ruined our first invasion, we will make them suffer.. Now we will fight and not leave t]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Since Fiasco ruined our first invasion, we will make them suffer.. Now we will fight and not leave the battle. Pack your bags boys.</p>
<p style="text-align:center;"><span style="text-decoration:underline;"><strong>RE-INVASION OF ICICLE</strong></span></p>
<p style="text-align:center;"><strong>When: Saturday, November 21, 2009</strong></p>
<p style="text-align:center;"><strong>Where: Icicle, Snow Forts<br />
</strong></p>
<p style="text-align:center;"><strong>Chat:<a href="http://xat.com/tehrpf"> xat.com/TehRPF</a><a href="http://xat.com/TheACP" target="_blank"></a></strong></p>
<p style="text-align:center;"><strong>Times:</strong></p>
<p style="text-align:center;"><span style="color:#ff0000;"><strong>4:40 pm PST</strong></span></p>
<p style="text-align:center;"><span style="color:#ff0000;"><strong>5:40 pm MST</strong></span></p>
<p style="text-align:center;"><span style="color:#ff0000;"><strong>6:40 pm CST</strong></span></p>
<p style="text-align:center;"><span style="color:#ff0000;"><strong>7:40 pm EST</strong></span></p>
<p style="text-align:center;"><strong><span style="color:#0000ff;">COMMENT IF YOU THINK YOU CAN MAKE IT!</span></strong></p>
<p style="text-align:left;"><span style="color:#000000;"><strong>Fight The Good Fight,</strong></span></p>
<p style="text-align:left;"><strong><span style="color:#0000ff;"><span style="color:#000000;">- Sergie717</span></span></strong></p>
<p style="text-align:center;"><strong><span style="color:#0000ff;"><span style="color:#000000;"><br />
</span></span></strong></p>
<p><span style='text-align:center; display: block;'><object width='425' height='350'><param name='movie' value='http://www.youtube.com/v/jy4xy1oISJ0&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;hd=0' /><param name='allowfullscreen' value='true' /><param name='wmode' value='transparent' /><embed src='http://www.youtube.com/v/jy4xy1oISJ0&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;hd=0' type='application/x-shockwave-flash' allowfullscreen='true' width='425' height='350' wmode='transparent'></embed></object></span></p>
<p><strong>EDIT:</strong></p>
<p><span style='text-align:center; display: block;'><object width='425' height='350'><param name='movie' value='http://www.youtube.com/v/tVNQEPiRIMM&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;hd=0' /><param name='allowfullscreen' value='true' /><param name='wmode' value='transparent' /><embed src='http://www.youtube.com/v/tVNQEPiRIMM&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;hd=0' type='application/x-shockwave-flash' allowfullscreen='true' width='425' height='350' wmode='transparent'></embed></object></span></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[War on MFW]]></title>
<link>http://rebelpenguinfederationrpf.wordpress.com/2009/11/19/war-on-mfw/</link>
<pubDate>Thu, 19 Nov 2009 17:18:39 +0000</pubDate>
<dc:creator>ṨḜṜḠḬḜ717</dc:creator>
<guid>http://rebelpenguinfederationrpf.wordpress.com/2009/11/19/war-on-mfw/</guid>
<description><![CDATA[Karakoran: Approved The Mysterious Freedom Warriors have 2 servers that belong to the old U.S.R.P.F.]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><strong>Karakoran: Approved</strong></p>
<p>The <a href="http://mfwarmy.com" target="_blank">Mysterious Freedom Warriors</a> have 2 servers that belong to the old U.S.R.P.F. (Yeti and Walrus). I want to put back everything that the past leaders lost, and glue it back on our nation page. So MFW, we are at war until you give us Yeti and Walrus. We will be <strong>invading their capital</strong> tommorrow, <strong>Icicle</strong>. This is a very important battle, so if you think you deserve a promotion I recommend attending the invasion.<span style="color:#ff6600;"> <span style="color:#0000ff;"><strong>If MFW bring allies, that means we can bring our allies.. I don&#8217;t think we want ACP to be involved in this, right?</strong></span></span></p>
<p style="text-align:center;"><span style="text-decoration:underline;"><strong><img src="../files/2009/11/gunsmilie.gif" alt="" width="52" height="25" /></strong></span><span style="text-decoration:underline;"><strong>INVASION OF ICICLE<img class="alignnone size-full wp-image-125" src="http://rebelpenguinfederationrpf.wordpress.com/files/2009/11/gunsmilie.gif" alt="" width="52" height="25" /></strong></span></p>
<p style="text-align:center;"><strong>When: <span style="color:#ff0000;">Friday, November 20, 2009</span></strong></p>
<p style="text-align:center;"><strong>Where: <span style="color:#ff0000;">Icicle, Snow Forts<br />
</span></strong></p>
<p style="text-align:center;"><strong>Chat: <a href="http://xat.com/Rebel_Penguin_Federation" target="_blank">RPF CHAT<br />
</a></strong></p>
<p style="text-align:center;"><strong>Times:</strong></p>
<p style="text-align:center;"><span style="color:#ff0000;"><strong>3:40 pm PST</strong></span></p>
<p style="text-align:center;"><span style="color:#ff0000;"><strong>4:40 pm MST</strong></span></p>
<p style="text-align:center;"><span style="color:#ff0000;"><strong>5:40 pm CST</strong></span></p>
<p style="text-align:center;"><span style="color:#ff0000;"><strong>6:40 pm EST</strong></span></p>
<h4 style="text-align:center;"><strong><span style="color:#00ccff;">COMMENT IF YOU CAN MAKE IT!</span><br />
</strong></h4>
<p style="text-align:left;"><strong>Fight The Good Fight,</strong></p>
<p style="text-align:left;"><strong>- Sergie717</strong></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Wtf?]]></title>
<link>http://rebelpenguinfederationrpf.wordpress.com/2009/11/19/wtf/</link>
<pubDate>Thu, 19 Nov 2009 13:33:24 +0000</pubDate>
<dc:creator>ninja5050</dc:creator>
<guid>http://rebelpenguinfederationrpf.wordpress.com/2009/11/19/wtf/</guid>
<description><![CDATA[Ninja: Maxwell is accusing me now i want him fired he is being a a$$ fire him now! &nbsp; Uhm wow gu]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><strong>Ninja: Maxwell is accusing me now i want him fired he is being a a$$ fire him now!</strong></p>
<p>&#160;</p>
<p>Uhm wow guys you let in freaking maxwell! You know he is the one that destroyed romans right? And if u did whos idea was it to let him in! My god guys i would fire him before he hacks you and take over. -_-</p>
<p><strong>Crazy: I pretty much agree there.</strong></p>
<p><strong>Sergie717: How do you know that he is a hacker? Maybe he is one of those noobs who get promoted too much, and get admined. I don&#8217;t see Max as a threat, because I know from his past that he is not fit for leader. Max, you are staying in RPF, no promotions until you prove yourself worthy. Same goes for the rest of the lower ranked people. Promotion is a privilege, not a hobby.<br />
</strong></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[ACTIVE COUNT/NEWS]]></title>
<link>http://rebelpenguinfederationrpf.wordpress.com/2009/11/19/active-countnews/</link>
<pubDate>Thu, 19 Nov 2009 02:27:30 +0000</pubDate>
<dc:creator>ṨḜṜḠḬḜ717</dc:creator>
<guid>http://rebelpenguinfederationrpf.wordpress.com/2009/11/19/active-countnews/</guid>
<description><![CDATA[Well, you guys didn&#8217;t show up for the Nacho battle, seriously, not even 1 person. But that]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Well, you guys didn&#8217;t show up for the Nacho battle, seriously, not even 1 person. But that&#8217;s allright, all I care about is that our chat is in good shape that means that if the chat is in good shape then CP will be in good shape.</p>
<p style="text-align:center;"><span style="text-decoration:underline;"><strong>UMA &#38; RPF Conflict</strong></span></p>
<p style="text-align:center;">UMA wanted to take over Tuxedo on Thursday, but Crazyboy86 cancelled it because he is a good friend of mine and why in the world would they want to take over Tuxedo? Just a reminder for you UMA&#8217;ians, ACP and RPF share Tuxedo ever since Oberst533 and Boomer20 were RPF leaders. Harv is also a server whore who had a grudge against Commando717 the day he joined CP Armies.</p>
<p style="text-align:center;">This picture is extremely suspicious, <strong>Rofl</strong>;</p>
<p style="text-align:center;"><a href="http://rebelpenguinfederationrpf.wordpress.com/files/2009/11/1.jpg"><img class="alignnone size-full wp-image-104" src="http://rebelpenguinfederationrpf.wordpress.com/files/2009/11/1.jpg" alt="" width="220" height="40" /></a></p>
<p style="text-align:center;"><span style="text-decoration:underline;"><strong>Nachos&#8217; Corrupt Leadership</strong></span></p>
<p style="text-align:center;">Basically, ACP &#38; IW &#38; UMA owned the Nachos today. Probably while the Nachos were fighting their a**es off at their servers, AkABob22 was playing <em>Left For Dead 2</em>.</p>
<p style="text-align:center;"><span style="color:#008000;"><span style="text-decoration:underline;"><strong>Active Count</strong></span></span></p>
<p style="text-align:center;">Basically comment with your CP rank and you&#8217;re username in a comment on this post. Please don&#8217;t comment twice. Whoever does not comment until tommorrow midnight is <span style="color:#ff0000;"><strong>SUSPENDED FOR INACTIVITY</strong></span>.</p>
<p style="text-align:center;"><span style="color:#800000;"><span style="text-decoration:underline;"><strong>Rise Against &#8211; Savior</strong></span></span></p>
<p style="text-align:center;"><span style="text-decoration:underline;"><strong><em>Song Dedicated To Emperer Josh &#38; Sergie717 for Bringing The RPF Back</em><br />
</strong></span></p>
<p style="text-align:center;">
<p style="text-align:center;"><span style='text-align:center; display: block;'><object width='425' height='350'><param name='movie' value='http://www.youtube.com/v/PhU3RajAo9k&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;hd=0' /><param name='allowfullscreen' value='true' /><param name='wmode' value='transparent' /><embed src='http://www.youtube.com/v/PhU3RajAo9k&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;hd=0' type='application/x-shockwave-flash' allowfullscreen='true' width='425' height='350' wmode='transparent'></embed></object></span></p>
<p style="text-align:center;">
<p style="text-align:left;"><strong>Fight The Good Fight,</strong></p>
<p style="text-align:left;"><strong> &#8211; Sergie717</strong></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[War with the Corrupt Nachos]]></title>
<link>http://rebelpenguinfederationrpf.wordpress.com/2009/11/18/war-with-the-corrupt-nachos/</link>
<pubDate>Wed, 18 Nov 2009 03:32:06 +0000</pubDate>
<dc:creator>ṨḜṜḠḬḜ717</dc:creator>
<guid>http://rebelpenguinfederationrpf.wordpress.com/2009/11/18/war-with-the-corrupt-nachos/</guid>
<description><![CDATA[Yes, I heard ACP and IW are going on massive war against the all mighty Nachos, we will join on ACP ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Yes, I heard ACP and IW are going on massive war against the all mighty Nachos, we will join on ACP and IW&#8217;s side until further notice. I can surely tell you that were sticking with ACP and IW, let&#8217;s do this!<strong> EVERYONE IN RPF COME TO THIS BATTLE.</strong></p>
<h2><span style="color:#008000;">WAR</span></h2>
<p><strong>When: <span style="color:#ff0000;">Wednesday, November 18, 2009</span></strong></p>
<p><strong>Where: <span style="color:#ff0000;">White House, Snow Forts</span></strong></p>
<p><strong>Chat: <a href="http://xat.com/rebel_penguin_federation" target="_blank">RPF Chat<br />
</a></strong></p>
<p><strong>Times:</strong></p>
<p><span style="color:#0000ff;"><strong>3:30 pm PST</strong></span></p>
<p><span style="color:#0000ff;"><strong>4:30 pm MST</strong></span></p>
<p><span style="color:#0000ff;"><strong>5:30 pm CST</strong></span></p>
<p><span style="color:#0000ff;"><strong>6:30 pm EST</strong></span></p>
<p><span style="color:#0000ff;"><strong>11:30 pm U.K.</strong></span></p>
<h4><span style="text-decoration:underline;"><strong>We need all soldiers to attend, this is going to be a big war!  Do your best to get there 30 minutes early for recruiting!</strong></span></h4>
<p>Taken off the <a href="http://acparmyofclubpenguin.wordpress.com/2009/11/17/a-storm-of-change-is-brewing-the-takedown-of-the-nacho-leadership/">ACP site</a>,</p>
<blockquote><p>I have been watching the Nacho site for weeks now and have not been able to find a single post of much relevance to the army.  Between Jayson not posting at all and Aka’s posts of some random video and message saying “Comment” the Nachos have fallen a great deal.  Not to mention the hostility Aka in particular has shown ACP in the past.  Some of us think it’s time for a change.</p>
<p>Aka and Jayson have been in armies longer than most of our penguins have even existed.  There is no denying what they have accomplished, but at the same time, it has become apparent neither care enough anymore to be effective leaders of the Nachos.  For this reason, Icey and I have been called in to dispose of them.</p>
<p>ACP and IW will be declaring <strong><em>unrelenting </em></strong>war on the Nachos until Aka and Jayson are out of power.  The first such event will take place this Wednesday.  ACP and IW will invade two separate servers simultaneously, taking out Shiver and White House.  Pack your bags soldiers, we’re off to war.</p></blockquote>
<h3 style="text-align:center;"><span style="color:#ff0000;">COMMENT IF YOU CAN MAKE IT!</span></h3>
<p><strong>Fight The Good Fight,</strong></p>
<p><strong>- Sergie717</strong></p>
<p><span style="text-decoration:underline;"><em><strong>P.S.: Check out our new recruits!</strong></em></span></p>
<p><a href="http://rebelpenguinfederationrpf.wordpress.com/files/2009/11/123.jpg"><img class="alignnone size-full wp-image-85" src="http://rebelpenguinfederationrpf.wordpress.com/files/2009/11/123.jpg" alt="" width="164" height="217" /></a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Insert Clever Title Here]]></title>
<link>http://rebelpenguinfederationrpf.wordpress.com/2009/11/17/insert-clever-title-here/</link>
<pubDate>Tue, 17 Nov 2009 05:15:31 +0000</pubDate>
<dc:creator>ṨḜṜḠḬḜ717</dc:creator>
<guid>http://rebelpenguinfederationrpf.wordpress.com/2009/11/17/insert-clever-title-here/</guid>
<description><![CDATA[Yeah, RPF is doing actually really good. Sergie &amp; Josh decided to unite as brothers and take con]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p style="text-align:center;"><span style="text-decoration:line-through;">Yeah, RPF is doing actually really good. Sergie &#38; Josh decided to unite as brothers and take control over the RPF and it&#8217;s survivors. The RPF needs recruits, so go ahead and join at the &#8220;Join&#8221; page right now.. seriously.. The RPF has been a major army, look at us now, just another small army getting stepped on by other armies such as the allmighty ACP. Even though I believe that Commando717 was our source of activeness due to his humor and awesome leadership. *Sigh*, yes we all miss the old days when you would get insulted by Commando717 and then have a big laugh. We can all do that though, we just need &#8220;everyone&#8221; to help us rebuild. Everyone is allowed to join, except Oagalthorp. I got basketball practice so I won&#8217;t be online on chats from 3:00pm &#8211; 5:00pm.. that&#8217;s PST. I would also like people to start working harder, and recruit as much as you can. I know recruiting is a boring thing.. seriously.. We all hate CP, but I don&#8217;t want RPF to go out like that. We just all need to unite.. Cooperation is our key right now. I am scheduling a Recruitment Session, hopefully more than 3 people can show up; -<strong>.-</strong></span></p>
<p style="text-align:center;"><span style="text-decoration:line-through;"><strong><span style="text-decoration:underline;">Invasion of Summit</span><br />
</strong></span></p>
<p style="text-align:center;"><span style="text-decoration:line-through;"><strong><span style="color:#0000ff;">When -</span> <em>November 18, 2009</em></strong></span></p>
<p style="text-align:center;"><span style="text-decoration:line-through;"><strong><span style="color:#0000ff;">Time -</span> <span style="color:#800000;">3:00 pm PST</span>, <span style="color:#ff0000;">4:00 pm MST</span>, <span style="color:#ff6600;">5:00 pm CST</span>, <span style="color:#ffcc00;">6:00 pm EST</span>, <span style="color:#008000;">11:00 pm U.K</span>.</strong></span></p>
<p style="text-align:center;"><span style="text-decoration:line-through;"><strong><span style="color:#0000ff;">Server -</span> <em>Summit</em></strong></span></p>
<p style="text-align:center;"><span style="color:#0000ff;"><strong>Reason -</strong></span><strong><em> <a href="http://rebelpenguinfederationrpf.wordpress.com/files/2009/11/lol1.jpg"><img class="alignnone size-full wp-image-51" src="http://rebelpenguinfederationrpf.wordpress.com/files/2009/11/lol1.jpg" alt="" width="476" height="74" /></a></em></strong></p>
<p style="text-align:center;">
<h3 style="text-align:left;"><strong><span style="color:#ff0000;">F</span>i<span style="color:#ff0000;">g</span>h<span style="color:#ff0000;">t</span> T<span style="color:#ff0000;">h</span>e <span style="color:#ff0000;">G</span>o<span style="color:#ff0000;">o</span>d F<span style="color:#ff0000;">i</span>g<span style="color:#ff0000;">h</span>t,</strong></h3>
<h3 style="text-align:left;"><strong> &#8211; <span style="color:#ff0000;">S</span>e<span style="color:#ff0000;">r</span>g<span style="color:#ff0000;">i</span>e<span style="color:#ff0000;">7</span>1<span style="color:#ff0000;">7</span></strong><strong><em><br />
</em></strong></h3>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Mempercepat Proses Load Data di Java Menggunakan Cache]]></title>
<link>http://eecchhoo.wordpress.com/2009/11/15/mempercepat-proses-load-data-di-java-menggunakan-cache/</link>
<pubDate>Sun, 15 Nov 2009 12:38:24 +0000</pubDate>
<dc:creator>Eko Kurniawan Khannedy</dc:creator>
<guid>http://eecchhoo.wordpress.com/2009/11/15/mempercepat-proses-load-data-di-java-menggunakan-cache/</guid>
<description><![CDATA[Motivasi sebelum saya bahas tentang mempercepat proses load data di java menggunakan cache, saya aka]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><h2>Motivasi</h2>
<p>sebelum saya bahas tentang mempercepat proses load data di java menggunakan cache, saya akan bahas dahulu tentang apa saja manfaat yang akan didapat setelah mambaca artike ini. secara sederhana anda akan mengetahui :</p>
<ul>
<li>cara mempercepat proses load menggunakan cache.</li>
<li>bagaimana cara kerja cache sehingga dapat mempercepat proses laod data.</li>
<li>cara menerapkan cache pada sistem anda.</li>
<li>framework yang dapat digunakan sebagai cache.</li>
</ul>
<p>sekarang jika anda sekiranya tidak tertarik dengan manfaat artikel ini, anda bisa tidak melanjutkan membacanya, namun jika tertarik anda dapat meneruskan untuk membaca artikel ini.<!--more--></p>
<h2>Apa itu Cache?</h2>
<p>sebelum tahu bagaimana cara mempercepat proses load data menggunakan cache, tentulah anda harus mengetahui dulu tentang apa itu cache.</p>
<blockquote><p><em><span style="color:#ff0000;"><span style="color:#3366ff;">Cache</span> adalah kumpulan dari duplikasi data yang disimpan di suatu media. dimana data orisinil dari duplikasi tersebut membutuhkan biaya yang mahal untuk diakses, seperti waktu yang lama, ataupun proses yang memakan resource processor banyak.</span></em></p></blockquote>
<p>sekarang yang jadi pertanyaan, data yang bagaimana yang bagus untuk dibuat cache-nya, dan dimanakan kita harus menyimpan cache tersebut?</p>
<p>sudah tidak bisa dipungkiri lagi jika setiap sistem pasti membutuhkan media penyimpanan, dan kebanyakan media penyimpanan tersebut adalah disk. misal seperti database, ataupun file biasa. ataupun biasanya sistem menyimpan data dalam memori. biasanya data yang disimpan dalam memori itu bukanlah data yang bersifat permanen, biasanya jika datanya bersifat permanen, maka diharuskan disimpan dalam disk.</p>
<p>anggap saja saat ini kita sedang menggunakan sistem yang berbasis database. artinya kita menggunakan database sebagai media penyimpan datanya. dan hal ini berarti data tersebut disimpan dalam disk. (kecuali menggunakan database berbasis memori seperti HSQLDB, anggap saja kita sekarang menggunakan database yang datanya disimpan dalam disk).</p>
<p>perlu diketahui juga kalo proses disk io yang dilakukan oleh database, baik itu ketika menyimpan data ataupun meload data bukanlah proses yang gampang. proses tersebut meruapkan proses yang mahal. kenapa bisa dibilang proses yang mahal? karena ada proses yang lebih murah dari proses tersebut <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>yup! proses yang lebih murah tersebut adalah memori io, yang artinya pengaksesan data dari disk itu lebih mahal dari pada pengaksesan data dari memori. mengakses data dari file akan membutuhkan waktu yang lama dimandingkan mengakses data dati memori. dan mengakses data dari disk membutuhkan resource processor lebih besar dari pada mengakses data dari memori. (<span style="color:#ff0000;">makanya harga memori lebih mahal dari harga hardisk <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </span> )</p>
<blockquote><p>gak percaya kalo memori lebih cepat dari disk? coba tanya ke orang teknik komputer <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p></blockquote>
<p>sekarang yang menjadi pertanyaannya adalah, <strong>bagaimana cara kita meyimpan cache dalam memori?</strong></p>
<h2>Arsitektur Menggunakan Cache</h2>
<p>sebelum menggunakan cache, biasanya kita membuat sistem berbasis database seperti dibawah ini :</p>
<p style="text-align:center;"><img class="aligncenter" src="http://eecchhoo.files.wordpress.com/2009/11/before.png?w=500" alt="Before" /></p>
<p>dimana biasanya aplikasi langsung terkoneksi ke database, sehingga proses insert, update, delete, dan select akan langsung dilakukan ke database. namun seperti yang dibahas sebelumnya, karena proses disk io dalam database itu prosesnya cukup mahal, maka adabaiknya kita menggunakan cache untuk menggulangi masalah tersebut. dimana kita akan menggunakan memori sebagai media penyimpanan cache tersebut. sehingga arsitekturnya akan seperti ini :</p>
<p style="text-align:center;"><img class="aligncenter" src="http://eecchhoo.files.wordpress.com/2009/11/after.png?w=500" alt="After" /></p>
<p><strong>lho kenapa tetap menggunakan database? </strong></p>
<p>tentu saja, karena sifat memori yang akan menghapus data ketika sumber daya mati, maka kita tidak bisa menggunakan memori sebagai media penyimpanan utama. jadi tetap walaupun kita menyimpan cache di memori, tetapi tetap data original harus ada dalam database, sehingga saat sistem mati, data tetap ada.</p>
<h2>Implementasi Dalam Java</h2>
<p>sekarang pertanyaannya, &#8220;<strong>bagaimana cara mengimplementasikan cache di java?</strong>&#8220;</p>
<p>seperti biasa, biasanya orang java selalu menggunakan konsep yang namanya Data Access Object saat membuat sistem berbasiskan database. anggap saja misal kita memiliki entitas Manusia, maka biasanya dibuatlah data access object untuk entitas tersebut :</p>
<pre class="brush: java;">
package echo.khannedy.cacheload.mapper;

import echo.khannedy.cacheload.entity.Manusia;

public interface ManusiaMapper {

	void saveManusia(Manusia manusia);

	void updateManusia(Manusia manusia);

	void deleteManusia(Long id);

	Manusia getManusia(Long id);

}
</pre>
<blockquote><p>jika anda belum mengerti tentang konsep dao, anda bisa membacanya disini :</p>
<ul>
<li>p<a href="http://eecchhoo.wordpress.com/2009/08/06/pengenalan-data-access-object-1/">engenalan data access object 1 intro</a></li>
<li>p<a href="http://eecchhoo.wordpress.com/2009/08/10/pengenalan-data-access-object-2-implementasi-dalam-jdbc/">engenalan data access object 2 implementasi dalam jdbc</a></li>
<li><a href="http://eecchhoo.wordpress.com/2009/08/11/pengenalan-data-access-object-3-implementasi-dalam-jpa/">pengenalan data access object 3 implementasi dalam java persistence api</a></li>
<li><a href="http://eecchhoo.wordpress.com/2009/08/12/pengenalan-data-access-object-4-implementasi-dalam-hibernate/">pengenalan data access object 4 implementasi dalam hibernate</a></li>
<li><a href="http://eecchhoo.wordpress.com/2009/08/12/pengenalan-data-access-object-5-kesalahan-membuat-dao/">pengenalan data access object 5 kesalahan membuat dao</a></li>
<li><a href="http://eecchhoo.wordpress.com/2009/08/12/pengenalan-data-access-object-6-outro/">pengenalan data access object 6 outro</a></li>
</ul>
</blockquote>
<p>dan biasanya kita membuat implementasi dao tersebut seperti ini :</p>
<pre class="brush: java;">
package echo.khannedy.cacheload.implement;

import echo.khannedy.cacheload.entity.Manusia;
import echo.khannedy.cacheload.mapper.ManusiaMapper;

public class ManusiaMapperImpl implements ManusiaMapper {

	@Override
	public void deleteManusia(Long id) {
		// mulai transaksi
		database.beginTransaction();

		// hapus data yang ada di database
		database.deleteById(Manusia.class, id);

		// commit transaksi
		database.commit();
	}

	@Override
	public Manusia getManusia(Long id) {
		// mulai transaksi
		database.beginTransaction();

		// load data yang ada dalam database
		Manusia manusia = database.getById(Manusia.class, id);

		// commit transaksi
		database.commit();

		return manusia;
	}

	@Override
	public void saveManusia(Manusia manusia) {
		// mulai transaksi
		database.beginTransaction();

		// simpan data ke database
		database.save(Manusia.class, manusia);

		// commit transaksi
		database.commit();
	}

	@Override
	public void updateManusia(Manusia manusia) {
		// mulai transaksi
		database.beginTransaction();

		// ubah data di database
		database.update(Manusia.class, manusia);

		// commit transaksi
		database.commit();
	}

}
</pre>
<p>nah sekarang bagaimana membuat cache? seperti pada penjelasannya bahwa cache itu adalah kumpulan duplikasi data, artinya cache ini berisikan data. sehingga dengan demikian kita bisa menggunakan collection untuk dijadikan cache tersebut. namun yang menjadi permasalaan adalah, bagai mana kita tahu jika ada data yang kita mau dalam cache?</p>
<p>untuk mengatasi masalah tersebut, kita harus menggunakan identitas untuk tiap object dalam cache. sehingga collection yang mensupport pengidentitasan menggunakan id adalah java.util.Map, dimana jika kita menggunakan java.util.List, maka kita hanya bisa menyimpan object tanpa memberi identitas.</p>
<p>dan karena pada kasus ini kita menggunakan entitas Manusia, jadi kita buat juta cache untuk entitas Manusia dengan nama ManusiaCache :</p>
<pre class="brush: java;">
package echo.khannedy.cacheload.cache;

import java.util.HashMap;
import java.util.Map;

import echo.khannedy.cacheload.entity.Manusia;

public class ManusiaCache {

	// buat collection dari map
	private Map&#38;lt;Long, Manusia&#38;gt; map = new HashMap&#38;lt;Long, Manusia&#38;gt;();

	/**
	 * metode ini bisa digunakan untuk menambah data ke cache ataupun mengubah
	 * data di cache
	 *
	 * @param manusia
	 */
	public void put(Manusia manusia) {
		// simpan data ke map
		map.put(manusia.getId(), manusia);
	}

	/**
	 * metode ini digunakan untuk menghapus data di cache
	 *
	 * @param id
	 */
	public void delete(Long id) {
		map.remove(id);
	}

	/**
	 * metode ini digunakan untuk mendapatkan data di cache
	 *
	 * @param id
	 * @return manusia atau null jika tidak terdapat data manusia dengan id
	 *         tersebut
	 */
	public Manusia get(Long id) {
		return map.get(id);
	}

}
</pre>
<p>dengan demikian kita ubah juga data access object Manusia menjadi seperti dibawah ini :</p>
<pre class="brush: java;">
package echo.khannedy.cacheload.implement;

import echo.khannedy.cacheload.cache.ManusiaCache;
import echo.khannedy.cacheload.entity.Manusia;
import echo.khannedy.cacheload.mapper.ManusiaMapper;

public class ManusiaMapperImpl implements ManusiaMapper {

	private ManusiaCache cache = new ManusiaCache();

	@Override
	public void deleteManusia(Long id) {
		// mulai transaksi
		database.beginTransaction();

		// hapus data yang ada di database
		database.deleteById(Manusia.class, id);
		// hapus data di cache
		cache.delete(id);

		// commit transaksi
		database.commit();
	}

	@Override
	public Manusia getManusia(Long id) {
		// load data di cache
		Manusia manusia = cache.get(id);

		// cek apakah data tidak ada dalam cache
		if(manusia == null){
			// jika data tidak ada dalam cache, maka load dari database

			// mulai transaksi
			database.beginTransaction();

			// load data di database
			manusia = database.getById(Manusia.class, id);
			// simpan data ke cache
			cache.put(manusia);

			// commit transaksi
			database.commit();
		}

		return manusia;
	}

	@Override
	public void saveManusia(Manusia manusia) {
		// mulai transaksi
		database.beginTransaction();

		// simpan data ke database
		database.save(Manusia.class, manusia);
		// simpan data ke cache
		cache.put(manusia);

		// commit transaksi
		database.commit();
	}

	@Override
	public void updateManusia(Manusia manusia) {
		// mulai transaksi
		database.beginTransaction();

		// ubah data di database
		database.update(Manusia.class, manusia);
		// ubah data di cache
		database.put(manusia);

		// commit transaksi
		database.commit();
	}

}
</pre>
<p>dengan demikian saat terjadi proses load data maka proses ini yang akan dilakukan :</p>
<ul>
<li>load data dari cache</li>
<li>cek apakah data di cache ada</li>
<li>jika data ada maka proses selesai</li>
<li>jika data tidak ada dalam cache maka load data yang ada didatabase</li>
<li>setelah data yang ada didatabase diload, simpan data tersebut di cache</li>
<li>selesai</li>
</ul>
<p><em><span style="color:#ff6600;">dengan demikian saat sistem melakukan load data yang ada dicache dan ditemukan, maka sistem sama sekali tidak menyentuh database untuk meload data. dan hal ini tentu akan menjadikan proses load data lebih cepat.</span></em></p>
<p><em><span style="color:#3366ff;">namun jika data tidak ada dalam cache, maka data akan diload dari database, dan setelah itu data tersebut akan disimpan dalam cache. dengan ini proses selanjutnya maka load akan dilakukan ke cache tanpa harus ke database lagi <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </span></em></p>
<p>pada artikel ini, kita telah membuat cache secara manual, artinya kita membuat cache sendiri. namun jika anda ingin menggunakan cache yang lebih powerfull anda dapat menggunakan framework-framework cache yang telah ada seperti :</p>
<ul>
<li><a href="http://ehcache.org/">EhCache</a></li>
<li><a href="http://www.opensymphony.com/oscache/">OsCache</a></li>
<li><a href="http://www.jboss.org/jbosscache/">JBoss Cache</a></li>
</ul>
<p>terima kasih telah membaca artikel ini, semoga ilmu anda dan saya semakin bertambah <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[SED: change/insert/append lines after matching a pattern]]></title>
<link>http://mohammednv.wordpress.com/2009/11/15/sed-changeinsertappend-lines-after-matching-a-pattern/</link>
<pubDate>Sun, 15 Nov 2009 11:34:20 +0000</pubDate>
<dc:creator>Mohammed</dc:creator>
<guid>http://mohammednv.wordpress.com/2009/11/15/sed-changeinsertappend-lines-after-matching-a-pattern/</guid>
<description><![CDATA[Do you want to change/insert/append lines after matching a pattern from a file? If yes, you can use ]]></description>
<content:encoded><![CDATA[Do you want to change/insert/append lines after matching a pattern from a file? If yes, you can use ]]></content:encoded>
</item>
<item>
<title><![CDATA[Sunday Insert Preview: 11/15]]></title>
<link>http://reapingyourharvest.wordpress.com/2009/11/14/sunday-insert-preview-1115/</link>
<pubDate>Sun, 15 Nov 2009 02:47:17 +0000</pubDate>
<dc:creator>Reaping Your Harvest</dc:creator>
<guid>http://reapingyourharvest.wordpress.com/2009/11/14/sunday-insert-preview-1115/</guid>
<description><![CDATA[Here&#8217;s a look at your potential Sunday inserts list. Please be advised that some coupons are r]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Here&#8217;s a look at your potential Sunday inserts list. Please be advised that some coupons are regional so you may not receive every coupon on this list.</p>
<p>(1) Smart Source, (1) General Mills &#38; (1) RedPlum</p>
<p>Smartsource</p>
<p>Air Wick Freshmatic Starter Kit – $5.00 off any 1 (x12/27/09)<br />
Beaulieu Vineyard Wine 750mL (any varietal, excludes Century Cellars) AND Bailey’s Irish Cream 750mL or 1L (any flavor) – $4.00 off wyb BOTH (x12/31/09) DND-5 *VALID ONLY TO RESIDENTS OF LEGAL PURCHASE AGE IN: PA<br />
Beaulieu Vineyard Wine 750mL, any TWO+ Bottles (any varietal, excludes Century Cellars) AND Bailey’s Irish Cream Liqueur 750mL or 1L, any TWO+ Bottles (any flavor) – $10.00 off wyb TWO+ of BOTH (x12/31/09) *VALID ONLY TO RESIDENTS OF LEGAL PURCHASE AGE IN: PA<br />
BeneVia Balanced Nutrition Drink 4pk or (4) 8oz Bottles – $5.00 off (x2/28/10)<br />
Bertolli Pasta Sauce – 60 cents off any 1 (x1/15/10)<br />
Bic Soleil Refillable Razor Handle or Cartridge Refill – $2.00 off any 1 (x12/27/09)<br />
Birds Eye Vegetables, bag or box excludes Steamfresh varieties – 50 cents off any 1 (x1/10/10)<br />
Biz 37.5oz and 50oz Powder – $1.00 off any 1 (x1/23/10)<br />
Biz 80oz Powder – $2.50 off any 1 (x1/23/10)<br />
Biz Liquid, any size – $2.00 off any 1 (x1/23/10)<br />
Blistex Lip Care Products – $1.00 off any 2 (x1/31/09)<br />
Blue Diamond Almonds, 6oz cans – $1.00 off any 2 (x2/28/10)<br />
Blue Diamond BOLD Almonds, 6oz cans – $1.00 off any 2 (x2/28/10)<br />
Bob Evans Refrigerated Side Dishes – 35 cents off any 1 (x1/10/10)<br />
Bob Evans Sausage, any variety – 25 cents off any 1 (x1/10/10)<br />
Cheer BrightClean, any size – 35 cents off any 1 (x12/31/09)<br />
Claritin Non-Drowsy 15ct+ – $4.00 off any 1 (x12/31/09)<br />
Claritin Non-Drowsy Liqui-Gels 24ct+ – $5.00 off any 1 (x12/31/09)<br />
Colgate Sensitive Toothpaste – $1.00 off any 1 (x12/5/09)<br />
Daisy Brand Sour Cream, 16oz+ – 50 cents off any 1 (x12/31/09)<br />
Dannon 6oz Yogurt Cups, any 10 OR (1) 32oz Dannon All Natural Yogurt Product – $1.00 off (x1/15/10)<br />
Delsym product – $1.50 off any 1 (x2/7/10)<br />
DeMet’s Turtles, 7oz+ – $1.00 off any 1 (x3/31/10)<br />
Duck brand Bubble Wrap Protective Cushioning – $1.00 off any 1 (x1/31/10)<br />
Duck brand Bubble Wrap Protective Mailers Multi-pack – $1.00 off any 1 (x1/31/10)<br />
Farmland Cubed, Diced or Julienne Ham or Turkey – $1.00 off any 1 (x2/28/10)<br />
Farmland Special Select Ham or Turkey or Farmland Ham Steaks – $1.00 off any 1 (x2/28/10)<br />
Finish Dishwasher Cleaner – 40 cents off any 1 (x1/10/10)<br />
Finish Jet-Dry Rinse Agent or Turbo Dry – 40 cents off any 1 (x1/10/10)<br />
Finish/Electrasol Powder or Gel – 25 cents off any 1 (x12/13/09)<br />
[b]Finish/Electrasol Powerball Tabs, Gelpacs or Quantum – 75 cents off any 1 (x12/13/09)<br />
Freschetta Brick Oven Multi or Single Serve, Naturally Rising, PizzAmore Fire Baked, Original Crust, or Flatbread Pizza – $1.00 off any 1 (x2/7/10) DND-5<br />
Glass Plus product – 35 cents off any 1 (x1/8/10)<br />
GoodNites Sleep Pants, jumbo pack+ – $2.00 off any 1 (x12/31/09)<br />
Hershey’s Baking Chips – $1.00 off any 3 (x12/31/09)<br />
Huggies Baby Wipes, 64ct+ – 50 cents off any 1 (x12/31/09)<br />
Huggies Diapers – $1.50 off any 1 (x12/31/09)<br />
Huggies Pure &#38; Natural Diapers – $3.00 off any 1 (x12/31/09)<br />
Jennie-O Turkey Store Turkey Roast Products – 55 cents off any 1 (x12/06/09)<br />
L’Oreal Collagen or Age Perfect product – $1.00 off any 1 (x2/7/10)<br />
L’Oreal Excellence or Excellence to-Go – $2.00 off any 1 (x2/7/10)<br />
L’Oreal Revitalift product – $1.00 off any 1 (x2/7/10)<br />
L’Oreal Skin Genesis product – $1.00 off any 1 (x2/7/10)<br />
L’Oreal Vive Pro Glossy Style or StudioLine Styling product – $1.00 off any 1 (x2/7/10)<br />
L’Oreal Vive Pro Shampoo or Conditioner – $1.00 off any 1 (x2/7/10)<br />
Land O Lakes Deli Cheese product, 1lb – $1.00 off 1lb (x1/31/10) DND-5<br />
Land O Lakes Deli Cheese Products – $1.00 off any 2 (x1/31/10) DND-5<br />
Land O Lakes Spreadable Butter products – $1.00 off any 2 (x1/9/10) DND-5<br />
Marcal Small Steps Napkins – FREE up to $2.80 value (x12/25/09)<br />
Marcal Small Steps Single Roll of Towel, Bath Tissue, or Facial Tissue FREE or $1.00 off any other size – up to $1.00 value (x12/25/09)<br />
Margherita Packaged product or 1lb Deli Meat – 75 cents off any 1 (x12/31/09) DND-5<br />
Mrs. Smiths 30oz+ OR Edwards Whole Pies – $1.00 off any 1 (x1/31/10) DND-5<br />
Oscar Mayer Bacon – 75 cents off any 1 (x1/10/10)<br />
Pam Cooking Spray – 35 cents off any 1 (x12/31/09)<br />
Parkay Products – 75 cents off any 2 (x12/31/09)<br />
Pull-Ups Training Pants, Jumbo Pack+ – $1.00 off any 1 (x12/31/09)<br />
Purina Dog Snacks, andy size/variety – $4.00 off any 4 (x2/14/10)<br />
Purina Dog Snacks, any size/variety – $1.50 off any 2 (x2/14/10)<br />
Purina Friskies Cat Treats, any size/variety – $2.00 off any 2 (x2/14/10)<br />
Purina Whisker Lickin’s Cat Treats, any size/variety – $1.00 off any 2 (x2/14/10)<br />
Reddi-wip – 50 cents off any 1 (x12/31/09)<br />
Reynolds Baking Cups – 25 cents off any 2 (x12/31/09)<br />
Reynolds Wrap Aluminum Foil, excludes 20, 25 and 30 sq. ft. – $1.25 off any 1 (x12/31/09)<br />
Rhodes Bread or Rolls – $1.00 off any 2 (x2/28/10)<br />
Sargento Natural Shredded Cheeses, any variety 5oz+ – 40 cents off any 2 (x1/15/10)<br />
Similasan Well Being product – $3.00 off any 1 (x2/28/10) DND-5<br />
Simply Saline Nasal Product – $1.00 off any 1 (x12/31/12)<br />
Stacy’s Pita Chips, 7 1/3oz+ – $1.00 off any 1 (x12/31/09)<br />
Sunsweet (dried fruit) Products – $1.00 off any 2 (x2/28/10) DND-5<br />
Swiss Miss Cocoa – 50 cents off any 2 (x12/31/09)<br />
Tabasco Brand family of flavors, any size/flavor – 60 cents off any 1 (x12/31/09)<br />
TARGET COUPON – $5.00 Target Gift Card wyb Scrubbing Bubbles Automatic Shower Cleaner Starter Kit (x3/31/10) *Limit 1 offer per coupon, Free Giftcard not valid as payment on this purchase<br />
TARGET COUPON – Scrubbing Bubbles Cleaner Products – $1.50 off any 2 (x3/31/10)<br />
Welch’s Sparkling Juice Cocktail – $1.00 off any 1 (x1/31/10)<br />
White Castle Microwavable Hamburgers or Cheeseburgers, 6pk – 50 cents off any 1 (x2/13/10)<br />
Wonderful Pistachios, 8oz+ – $1.00 off any 1 (x5/31/10)<br />
Yoplait Frozen Smoothie – $1.00 off any 1 (x1/9/10)<br />
Zantac 8ct+ – $1.00 off any 1 (x3/31/10)<br />
Ziploc Brand Bags – $1.00 off any 2 (x1/9/10)<br />
Ziploc Brand Containers – $1.50 off any 2 (x1/9/10)</p>
<p>General Mills</p>
<p>Pillsbury Crescent Dinner Rolls – 25 cents off any 1 (x2/6/10)<br />
Pillsbury Crescent Dinner Rolls – 50 cents off any 2 (x2/6/10)<br />
Pillsbury Grands! Sweet Rolls – 55 cents off any 2 (x2/6/10)<br />
Pillsbury Refrigerated Sweet Rolls – 40 cents off any 2 (x2/6/10)<br />
Pillsbury Refrigerated Grands! Biscuits – 30 cents off any 2 (x2/6/10)<br />
Pillsbury Refrigerated Rolled Pie Crust – 50 cents off any 2 (x2/6/10)<br />
Pillsbury Italian Meal Breads, includes Loaves, Breadsticks, Dinner Rolls, and Pizza Crust – 40 cents off any 2 (x2/6/10)<br />
Pillsbury Refrigerated Cookie Dough – $1.00 off any 3 (x2/6/10)<br />
Pillsbury Refrigerated Cookie Dough – 55 cents off any 2 (x2/6/10)<br />
Pillsbury Savorings products – $1.00 off any 2 (x2/6/10)<br />
Pillsbury Frozen Grands! Biscuits, Cinnamon Rolls, or Mini Cinnamon Rolls – 75 cents off any 2 (x2/6/10)<br />
Totino’s Crisp Crust Party Pizza products – 50 cents off any 3 (x2/6/10)<br />
Betty Crocker Potatoes Box or Pouch, excludes Potato Buds – 35 cents off any 1 (x1/9/10)<br />
Bisquick Original or Heart Smart Baking Mix, 40oz+ – 60 cents off any 1 (x1/9/10)<br />
Chex Cereals – $1.00 off any 2 (x12/26/09)<br />
Green Giant Frozen Bagged Vegetables, 19-24oz ONLY – 40 cents off any 1 (x1/9/10)<br />
Green Giant Frozen Boxed Vegetables – 60 cents off any 3 (x1/9/10)<br />
Green Giant Specialty Corn cans – 40 cents off any 2 (x1/9/10)<br />
Green Giant Valley Fresh Steamers Frozen Vegetables – 40 cents off any 1 (x1/9/10)<br />
Green Giant Just for One Vegetables – 50 cents off any 1 (x1/9/10)<br />
Progresso Broth – 50 cents off any 1 (x1/9/10)<br />
Progresso Soups – $1.00 off any 4 (x1/9/10)<br />
Progresso High Fiber Soup – 25 cents off any 1 (x1/9/10)<br />
Fiber One Cereal – $1.00 off any 2 (x12/28/09)<br />
Fiber One Toaster Pastries – 50 cents off any 1 (x12/26/09)<br />
Chex Mix or Chex 100 Calorie Snack, 4.5oz+ – 50 cents off any 2 (x1/9/10)<br />
Betty Crocker Frosting Tub – 50 cents off any 1 (x1/9/10)<br />
Betty Crocker Cookie Mix, 17.5oz+ – 40 cents off any 1 (x1/9/10)</p>
<p>Redplum</p>
<p>BOGO Mar’s Confectionary Chocolate Brands (singles) ~ x12/13<br />
.50/1 ~ Domino’s Sugar products (2lbs or larger) ~ x1/31/10<br />
.30/1 ~ Domino Organic or Demerara Sugar (24 oz) ~ x1/31/10<br />
$1.00/8 ~DelMonte Canned Fruits, Veggies, Tomatoes (11-15.25oz) or Fruit Cup Snacks (plastic 4pk) ~ x1/10/10<br />
.49/1 ~ Dunkin Donuts ~ donut wyb a medium or large Hot or Iced coffee ~ x12/31<br />
$1.50/2 ~ Dunkin Donuts bagged Coffee (11oz or larger) ~ x12/31<br />
$1.00/1 ~ Esskay Ham ~ x12/31<br />
.50/1 ~ Helluva Good Dip or cheese ~ x12/31<br />
$1.00/2 ~ Hillshire Farms Coctail Links ~ x1/02/10<br />
.75/2 ~Hillshire Farms Deli Select or Hearty Slices lunchmeat (8 or 9 oz) ~ x1/9/10<br />
.75/1 ~ Hillshire Farms Deli Select Family Size lunchment (16oz) x1/9/10<br />
$1.00/2 ~ King’s Hawaiian 12 count or (1) 24 ct package of dinner rolls<br />
$1.00/2 ~ Kraft Breakstone Sour Cream (16 oz or larger) ~ x12/31<br />
$1.00/2 ~ Kraft Philadelphia Cream Cheese ~ x12/31<br />
$1.00/2 ~ Kraft Singles (10 oz or larger) 2%, regular, fat-free, singles select<br />
$1.00/1 ~ Kraft Velveeta Cheese (1 lb. or larger) ~ x12/31<br />
$1.00/1 ~ Mash’s Ham ~ x12/31<br />
$1.00/4 ~ Pringles (180g or larger) ~ x12/31<br />
.50/1 ~ Pringles snack stack, stix, minis or bold bites ~ x12/31<br />
$1.00/1 ~ Promised Land Half Gallon or Quart ~ x12/31<br />
.55/1 ~ State Fair product ~ x1/31/10<br />
.55/1 ~ Tennessee Pride Product ~ x12/31<br />
.50/1 ~ Brawny 2-roll or larger ~ x12/31<br />
.75/1 ~ Hefty Plates or bowls ~ x1/31/10<br />
.50/1 ~ Hefty Easy Grip Cups ~ x1/31/10<br />
.50/3 ~ Scotties 3 boxes or 1 multi-pack ~ x2/28/10<br />
$2.00/1 ~ Loreal Bare Natural Face product, or any Loreal Paris makeup ~ x2/7/10<br />
$1.00/1 ~ Loreal Telescope Explosion Mascara or any Loreal ~ x2/7/10<br />
$2.00/1 ~ Advil (40 or larger) ~ x1/31/10<br />
$1.00/1 ~ Advil PM (16 or larger) ~ x1/31/10<br />
$1.00/1 ~ Beano (30 or larger) ~ x2/28/10<br />
$.50/1 ~ Beano To Go ~ 12 ct only ~ x2/28/10<br />
$1.00/1 ~ Centrum or Centrum Silver (except 30) ~ x1/31/10<br />
$2.00/1 ~ Centrum Silver (150 or larger) ~ x1/31/10<br />
$1.00/1 ~ Centrum Performance (except 30) ~ x1/31/10<br />
$6.00/1 ~ Flex-a-min Join Care ~ x12/29<br />
$7.00/1 ~ Knox powders or caplets (11oz or larger) ~ 12/26<br />
$4.00/1 ~ Knox powder or NutraMix for Strong Nails 5.5oz ~ x12/26<br />
$4.00/1 ~ Previcid 24 hr delayed release capsule 15 product ~ x12/12<br />
$2.00/1 ~ Senecot, Senokot-S, Colace or Per-Colace ~ x5/15/10<br />
$1.00/1 ~ Sundown Supplement Products ~ x12/29<br />
$2.00/1 ~ Tums Dual Action (24 ct or larger) ~ x12/31<br />
$1.00/2 ~ Tums (24ct or larger) ~ x12/31<br />
$9.95/1 ~ Olan Mills Portrait Package ~ x1/3/10<br />
$1.00/1 ~ Scotch Brite Cook Top or Stainless Steel Cleaner Starter Kit ~ x1/31/10<br />
$1.00/1 ~ Smooth Away or Smooth Away Vibe ~ x2/28/10<br />
$1.00/1 ~ Strap Perfect Bra Strap Concealer ~ x2/28/10<br />
$1.00/1 ~ ThermaCare 2ct or larger ~ x12/31<br />
$1.50/1 ~ ThermaCare Arthritis 2ct or larger ~ 12/31<br />
$1.00/1 ~ Good Life Treats for Cats ~ x2/7/10<br />
$2.00/1 ~ Good Life Bites Treats for Dogs ~ x2/7/10<br />
$1.00/1 ~ Good Life Treat for Dogs ~ x2/7/10<br />
$1.00/1 ~ Pedigree Jumbone Treat for Dogs ~ x1/10/10<br />
$1.00/1 ~ Pedigree marrobone treat for dogs ~ x1/10/10<br />
PETCO COUPON ~ $1.00/1 ~ Eukanuba Dog Food any size ~ x12/05<br />
$1.00/1 ~ Eukanuba Cat Food any size ~ 12/05<br />
TARGET COUPON ~ $1.00/1 M&#38;M’s (9 to 12.6oz) WYB Market Pantry 10oz marshmallows AND Crispy Rice Cereal ~ x12/12<br />
TARGET COUPON ~ $1.50 off 8 pack or larger Duracell batteries ~ x1/15/10<br />
2.00/1 ~ 24 ct pack of Duracell AA batteries ~ x1/15/10<br />
$10.00 MIR ~ (1) Oral B Professional Care Pulsonic or Sonic Complete rechargeable toothbrush ~x12/31<br />
$5.00/1 ~ any (1) 3 ct or greater Oral-B refill ~ x12/31<br />
Save $5.00/2 MIR ~ Estancia, Robert Mondavi Private Selection, Clos du Bois, and/or Ravenswood ~ x12/31</p>
<p>Reaping In Abundance,<br />
Kay</p>
<p>Thanks <a href="http://proverbswife.blogspot.com/">Proverbs Wife</a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[I think I've finally found what I'm looking for...]]></title>
<link>http://orlylevin.wordpress.com/2009/11/14/i-think-ive-finally-found-what-im-looking-for/</link>
<pubDate>Sat, 14 Nov 2009 23:29:07 +0000</pubDate>
<dc:creator>orlylevin</dc:creator>
<guid>http://orlylevin.wordpress.com/2009/11/14/i-think-ive-finally-found-what-im-looking-for/</guid>
<description><![CDATA[Kinda like the awesome U2 song&#8230; Last week I started the Radio and Journalism course and so far]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Kinda like the awesome U2 song&#8230;</p>
<p>Last week I started the Radio and Journalism course and so far I&#8217;m having a great time! classes are interesting, the teachers are cool and my fellow students? Well, It&#8217;s hard to say, I&#8217;ll get back to you on that once I get to know them better&#8230;</p>
<p>I&#8217;ve discovered this week that this course will make me face all my fears and hopefully destroy them, or at least put me in control of them, because in this line of work, Journalism and Radio, you can&#8217;t go anywhere with fears like stage fright or crowd phobia or a simple insecurity&#8230; if you can&#8217;t control these fears, then they&#8217;ll eat you alive and you won&#8217;t be able to progress anywhere.</p>
<p>I&#8217;m both excited and scared at the same time.</p>
<p>Tomorrow, I&#8217;ll meet a friend for the interview assignment. I think it&#8217;s a great way to start, with a friend and not someone strange or worse &#8211; famous. I have no idea what the interview&#8217;s going to be about nor know what to ask him, but since it&#8217;s my first time and since it&#8217;s going to be a familiar face, I hope I&#8217;ll manage.</p>
<p>On Monday I&#8217;ll go to the um Radio Station Simulator in order to record my first insert. It took me the entire weekend to figure out what to talk about, because we were told no more than 100 words, but it finally came up and my insert&#8217;s going to be a recipe from one of the many cookbooks I got. I&#8217;m pretty sure it&#8217;ll turn out to be a great idea.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Open Mouth, Insert Foot:  Vol. I]]></title>
<link>http://nursekenny.wordpress.com/2009/11/13/open-mouth-insert-foot-vol-i/</link>
<pubDate>Fri, 13 Nov 2009 14:56:27 +0000</pubDate>
<dc:creator>nursekenny</dc:creator>
<guid>http://nursekenny.wordpress.com/2009/11/13/open-mouth-insert-foot-vol-i/</guid>
<description><![CDATA[SCENE:  Patient&#8217;s room.  Patient is blind.  RN and Student Nurse Kenny are examining the patie]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><h4>SCENE:  Patient&#8217;s room.  <strong>Patient is blind</strong>.  RN and Student Nurse Kenny are examining the patient&#8217;s mouth ulceration.</h4>
<p>&#160;</p>
<p style="text-align:center;">RN:  Let&#8217;s just grab a tongue depressor here.  Ok, open up and stick your tongue out, Patient.</p>
<p style="text-align:center;">Kenny:  Oh, let me just turn this exam light on so we can see better.</p>
<p style="text-align:center;">RN:  Good idea.</p>
<p style="text-align:center;">Kenny (to patient):  I&#8217;m sorry, Patient, I know this overhead light is so bright, it&#8217;s like the sun &#8230; it must be blinding!</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Mysql Copy Records With Insert Select Command]]></title>
<link>http://glennpratama.wordpress.com/2009/11/07/mysql-copy-record-with-insert-select-command/</link>
<pubDate>Sat, 07 Nov 2009 02:03:51 +0000</pubDate>
<dc:creator>Glenn</dc:creator>
<guid>http://glennpratama.wordpress.com/2009/11/07/mysql-copy-record-with-insert-select-command/</guid>
<description><![CDATA[There&#8217;s a time you want to copy your MySQL row(s) into another table or on the same table. Her]]></description>
<content:encoded><![CDATA[There&#8217;s a time you want to copy your MySQL row(s) into another table or on the same table. Her]]></content:encoded>
</item>
<item>
<title><![CDATA[No PC, para que diabos servem as teclas...]]></title>
<link>http://palhassada.wordpress.com/2009/11/06/no-pc-para-que-diabos-servem-as-teclas/</link>
<pubDate>Fri, 06 Nov 2009 14:37:30 +0000</pubDate>
<dc:creator>palhassada</dc:creator>
<guid>http://palhassada.wordpress.com/2009/11/06/no-pc-para-que-diabos-servem-as-teclas/</guid>
<description><![CDATA[&#8230; SYSRQ? Alguns botões são como dentes de siso: perderam a utilidade com a evolução, mas conti]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><img class="aligncenter size-full wp-image-275" title="Teclado" src="http://palhassada.wordpress.com/files/2009/11/teclas-computador1.jpg" alt="Teclado" width="450" height="242" /></p>
<p><strong><em><br />
</em></strong></p>
<blockquote><p><strong><em>&#8230; SYSRQ?<br />
Alguns botões são como dentes de siso: perderam a utilidade com a evolução, mas continuam lá. O System Request (“pedido ao sistema”), por exemplo: antigamente, não havia janelas – programas ocupavam a tela toda, e muitas vezes o único jeito de sair deles era apertar o SysRq. Hoje a tecla se juntou ao útil Print Screen e, se funcionar, é junto com Alt.</em></strong></p>
<p><strong><em>&#8230; INSERT?<br />
Ele não deveria se chamar Insert, mas Overscript: como o pc deixa ele ligado, ao apertá-lo você está é desligando a função “inserir” e ligando o “sobrescrever”. Resta a dúvida: quando você dispensaria o Insert? Há um caso: quando o campo de preenchimento é muito curto, convém escrever por cima para não perder de vista o que escreveu antes.</em></strong></p>
<p><strong><em>&#8230; SCROLL LOCK?<br />
No tempo em que não havia barra de rolagem, o Scroll Lock era um grande amigo: era só apertá-lo que as setas deixavam de mover o cursor e moviam a tela. Hoje, como até os mouses têm botão de<br />
rolagem, o Scroll Lock jaz esquecido. Só o Excel ainda liga pra ele: com a tecla acionada, você pode circular pela planilha sem perder uma seleção prévia de células.</em></strong></p>
<p><strong><em>&#8230; PAUSE/BREAK?<br />
Jovens têm até dificuldade de imaginar, mas antes das janelas do Windows havia uma tela preta com letras brancas chamada DOS. Nela, o simples ato de checar o conteúdo de uma pasta gerava uma lista de arquivos que passava correndo, como créditos de filme. O Pause pausava esse processo,<br />
e o Break o parava de vez. Bendita seja, interface gráfica.</em></strong><em> </em></p></blockquote>
<p><a href="http://super.abril.com.br/tecnologia/duvida-cruel-507930.shtml" target="_blank"><strong>Fonte: Superinteressante</strong></a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[SQLite bulk data update or insert]]></title>
<link>http://tetontech.wordpress.com/2009/10/31/sqlite-bulk-data-update-or-insert/</link>
<pubDate>Sat, 31 Oct 2009 21:02:14 +0000</pubDate>
<dc:creator>tetontech</dc:creator>
<guid>http://tetontech.wordpress.com/2009/10/31/sqlite-bulk-data-update-or-insert/</guid>
<description><![CDATA[I just added SQLite bulk updates for in-browser databases (native databases coming soon) to the Quic]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>I just added SQLite bulk updates for in-browser databases (native databases coming soon) to the QuickConnect iPhone framework (1.6 beta 3).  I did this by creating and adding to the framework an object called DBScript.  It is transactionally safe.  If one of your updates in the script fails all changes are rolled back.</p>
<p>It is also easy to use.  The code below comes from the databaseDefinition.js file of the new BrowserDBScript dashcode example.  In it a link to the database is established using the DataAccessObject.  Then the DBScript object is created and a series of SQL statements are added to the script.  Lastly, the script is executed.  Notice that the script object works for both standard and prepared statements.</p>
<p>If you are using this after a data pull from a network resource or after querying the user for information to insert, make sure you use a prepared statement type call to avoid SQL insertion attacks.</p>
<p><span style="font-family:Menlo, 'Times New Roman', 'Bitstream Charter', Times, serif;color:#008526;font-size:small;"><span style="line-height:normal;"> </span></span></p>
<p><span style="font-family:Menlo, 'Times New Roman', 'Bitstream Charter', Times, serif;color:#008526;font-size:small;"> </span></p>
<p style="font:11px Menlo;color:#008526;margin:0;">/*</p>
<p style="font:11px Menlo;color:#008526;margin:0;">* An example of how to use the DBScript object to populate a database.</p>
<p style="font:11px Menlo;color:#008526;margin:0;">* This will be done as a single transaction and is transactionally safe.</p>
<p style="font:11px Menlo;color:#008526;margin:0;">* This means that all changes will be rolled back if any</p>
<p style="font:11px Menlo;color:#008526;margin:0;">* database error happens.</p>
<p style="font:11px Menlo;color:#008526;margin:0;">*/</p>
<p style="font:11px Menlo;min-height:13px;margin:0;">
<p style="font:11px Menlo;min-height:13px;margin:0;">
<p style="font:11px Menlo;min-height:13px;margin:0;">
<p style="font:11px Menlo;color:#008526;margin:0;"><span style="color:#000000;"> </span>//create or connect to the in-UIWebView database</p>
<p style="font:11px Menlo;margin:0;"><span style="color:#c70000;">var</span> database = <span style="color:#c70000;">new</span> DataAccessObject(<span style="color:#a400c5;">&#8220;WelcomeExample&#8221;</span>, <span style="color:#a400c5;">&#8220;1.0&#8243;</span>, <span style="color:#a400c5;">&#8220;Welcome example&#8221;</span>, <span style="color:#3200ff;">20</span>);</p>
<p style="font:11px Menlo;min-height:13px;margin:0;">
<p style="font:11px Menlo;color:#008526;margin:0;"><span style="color:#000000;"> </span>//create the script object</p>
<p style="font:11px Menlo;margin:0;"><span style="color:#c70000;">var</span> bulkInsertScript = <span style="color:#c70000;">new</span> DBScript(database);</p>
<p style="font:11px Menlo;min-height:13px;margin:0;">
<p style="font:11px Menlo;color:#008526;margin:0;"><span style="color:#000000;"> </span>//add all statements to the script object</p>
<p style="font:11px Menlo;color:#a400c5;margin:0;"><span style="color:#000000;"> bulkInsertScript.addStatement(</span>&#8220;CREATE TABLE IF NOT EXISTS names (id INTEGER UNIQUE, name TEXT)&#8221;<span style="color:#000000;">);</span></p>
<p style="font:11px Menlo;min-height:13px;margin:0;">
<p style="font:11px Menlo;color:#a400c5;margin:0;"><span style="color:#000000;"> bulkInsertScript.addStatement(</span>&#8220;INSERT INTO names VALUES(1,&#8217;Bob&#8217;)&#8221;<span style="color:#000000;">);</span></p>
<p style="font:11px Menlo;color:#a400c5;margin:0;"><span style="color:#000000;"> bulkInsertScript.addStatement(</span>&#8220;INSERT INTO names VALUES(2,&#8217;Sue&#8217;)&#8221;<span style="color:#000000;">);</span></p>
<p style="font:11px Menlo;color:#008526;margin:0;"><span style="color:#000000;"> </span>//and example of using a prepared statement</p>
<p style="font:11px Menlo;margin:0;">bulkInsertScript.addStatement(<span style="color:#a400c5;">&#8220;INSERT INTO names VALUES(?,?)&#8221;</span>,[<span style="color:#3200ff;">3</span>,<span style="color:#a400c5;">"Jose"</span>]);</p>
<p style="font:11px Menlo;color:#a400c5;margin:0;"><span style="color:#000000;"> bulkInsertScript.addStatement(</span>&#8220;INSERT INTO names VALUES(4,&#8217;Bjorn&#8217;)&#8221;<span style="color:#000000;">);</span></p>
<p style="font:11px Menlo;color:#a400c5;margin:0;"><span style="color:#000000;"> bulkInsertScript.addStatement(</span>&#8220;INSERT INTO names VALUES(5,&#8217;Jean&#8217;)&#8221;<span style="color:#000000;">);</span></p>
<p style="font:11px Menlo;color:#a400c5;margin:0;"><span style="color:#000000;"> bulkInsertScript.addStatement(</span>&#8220;INSERT INTO names VALUES(6,&#8217;Gustav&#8217;)&#8221;<span style="color:#000000;">);</span></p>
<p style="font:11px Menlo;min-height:13px;margin:0;">
<p style="font:11px Menlo;color:#008526;margin:0;"><span style="color:#000000;"> </span>//execute all statements within a transaction</p>
<p style="font:11px Menlo;margin:0;">bulkInsertScript.executeSetDataScript();</p>
<p>&#160;</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[PHP ile MYSQL'e veri kaydetmek]]></title>
<link>http://phpci.wordpress.com/2009/10/26/php-ile-mysqle-veri-kaydetmek/</link>
<pubDate>Mon, 26 Oct 2009 23:10:55 +0000</pubDate>
<dc:creator>PHP'ci</dc:creator>
<guid>http://phpci.wordpress.com/2009/10/26/php-ile-mysqle-veri-kaydetmek/</guid>
<description><![CDATA[Mysql ile bağlantımızı kurmuştuk. Şimdi bu bağlantıyı kullanarak bir aşama ileri gidiyoruz ve Mysql ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><a href="http://phpci.wordpress.com/2009/09/29/php-sayfasinda-mysql-baglantisi-nasil-acilir/" target="_blank"><img class="alignleft size-thumbnail wp-image-104" title="Database Insert" src="http://phpci.wordpress.com/files/2009/10/database-insert.jpg?w=150" alt="Database Insert" width="150" height="150" />Mysql ile bağlantımızı kurmuştuk</a>. Şimdi bu bağlantıyı kullanarak bir aşama ileri gidiyoruz ve Mysql tablomuza veri kaydedeceğiz.</p>
<p style="padding-left:30px;"><!--more--></p>
<p style="padding-left:30px;">
<p style="padding-left:30px;">
<p style="padding-left:30px;">
<ul>
<li>Öncelikle bağlantıyı oluşturuyoruz.</li>
<li>Veritabanımızı seçiyoruz</li>
<li>mysql_query (); fonksiyonu ile içresinde yazılı olan isteği MYSQL&#8217;e iletiyoruz.</li>
<li>INSERT INTO tablo2 yapısı ile veriyi hangi &#8220;tablo2&#8243; adlı tabloya ve tablodaki hangi alanlara(Ad, Soyad vb) veri gireceğimizi bildiriyoruz.</li>
<li>VALUES sözcüğü ile de hangi verilerin yazılacağını iletiyoruz.</li>
<li>Tabloda veri girilmek üzere belirttiğimiz alanlar ile VALUES ile belirttiğimiz değerler aynı sırada olmalıdır. Yani Ad ilk sırada ise Ad alanına yazılacak olan &#8220;Abuzer&#8221; sözcüğü de ilk sırada yer almalıdır.</li>
<li>mysql_close(); fonksiyonu ile de bağlantıyı sonlandırıyoruz.</li>
<li>mysql_error(); fonsiyonu hata alındı zaman o hatayı ekrana yazdırmak için kullanılır.</li>
</ul>
<p><strong>Örnek Kod:</strong></p>
<blockquote>
<p style="padding-left:30px;">&#60;?php<br />
$baglan = mysql_connect(&#8220;localhost&#8221;,&#8221;mysql_kullanıcı_adı&#8221;,&#8221;mysql_şifre&#8221;);<br />
if (!$baglan)<br />
{<br />
die(&#8216;Baglanti hatasi: &#8216; . mysql_error());<br />
}<br />
mysql_select_db(&#8220;veritabanı_adı&#8221;, $baglan);</p>
<p style="padding-left:30px;">mysql_query(&#8220;INSERT INTO Kullanicilar (Ad, Soyad, Yas)<br />
VALUES (&#8216;Abuzer&#8217;, &#8216;Kadayif&#8217;, &#8216;45&#8242;)&#8221;);</p>
<p style="padding-left:30px;">mysql_close($baglan);<br />
?&#62;</p>
</blockquote>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Keeping Equipment Clean: One Key to Success.  By James Goulding III]]></title>
<link>http://bowler2bowler.wordpress.com/2009/10/26/keeping-equipment-clean-one-key-to-success-by-james-goulding-iii/</link>
<pubDate>Mon, 26 Oct 2009 16:05:21 +0000</pubDate>
<dc:creator>jgoulding</dc:creator>
<guid>http://bowler2bowler.wordpress.com/2009/10/26/keeping-equipment-clean-one-key-to-success-by-james-goulding-iii/</guid>
<description><![CDATA[Keeping Equipment Clean:  One Key to Success by James Goulding III   Getting good coaching, watching]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Keeping Equipment Clean:  One Key to Success</p>
<p>by James Goulding III</p>
<p> </p>
<p>Getting good coaching, watching video, and working in a pro shop have all been valuable tools that have helped me become a successful bowler.  But, there is also another part of my game that is important on a weekly basis, and that is taking care of my bowling equipment so that it takes care of me on the lanes when I need it.  What I mean is, I can&#8217;t expect to bowling balls to perform at their peak all the time if I am not willing to put in some time of my own to make sure factors such as lane oil, rubber marks, track grooves, and such don&#8217;t take away from the balls performance.  A little bit of extra time spent on cleaning and maintaining your bowling equipment goes a long way to not only keeping your bowling balls working at their optimum level, but also extends their life so that it saves you money on buying new equipment in the long run.  I am going to discuss a few areas where bowlers need to pay attention to, which is daily maintenance, bi-monthly maintenance, and annual maintenance.</p>
<p>DAILY MAINTENANCE</p>
<p>When I write this, I don&#8217;t mean go in your bowling bag every day and do the following steps, but rather after each time you bowl a league set, tournament, etc. before the next time you bowl.  First off, I recommend all bowlers use a microfiber towel to wipe the bowling ball off.  This type of towel gets the oil off of the surface of the ball, without scratching the coverstock or leaving marks. </p>
<p>Secondly, you should take a USBC approved bowling ball cleaner with you in your bowling bag, and use it to thoroughly clean your bowling equipment IMMEDIATELY after you are done bowling, before you get home.  I can not stress enough the importance of getting the lane oil and dirt out of the coverstock as soon as possible, as with the porous coverstocks on resin bowling equipment, it takes no time at all for the oil to &#8220;soak&#8221; into the cover and stay in the ball.  This causes loss of hooking action, and possibly premature ball death due to it being contaminated with lane oil deep in the coverstock.  By simply cleaning the ball as soon as you are done, you have a very good chance of removing most of the oil from the outer surface of the ball, before it has a chance to soak in and cause long-term damage to your bowling equipment.</p>
<p>Lastly, invest in a ball carrier to put each of your bowling balls in before you put them in your bowling bag.  These carriers are fairly cheap (in the $10 range) but by putting your ball in them, you are protecting it against anything sticking out of your bowling bag that could damage it, as well as protecting it from getting cracked in case you accidently drop it.  Also, if you have a locker, it prevents the ball from rolling around and getting scratched up from any rocks or debris in the locker. </p>
<p>BI-MONTHLY MAINTENANCE</p>
<p>Calling it bi-monthly maintenance is a &#8220;loose&#8221; term, what I mean is the following steps should be taken every 50  games or so (which would be bi-monthly if you bowl twice a week).  What I am referring to is giving your ball a hot water bath so that you remove any lane oil that has been soaked into the deeper parts of the coverstock.  Using the towel and cleaners works good to get MOST of the oil out of your ball night in and night out, but to get the oil that is missed, you need to do something that can extract the oil out where the cleaner and towel can&#8217;t reach.  This is where the hot water bath comes in.</p>
<p>First, I recommend you sand your ball down to about a 400 grit surface before putting the ball in any water bath.  This can be done with regular 400 grit sandpaper, or a maroon scotch brite pad, or even a 500 abralon pad will suffice.  What this does is it opens up the pores of the ball, allowing the oil to escape out when the ball is submerged in the water bath.  If you do not have any sandpaper, doing the bath is technically &#8220;better than nothing&#8221;, but you can always go to your local pro shop and ask them to sand it for you before you do the bath, so doing that would be an option as well. </p>
<p>As far as the actual bath goes, the biggest thing to remember is to make sure the water temp. does not exceed 140 degrees.  If your water is hotter than 140 degrees, you run the risk or removing plasticisers in the ball, which will harden the resin and ruin the bowling ball.  If you are not sure how hot your water temp. runs, as long as the water is not too hot to put your hand in for an extended period of time, that should suffice for the water bath.  Using an actual thermometer is best, but use you head, don&#8217;t just &#8220;drop&#8221; the ball in the water if it is too hot to handle.</p>
<p>When you start running the water, put in a few drops of liquid dish soap (DAWN or equivalent) that will be used ot help break up the lane oil and grease in the coverstock.  Fill a bucket up enough so that the ball will be completely submerged below the surface and then place the ball gently in the bucket.  Some people like to tape over the finger and thumb holes, but I do not recommend doing this.  You are blocking a route of escape for oil and dirt, and the bath does not hurt finger or thumb inserts since it is just water and dish soap.  At this point, you let the ball soak for approximately 15 minutes and place on the counter on a towel ot let the remainder of the water drip off of the ball.  You will notice an oily/water type mixture on the surface of the ball, especially if it has been a very long time since this process has been done (if ever).  Wipe the surface clean using a microfiber towel (or equivalent) until it is dry.  If you are seeing this oily mixture on the surface, you need to perform the water bath again, until you no longer see any oil come to the surface of the bowling ball.  I would recommend changing the water each time to start fresh, and not have any oil floating around in the water when you re-submerge the ball.  Once the ball has only water on the surface (and on oil or dirt), you are done.  It may take 2-3 15 minute sessions to get all the oil out, but it is well worth it.  Give the ball ample time to dry before use again, I would recommend 24 hours to  make sure all the water has gotten out of the coverstock.</p>
<p>Now, once the water bath is complete, you need to take the coverstock of the ball back to whatever the factory finish was on the ball.  This will ensure you get the same type of reaction you are used to out of your bowling ball.  If you do not have the tools at home to do this, take it to your local pro shop and have them complete the process.</p>
<p>ANNUAL MAINTENANCE</p>
<p>This section is going to deal with a few of the things bowlers should do once a season to their bowling balls to make sure they last long, and perform well.  I have covered ways to keep oil out of the ball, but now I will get into what to do when the ball becomes &#8220;tracked up&#8221; with all the marks from the lanes.  When a bowling ball has more than 80-100 games on it, it loses its polish (if it is a polished ball), and also gets a series of grooves in the coverstock form the places that the ball touches the lane consistently.  This has an adverse effect on your ball motion, and causes it to not perform at a peak level.  The only way to get these grooves out (an re-polish the ball) is with a resurfacing.  This will remove the scratches and gouges and get the ball back to like-new performance.</p>
<p>When I resurface bowling balls, I like to take them down to a 220 grit surface, sanding the ball in (4) different directions in a ball spinner.  The first two directions are having the finger holes and thumb holes both sit horizontally, parallel with the top of the ball spinner.  Once you sand that side of the ball, flip it over 180 degrees to do the other side.  Then when you&#8217;re done on both of those sides of the bowling ball, position the ball so that the fingers and thumb are on top, pretty much horizontal (perpindicular) to the ball spinner.  Sand the ball with the fingers and thumb up, and then turn the ball 180 degrees to sand the other side of the ball.  At this point, you are done with the 220 grit (or whatever other grit you might be using).  Sand the ball this way for each grit, until you reach the final grit that the ball came in at from the factory.  Refer to the bowling ball companies website or sheet that came with the ball to make sure you get the correct final surface for your bowling ball. </p>
<p>Also, if the ball requires a polishing process, polish it in the same (4) directions you sanded the ball in to ensure you are doing things the same way all the time.  Refer to the company recommendations for what type of polish to use on your bowling ball to achieve the correct reaction on your bowling ball.  If you do not feel comfortable doing this process, which can be very time-consuming, take the ball to your local pro shop and have them complete the process for you.  Usually this costs in the $25-40 range, varying from shop to shop and how bad the ball was to begin with for the cost of resurfacing.  That is still much cheaper than having to buy a new ball because your old one &#8220;died&#8221; from lack of proper maintenance.</p>
<p>The last thing I will recommend for yearly maintenance is to change your finger inserts (if you use them) in your ball.  Over the course of a season, the inserts become worn out, causing them to feel big or slippery since there is a good chance there is some lane oil and dirt mixed into the rubber inserts.  It costs between $5-10 for a new pair from your local pro shop, and should be done at least once a season (probably more if you bowl more than twice per week).  When it comes to your thumb, also make sure you change out your thumb tape regularly, because the sweat from your thumb, as well as the oil and dirt from the lane, causes the tape to lose its grip.  Those two simple steps can go a long way to making you feel comfortable all the time in your bowling ball.</p>
<p>Well, that is all I have for tips to keep your bowling equipment in tip-top shape.  Today&#8217;s bowling balls are more aggressive and condition specific than ever, and hopefully with the methods I discussed earlier, you can keep those bowling balls running at peak performance, and able to be used for the right conditions they were intended for.  The opinions expressed in this blog post are my own, and do not reflect the opinion of the MSUSBC.  Thank you for reading, and feel free to comment on anything you see here, I will try and respond as quickly as possible.  Good luck, and good bowling!</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Tugas Praktikum Sibadat]]></title>
<link>http://e12a.wordpress.com/2009/10/25/tugas-praktikum-sibadat/</link>
<pubDate>Mon, 26 Oct 2009 01:08:22 +0000</pubDate>
<dc:creator>e12x</dc:creator>
<guid>http://e12a.wordpress.com/2009/10/25/tugas-praktikum-sibadat/</guid>
<description><![CDATA[Bagi teman-teman yang mengambil praktikum sibadat, Tugas bisa di download DI SINI. Best before 2 Nov]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Bagi teman-teman yang mengambil praktikum sibadat, Tugas bisa di download <a href="http://www.ziddu.com/download/7073289/tugassibadat.rar.html">DI SINI</a>. Best before 2 Novemver 2009</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[10/25 Coupon Preview]]></title>
<link>http://savingobsession.wordpress.com/2009/10/24/1025-coupon-preview/</link>
<pubDate>Sat, 24 Oct 2009 14:15:46 +0000</pubDate>
<dc:creator>Saving Obsession</dc:creator>
<guid>http://savingobsession.wordpress.com/2009/10/24/1025-coupon-preview/</guid>
<description><![CDATA[Here is the preview for Smart Source and Red Plum for the Sunday Oct. 25 paper. Looks like a slim we]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Here is the preview for <a href="http://www.thecouponclippers.com/coupons/calendar.php">Smart Source</a> and <a href="http://www.thecouponclippers.com/coupons/search.php?mode=search">Red Plum</a> for the Sunday Oct. 25 paper.</p>
<p>Looks like a slim week for me (but hey, it could still be good for you!), other than ordering some diaper coupons. Ah well, I still have sooooo many coupons to cut that I&#8217;m behind on so a slow week is good for me!</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[How do I load text or csv file data into SQL Server?]]></title>
<link>http://budigunawan.wordpress.com/2009/10/22/how-do-i-load-text-or-csv-file-data-into-sql-server/</link>
<pubDate>Thu, 22 Oct 2009 00:00:53 +0000</pubDate>
<dc:creator>Budi Gunawan Kusuma</dc:creator>
<guid>http://budigunawan.wordpress.com/2009/10/22/how-do-i-load-text-or-csv-file-data-into-sql-server/</guid>
<description><![CDATA[Source : http://sqlserver2000.databases.aspfaq.com/how-do-i-load-text-or-csv-file-data-into-sql-serv]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Source : <a href="http://sqlserver2000.databases.aspfaq.com/how-do-i-load-text-or-csv-file-data-into-sql-server.html">http://sqlserver2000.databases.aspfaq.com/how-do-i-load-text-or-csv-file-data-into-sql-server.html</a></p>
<p>If you need to load data into SQL Server (e.g. from log files, csv files, chat transcripts etc), then chances are, you&#8217;re going to be making good friends with the BULK INSERT command. <br />
 <br />
You can specify row and column delimiters, making it easy to import files in comma-separated values (CSV), Tab-separated values (TSV), or any other delimiter (e.g. the pipe character is commonly used, since it rarely exists in valid data). You can also tell it to skip any number of header rows (these are fairly common in many log file formats). <br />
 <!--more--><br />
So, let&#8217;s run through a few examples. We have this table: <br />
 </p>
<table border="0" cellspacing="0" cellpadding="10">
<tbody>
<tr>
<td>CREATE TABLE OrdersBulk <br />
( <br />
    CustomerID INT, <br />
    CustomerName VARCHAR(32), <br />
    OrderID INT, <br />
    OrderDate SMALLDATETIME <br />
)</td>
</tr>
</tbody>
</table>
<p> <br />
And let&#8217;s say we have this CSV file, saced as c:\file1.csv: <br />
 </p>
<table border="0" cellspacing="0" cellpadding="10">
<tbody>
<tr>
<td>1,foo,5,20031101 <br />
3,blat,7,20031101 <br />
5,foobar,23,20031104</td>
</tr>
</tbody>
</table>
<p> <br />
The command to bulk insert this data would be: <br />
 </p>
<table border="0" cellspacing="0" cellpadding="10">
<tbody>
<tr>
<td>BULK INSERT OrdersBulk <br />
    FROM &#8216;c:\file.csv&#8217; <br />
    WITH <br />
    ( <br />
        FIELDTERMINATOR = &#8216;,&#8217;, <br />
        ROWTERMINATOR = &#8216;\n&#8217; <br />
    )</td>
</tr>
</tbody>
</table>
<p> <br />
Now, if we had tab-separated values, it would look like this: <br />
 </p>
<table border="0" cellspacing="0" cellpadding="10">
<tbody>
<tr>
<td>BULK INSERT OrdersBulk <br />
    FROM &#8216;c:\file.csv&#8217; <br />
    WITH <br />
    ( <br />
        FIELDTERMINATOR = &#8216;\t&#8217;, <br />
        ROWTERMINATOR = &#8216;\n&#8217; <br />
    )</td>
</tr>
</tbody>
</table>
<p> <br />
Note that a row delimiter often has to be experimented with, because often log files produce &#8220;columns&#8221; in the table by putting the value and then the delimiter. So, in many cases, you might actually be looking to separate rows by column delimiter + row delimiter. So, the last column has a dangling column delimiter that isn&#8217;t really necessary (but we have to deal with it). I currently have processes that look like this, to deal with files that have trailing tab characters after every column: <br />
 </p>
<table border="0" cellspacing="0" cellpadding="10">
<tbody>
<tr>
<td>BULK INSERT OrdersBulk <br />
    FROM &#8216;c:\file.csv&#8217; <br />
    WITH <br />
    ( <br />
        FIELDTERMINATOR = &#8216;\t&#8217;, <br />
        ROWTERMINATOR = &#8216;\t\n&#8217; <br />
    )</td>
</tr>
</tbody>
</table>
<p> <br />
And earlier I mentioned the case where you have header rows that are almost never going to match the data types of the target table (and you wouldn&#8217;t want the headers mixed in with the data, even if all the data types were character). So, let&#8217;s say the CSV file actually looked like this: <br />
 </p>
<table border="0" cellspacing="0" cellpadding="10">
<tbody>
<tr>
<td>CustomerID,CustomerName,OrderID,OrderDate <br />
1,foo,5,20031101 <br />
3,blat,7,20031101 <br />
5,foobar,23,20031104</td>
</tr>
</tbody>
</table>
<p> <br />
If you try the BULK INSERT command from above, you will get this error: <br />
 </p>
<table border="0" cellspacing="0" cellpadding="10">
<tbody>
<tr>
<td>Server: Msg 4864, Level 16, State 1, Line 1 <br />
Bulk insert data conversion error (type mismatch) for row 1, column 1 (CustomerID).</td>
</tr>
</tbody>
</table>
<p> <br />
This is because the first row doesn&#8217;t contain valid data, and the insert fails. We could tell BULK INSERT to ignore the first row in the data file, by specifying the starting row with the FIRSTROW parameter: <br />
 </p>
<table border="0" cellspacing="0" cellpadding="10">
<tbody>
<tr>
<td>BULK INSERT OrdersBulk <br />
    FROM &#8216;c:\file.csv&#8217; <br />
    WITH <br />
    ( <br />
        <strong>FIRSTROW = 2</strong>, <br />
        FIELDTERMINATOR = &#8216;,&#8217;, <br />
        ROWTERMINATOR = &#8216;\n&#8217; <br />
    )</td>
</tr>
</tbody>
</table>
<p> <br />
Finally, you can also specify how many errors you want to allow before considering that the BULK INSERT failed. We can never really be confident that a log file from some external source will always have &#8220;perfect&#8221; data in it. Failures can occur when you have character data that is too big for the column in the table, or if you have a string in an integer column, or if your date is malformed, or several other potential scenarios. So, you probably want some threshold where more than n rows will cause the BULK INSERT to fail. You can specify this limit using the MAXERRORS parameter. (I&#8217;ve already requested for Yukon that they add a MAXERRORPERCENT so that there will be an appropriate failure ratio for both large and small files.) <br />
 </p>
<table border="0" cellspacing="0" cellpadding="10">
<tbody>
<tr>
<td>BULK INSERT OrdersBulk <br />
    FROM &#8216;c:\file.csv&#8217; <br />
    WITH <br />
    ( <br />
        FIRSTROW = 2, <br />
        <strong>MAXERRORS = 0</strong>, <br />
        FIELDTERMINATOR = &#8216;,&#8217;, <br />
        ROWTERMINATOR = &#8216;\n&#8217; <br />
    )</td>
</tr>
</tbody>
</table>
<p><!-- One of the projects I worked on in the past involved loading IIS log files into a SQL Server table.  However, to optimize space, we had an ET (extract and transform) process that parsed the logs and, based on only the rows from the log files we wanted to keep, generated CSV files for the pipeline.  (For example, we didn't need to analyze traffic from our own block of IP addresses, or from known spider/webcrawler user agents.)--> <br />
You can also use bcp to move data from a flat file into an existing table. BULK INSERT and the bcp utility are documented in Books Online.</p>
</div>]]></content:encoded>
</item>

</channel>
</rss>
