<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>10ninox blog</title>
	
	<link>http://blog.10ninox.com</link>
	<description>where night is much more fun than a day</description>
	<lastBuildDate>Tue, 28 Feb 2012 13:21:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/10ninoxBlog" /><feedburner:info uri="10ninoxblog" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Disable OSX Lion from re-opening saved app state</title>
		<link>http://feedproxy.google.com/~r/10ninoxBlog/~3/nHBtkYHnpuI/</link>
		<comments>http://blog.10ninox.com/2012/02/disable-osx-lion-from-re-opening-saved-app-state/#comments</comments>
		<pubDate>Tue, 28 Feb 2012 13:21:27 +0000</pubDate>
		<dc:creator>sipp11</dc:creator>
				<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://blog.10ninox.com/?p=984</guid>
		<description><![CDATA[If you are like me, hate to see all closed files or tabs coming back after re-opening applications in Lion, you won&#8217;t be pissed any more. Basically, Lion saves every single thing you do in every single applications in ~/Library/Saved &#8230; <a href="http://blog.10ninox.com/2012/02/disable-osx-lion-from-re-opening-saved-app-state/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you are like me, hate to see all closed files or tabs coming back after re-opening applications in Lion, you won&#8217;t be pissed any more.</p>
<p>Basically, Lion saves every single thing you do in every single applications in <code>~/Library/Saved Application State</code>. This is where the problem rises. Every applications will look at this saved state while opening up and will try to restore back to the same right before you closed, which I find this behavior annoying.</p>
<p>To fix it: You have 2 choices,<br />
1. disable write-access to this directory, by using <code>chmod</code> command. This will disable in every apps or by each app depending on which directory you are changing.<br />
2. disable savedState per application by using command</p>
<p><code>defaults write [application_name] NSQuitAlwaysKeepsWindows -bool false</code></p>
<p>where application_name will look like following:-<br />
>> <code>com.microsoft.Word</code> for Microsoft Word<br />
>> <code>com.apple.Safari</code> for Safari<br />
>> <code>com.google.Chrome</code> for Chrome</p>
<p>Example, to disable saved state for Microsoft Word, do as following:-<br />
<code>defaults write com.microsoft.Word NSQuitAlwaysKeepsWindows -bool false</code></p>
<p>You can find by open <code>~/Library/Saved Application State</code> and look at the name. Unfortunately, Lion also keeps <code>~/Library</code> hidden too. You can fire up terminal and type <code>open Library</code> to open <code>~/Library</code> in Finder and go through quickly.</p>
<p><em>To revert action</em>: just use the same command with <code>-bool true</code></p>
<img src="http://blog.10ninox.com/?ak_action=api_record_view&id=984&type=feed" alt="" /><img src="http://feeds.feedburner.com/~r/10ninoxBlog/~4/nHBtkYHnpuI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.10ninox.com/2012/02/disable-osx-lion-from-re-opening-saved-app-state/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.10ninox.com/2012/02/disable-osx-lion-from-re-opening-saved-app-state/</feedburner:origLink></item>
		<item>
		<title>afpd on Debian</title>
		<link>http://feedproxy.google.com/~r/10ninoxBlog/~3/InxCbQgTEks/</link>
		<comments>http://blog.10ninox.com/2012/01/afpd-on-debian/#comments</comments>
		<pubDate>Wed, 25 Jan 2012 21:20:15 +0000</pubDate>
		<dc:creator>sipp11</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://blog.10ninox.com/?p=967</guid>
		<description><![CDATA[When you are on #OSX regularly, CIFS/SMB is not that good option. What you would need to do so is installing afpd and bonjour. Obviously, they won&#8217;t name as they are in Apple product. Their package names are netatalk and avahi &#8230; <a href="http://blog.10ninox.com/2012/01/afpd-on-debian/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-968" title="afp share" src="http://blog.10ninox.com/wp-content/uploads/2012/01/Screen-Shot-2012-01-26-at-4.01.47-AM.png" alt="afp share" width="244" height="279" /></p>
<p>When you are on #OSX regularly, CIFS/SMB is not that good option. What you would need to do so is installing afpd and bonjour. Obviously, they won&#8217;t name as they are in Apple product. Their package names are <span style="color: #993300;"><em>netatalk</em></span> and <span style="color: #993300;"><em>avahi</em></span> consecutively. Installation is as easy as one regular apt-get.</p>
<p>Setting up both at the same time, then we would configure later.</p>
<p><code># apt-get install netatalk avahi-daemon libnss-mdns</code></p>
<p>After installation, we need to configure a bit for both service.</p>
<p><strong>afpd</strong> &#8212; what we are going to do now is to disable legacy Apple File protocol back in pre #OSX time which we don&#8217;t need.<br />
<span style="color: #ff99cc;"><code># vim /etc/default/netatalk</code></span></p>
<pre><code></code> <code><span style="color: #999999;"><em># enable new service</em></span></code>
<code>CNID_METAD_RUN=yes </code>
<code>AFPD_RUN=yes </code>
<code><span style="color: #999999;"><em># disable legacy service</em></span> </code>
<code>TIMELORD_RUN=no</code>
<code>A2BOOT_RUN=no</code>
<code>ATALKD_RUN=no</code>
<code>PAPD_RUN=no</code></pre>
<p>All you need to do is making sure if these values are assigned correctly. Next, we have to declare sharepoint. You can append to these new settings to the end of this file.<br />
<span style="color: #ff99cc;"><code># vim /etc/netatalk/AppleVolumes.default</code></span></p>
<pre><code>/your/path VolumeName allow:@groupname options:usedots,upriv</code></pre>
<p><span style="color: #00ccff;"><em>Example:</em></span><br />
You can do a share by username.</p>
<pre><code>~/ "$u" allow:myusername options:usedots,upriv</code></pre>
<p>For Time Machine, you can do this; it might be a good idea to limit volume size before Time Machine takes over the whole drive by using volsizelimit:100000 in MB; 100000 = 100GB</p>
<pre><code>/home/username/TimeMachine "TimeMachine" allow:myusername options:usedots volsizelimit:100000</code></pre>
<p>Restart netatalk to see the change<br />
<code># /etc/init.d/netatalk restart</code></p>
<p>For more info: <a href="http://linux.die.net/man/5/applevolumes.default" title="applevolumes.default(5) - Linux man page" target="_blank">http://linux.die.net/man/5/applevolumes.default</a></p>
<p><strong>Avahi (Bonjour)</strong><br />
Next, we need to do help setting up bonjour or avahi. A setting file is <span style="color: #ff99cc;"><code>/etc/nsswitch.conf</code></span> which is belong to mDNS (mDNS comes helping hostname resolution.) we need to enable mdns module by add &#8220;mdns&#8221; to hosts: line as following:</p>
<pre><code>hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4 mdns</code></pre>
<p>Last but not least, we customize how any device see afpd. Create a new file named <span style="color: #ff99cc;"><code>/etc/avahi/services/afpd.service</code></span> and paste this in.</p>
<pre>&lt;?xml version="1.0" standalone='no'?&gt;&lt;!--*-nxml-*--&gt;
&lt;!DOCTYPE service-group SYSTEM "avahi-service.dtd"&gt;
&lt;service-group&gt;
 &lt;name replace-wildcards="yes"&gt;%h&lt;/name&gt;
 &lt;service&gt;
 &lt;type&gt;_afpovertcp._tcp&lt;/type&gt;
 &lt;port&gt;548&lt;/port&gt;
 &lt;/service&gt;
 &lt;service&gt;
 &lt;type&gt;_device-info._tcp&lt;/type&gt;
 &lt;port&gt;0&lt;/port&gt;
 &lt;txt-record&gt;model=MacPro&lt;/txt-record&gt;
 &lt;/service&gt;
&lt;/service-group&gt;</pre>
<p>You can change model to something else which change icon you will see on #OSX client side. <code>AppleTV, iMac, MacPro, Xserve, MacBook, MacBookPro, MacBookAir, Macmini</code>, etc.</p>
<p>Restart avahi-daemon to see the change</p>
<p><code># /etc/init.d/avahi-daemon restart</code></p>
<img src="http://blog.10ninox.com/?ak_action=api_record_view&id=967&type=feed" alt="" /><img src="http://feeds.feedburner.com/~r/10ninoxBlog/~4/InxCbQgTEks" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.10ninox.com/2012/01/afpd-on-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.10ninox.com/2012/01/afpd-on-debian/</feedburner:origLink></item>
		<item>
		<title>MacJournal to Evernote</title>
		<link>http://feedproxy.google.com/~r/10ninoxBlog/~3/8vcImWIL2yA/</link>
		<comments>http://blog.10ninox.com/2012/01/macjournal-to-evernote/#comments</comments>
		<pubDate>Mon, 09 Jan 2012 16:05:57 +0000</pubDate>
		<dc:creator>sipp11</dc:creator>
				<category><![CDATA[software]]></category>
		<category><![CDATA[evernote]]></category>
		<category><![CDATA[note]]></category>

		<guid isPermaLink="false">http://blog.10ninox.com/?p=959</guid>
		<description><![CDATA[I was a short-period Evernote user after OneNote took over by all features and everything many years ago. However, once I moved to Mac OSX, I had yet to find a right tool as OneNote alternative. Although VMWare Fusion 4 &#8230; <a href="http://blog.10ninox.com/2012/01/macjournal-to-evernote/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I was a short-period Evernote user after OneNote took over by all features and everything many years ago. However, once I moved to Mac OSX, I had yet to find a right tool as OneNote alternative. Although VMWare Fusion 4 has been improved over the years, why on Earth I have to keep Windows running wasting my memory at all time.</p>
<p>I tried a lot of alternatives: <em>OneNote on VMWare Fusion</em> &#8212; Unity view of course, <em>MarsEdit</em>, <em>Omnifocus</em>, <em>Circusponies Notebook</em>, <em>Journler</em>, <em>MacJournal, Springpad (webapp), Catch (webapp</em>.) As a result, MacJournal it was by its simplicity for months. However, lacking of synchronization sucked big time, esp. with all mobile devices. Then there was an underdog option showing up again. <span style="color: #3366ff;"><em>Evernote</em></span>. At least this piece of software was built with cloudsync in mind.</p>
<p>Well, this time, after couple years w/o using EverNote, I could say that it&#8217;s been vastly improved. It&#8217;s still far from OneNote counterpart, but this is all you can get on OSX. The question left is how to move all data in MacJournal to Evernote?</p>
<p>Like everybody else. I googled for a solution; I found <a href="http://veritrope.com/tech/macjournal-to-evernote-batch-export-applescript/" target="_blank">a script</a> which gave me an error, at least for me. Suddenly I thought of why we have to complicate life this much. So I decided to select all my journal entry, drag them all and drop into Evernote!</p>
<p><span style="color: #ff9900;">Boom!</span> it works! way too easy, right? it works beautifully also. Evernote will show up tons of windows when it completely grabs each journal, but you can always wait a bit and close them all at once with <strong>cmd+q</strong>. After reopening Evernote, you would more than happy.</p>
<p><strong>note</strong>: downside &#8212; tag doesn&#8217;t come along, but there is always a search, right?</p>
<img src="http://blog.10ninox.com/?ak_action=api_record_view&id=959&type=feed" alt="" /><img src="http://feeds.feedburner.com/~r/10ninoxBlog/~4/8vcImWIL2yA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.10ninox.com/2012/01/macjournal-to-evernote/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.10ninox.com/2012/01/macjournal-to-evernote/</feedburner:origLink></item>
		<item>
		<title>FreeNAS 8 – cave man can do it</title>
		<link>http://feedproxy.google.com/~r/10ninoxBlog/~3/ynY_7OW0xhQ/</link>
		<comments>http://blog.10ninox.com/2011/11/freenas-8-cave-man-can-do-it/#comments</comments>
		<pubDate>Fri, 11 Nov 2011 11:29:45 +0000</pubDate>
		<dc:creator>sipp11</dc:creator>
				<category><![CDATA[server]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[NAS]]></category>
		<category><![CDATA[SS4200]]></category>

		<guid isPermaLink="false">http://blog.10ninox.com/?p=949</guid>
		<description><![CDATA[It&#8217;s FreeNAS. It&#8217;s easy. Set it and forget it with full fledge NAS you can&#8217;t find anywhere else. Well, it might not have DRBD, but for home/personal or even small business should be able to cope with rsync easily. At least, this &#8230; <a href="http://blog.10ninox.com/2011/11/freenas-8-cave-man-can-do-it/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s FreeNAS. It&#8217;s easy. Set it and forget it with full fledge NAS you can&#8217;t find anywhere else. Well, it might not have DRBD, but for home/personal or even small business should be able to cope with rsync easily.</p>
<p>At least, this version makes me happy. My SS4200 comes alive w/ port multiplier; it just lives up to its potential.</p>
<p>Kernel log speaks louder than anything.<br />
<code><br />
+pmp0 at siisch1 bus 0 scbus1 target 15 lun 0<br />
+pmp0: &lt; Port Multiplier 0325197b 000e &gt; ATA-0 device<br />
+pmp0: 300.000MB/s transfers (SATA 2.x, NONE, PIO 8192bytes)<br />
+pmp0: 300.000MB/s transfers (SATA 2.x, NONE, PIO 8192bytes)<br />
+pmp0: 15 fan-out ports<br />
+ada1 at siisch1 bus 0 scbus1 target 1 lun 0<br />
+ada1:  ATA-8 SATA 2.x device<br />
+ada1: 300.000MB/s transfers (SATA 2.x, UDMA5, PIO 8192bytes)<br />
+ada1: Command Queueing enabled<br />
+ada1: 1907729MB (3907029168 512 byte sectors: 16H 63S/T 16383C)<br />
+ada2 at siisch1 bus 0 scbus1 target 0 lun 0<br />
+ada2:  ATA-8 SATA 2.x device<br />
+ada2: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes)<br />
+ada2: Command Queueing enabled<br />
+ada2: 1907729MB (3907029168 512 byte sectors: 16H 63S/T 16383C)<br />
+ada3 at siisch1 bus 0 scbus1 target 3 lun 0<br />
+ada3:  ATA-8 SATA 2.x device<br />
+ada3: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes)<br />
+ada3: Command Queueing enabled<br />
+ada3: 1907729MB (3907029168 512 byte sectors: 16H 63S/T 16383C)<br />
+ada4 at siisch1 bus 0 scbus1 target 2 lun 0<br />
+ada4:  ATA-8 SATA 2.x device<br />
+ada4: 300.000MB/s transfers (SATA 2.x, UDMA5, PIO 8192bytes)<br />
+ada4: Command Queueing enabled<br />
+ada4: 1907729MB (3907029168 512 byte sectors: 16H 63S/T 16383C)</code></p>
<p>Thanks, FreeBSD guys enabling this feature. Thanks, FreeNAS folks developing nice-and-easy NAS.</p>
<img src="http://blog.10ninox.com/?ak_action=api_record_view&id=949&type=feed" alt="" /><img src="http://feeds.feedburner.com/~r/10ninoxBlog/~4/ynY_7OW0xhQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.10ninox.com/2011/11/freenas-8-cave-man-can-do-it/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.10ninox.com/2011/11/freenas-8-cave-man-can-do-it/</feedburner:origLink></item>
		<item>
		<title>Thai font for webOS</title>
		<link>http://feedproxy.google.com/~r/10ninoxBlog/~3/iDwhI-hPxPs/</link>
		<comments>http://blog.10ninox.com/2011/09/thai-font-for-webos/#comments</comments>
		<pubDate>Mon, 12 Sep 2011 13:45:11 +0000</pubDate>
		<dc:creator>sipp11</dc:creator>
				<category><![CDATA[software]]></category>
		<category><![CDATA[tweak]]></category>
		<category><![CDATA[webOS]]></category>

		<guid isPermaLink="false">http://blog.10ninox.com/?p=920</guid>
		<description><![CDATA[Well, after HP dumped #webOS device w/o caring how many languages those devices can read. We, as a user, are supposed to be on our own then. Here is fonts you need to replace, Arial &#38; Prelude families. These are &#8230; <a href="http://blog.10ninox.com/2011/09/thai-font-for-webos/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Well, after HP dumped #webOS device w/o caring how many languages those devices can read. We, as a user, are supposed to be on our own then.</p>
<p>Here is fonts you need to replace,<a href=" http://dl.dropbox.com/u/102630/webos-thai-fonts.zip"> Arial &amp; Prelude families</a>. These are sorta main fonts in webOS. Actually you can replace only Prelude for webOS 2.x or older, but likely you need both for webOS 3.</p>
<p><strong><span style="color: #008080;">What I have done?</span></strong> You definitely can copy any font w/ Thai character and rename to Prelude for all webOS 2.x or below. restart Luna once. It will work. However, I just like to have Prelude as it was. I only add Thai characters to that font. So as in this Arial.</p>
<p><strong><span style="color: #ff6600;">How can you replace these fonts?</span></strong> there are many possible ways to do so, but I guess you have to have some sort of shell, XTerm preferably, and surely you probably need to have Preware first. Then you should be able to simply copy this font over the original one.</p>
<p><code>root@Touchpad: /var/home/root# cp /media/internal/newfont/* /usr/share/fonts/</code></p>
<p>Once you copy these over, restart Luna once. All set =) If you need anything else, just give me a shout in comment =)</p>
<p>ps. well, FYI, I did put Thai character of TH SarabunNew into webOS&#8217;s Arial and Thonburi&#8217;s into Prelude.</p>
<p><strong>note</strong>: due to excessive spamming, I couldn&#8217;t approve real people comments in time. I have to delete spams in database instead. If you guys which have a problem are still around, let me know again. Sorry for inconvenience. I think I&#8217;ll move to #Disqus avoiding this issue as soon as possible.</p>
<img src="http://blog.10ninox.com/?ak_action=api_record_view&id=920&type=feed" alt="" /><img src="http://feeds.feedburner.com/~r/10ninoxBlog/~4/iDwhI-hPxPs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.10ninox.com/2011/09/thai-font-for-webos/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		<feedburner:origLink>http://blog.10ninox.com/2011/09/thai-font-for-webos/</feedburner:origLink></item>
		<item>
		<title>Multiple Profiles — A hero after Google Apps has transitioned</title>
		<link>http://feedproxy.google.com/~r/10ninoxBlog/~3/shSMxgkW7fA/</link>
		<comments>http://blog.10ninox.com/2011/08/multiple-profiles-a-hero-after-google-apps-has-transitioned/#comments</comments>
		<pubDate>Mon, 08 Aug 2011 17:59:50 +0000</pubDate>
		<dc:creator>sipp11</dc:creator>
				<category><![CDATA[Google]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[Google Apps]]></category>

		<guid isPermaLink="false">http://blog.10ninox.com/2011/08/multiple-profiles-a-hero-after-google-apps-has-transitioned/</guid>
		<description><![CDATA[I don’t know if anyone is in on the same boat as me. Back then, I was on both Google Apps mail and Gmail at the same time. However, once Google decided to change Google Apps account to be more &#8230; <a href="http://blog.10ninox.com/2011/08/multiple-profiles-a-hero-after-google-apps-has-transitioned/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img class="alignright" title="Google Chrome Avatars" src="http://f.cl.ly/items/1v2c3A2P3L1D2W2h1C0R/Screen%20shot%202011-08-09%20at%201.27.20%20AM.png" alt="" width="88" height="76" />I don’t know if anyone is in on the same boat as me. Back then, I was on both Google Apps mail and Gmail at the same time. However, once Google decided to change Google Apps account to be more like normal Google account. Things get rough; I have to use Firefox for one account and Chrome for the other. Yeah, it’s a pain in the butt. However, I just discovered that Chrome has such a nice feature called “Multiple Profiles.” Basically, it lets you have different sets of session and else on different windows and of course they provide a nice touch identifying each profile by avatar on top-right of each window.</p>
<p>First, you have to enable “multiple profiles” flag by go to <a href="about:flags">about:flags</a>, find Multiple Profiles and enable it. Then you have to restart your Chrome once. There you go!<br />
<img class="alignnone" title="Multiple Profiles -- Google Chrome" src="http://f.cl.ly/items/2X0I2q2f082b1N0F162I/Screen%20shot%202011-08-09%20at%2012.54.15%20AM.png" alt="Multiple Profiles -- Google Chrome" width="569" height="465" /></p>
<img src="http://blog.10ninox.com/?ak_action=api_record_view&id=813&type=feed" alt="" /><img src="http://feeds.feedburner.com/~r/10ninoxBlog/~4/shSMxgkW7fA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.10ninox.com/2011/08/multiple-profiles-a-hero-after-google-apps-has-transitioned/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://blog.10ninox.com/2011/08/multiple-profiles-a-hero-after-google-apps-has-transitioned/</feedburner:origLink></item>
		<item>
		<title>Too many connections on MySQL server</title>
		<link>http://feedproxy.google.com/~r/10ninoxBlog/~3/waTwEEzg7mc/</link>
		<comments>http://blog.10ninox.com/2011/06/too-many-connections-on-mysql-server/#comments</comments>
		<pubDate>Wed, 15 Jun 2011 14:40:55 +0000</pubDate>
		<dc:creator>sipp11</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[db]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://blog.10ninox.com/?p=811</guid>
		<description><![CDATA[If you are new to administrate all your web and database server and wonder how you can tweak to their best, you are just like me. My job was to build a webapp in order to handle roughly 10 grand &#8230; <a href="http://blog.10ninox.com/2011/06/too-many-connections-on-mysql-server/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you are new to administrate all your web and database server and wonder how you can tweak to their best, you are just like me. My job was to build a webapp in order to handle roughly 10 grand of users, and this app was database-driven one. Its database is about 15GB with 25M records and is growing steadily. Well, traffic is also growing twice a month, approx. 8,000 visits; 260,000 pageviews a day as of now, according to Google Analytics. It&#8217;s relatively small if you compare to all giant sites these days. However, it&#8217;s not as easy as it seems once you are a coder, but have to manage all these things too. I&#8217;ll try to share as much information as I could as time goes by.</p>
<p>After I tweaked on coding side, e.g. indexing, using cache, bla bla bla, as much as I know. I have faced some weird issue that database server was down randomly while it didn&#8217;t even eat up all memory or frequently an popular &#8220;Too many connections&#8221; popping up. After googling for a while, I found that it could relate to several things: maximum connection on MySQL itself which is 100 as a default; maximum open files which is depending on OS; or simply out of memory. In my case, it surely is not memory issue, since top/free confirmed me about that. Then I have changed both maximum connection on MySQL and maximum open files on Linux:-</p>
<p>in <code>/etc/my.cnf</code>, you have to add another line setting this:</p>
<p><code>[mysqld]<br />
max_connections = 250 # or whatever</code></p>
<p>This would set new maximum connection limit for the database server, but it doesn&#8217;t guarantee if it can handle that&#8211;that&#8217;s also OS and memory related. After this change, restart MySQL daemon once to see the change.</p>
<p>For maximum open files, you can check by ulimit -n, if it&#8217;s over MySQL maximum connections, you can skip this part. If not, heading to <code>/etc/security/limits.conf</code>, and you can simply add:-</p>
<p><code>* hard nofile 2048<br />
* soft nofile 2048</code></p>
<p>If you are using SSH, you have to restart sshd once for new setting. So far, I&#8217;m happy with the new role and having fun tweaking it. If you have any suggestion, please share!</p>
<img src="http://blog.10ninox.com/?ak_action=api_record_view&id=811&type=feed" alt="" /><img src="http://feeds.feedburner.com/~r/10ninoxBlog/~4/waTwEEzg7mc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.10ninox.com/2011/06/too-many-connections-on-mysql-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.10ninox.com/2011/06/too-many-connections-on-mysql-server/</feedburner:origLink></item>
		<item>
		<title>Colorizing VIM</title>
		<link>http://feedproxy.google.com/~r/10ninoxBlog/~3/eKqocNoDiBM/</link>
		<comments>http://blog.10ninox.com/2011/03/colorizing-vim/#comments</comments>
		<pubDate>Wed, 30 Mar 2011 08:09:39 +0000</pubDate>
		<dc:creator>sipp11</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[tweak]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://blog.10ninox.com/?p=805</guid>
		<description><![CDATA[The more you use vim, the further you are from all other text editors. However, when you get your new box ready, vim is likely not to enable syntax color by default. You can choose to do that individually or &#8230; <a href="http://blog.10ninox.com/2011/03/colorizing-vim/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The more you use vim, the further you are from all other text editors. However, when you get your new box ready, vim is likely not to enable syntax color by default. You can choose to do that individually or for everyone. If you decide to let other manage this on their own, you can just create <code>~/.vimrc</code> or you can opt for system wide setting in <code>/etc/vim/vimrc</code>.</p>
<p>in <code>/etc/vim/vimrc</code>, you will find:-</p>
<p><code>" syntax</code></p>
<p>on which mean it&#8217;s commented out. What you have to do is uncomment it, save, and try. For <code>~/.vimrc</code>, you can just touch that file and type <code>syntax on</code> or you can just do:</p>
<p><code>$ echo 'syntax on' &gt; ~/.vimrc</code></p>
<p>That should do it.</p>
<img src="http://blog.10ninox.com/?ak_action=api_record_view&id=805&type=feed" alt="" /><img src="http://feeds.feedburner.com/~r/10ninoxBlog/~4/eKqocNoDiBM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.10ninox.com/2011/03/colorizing-vim/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.10ninox.com/2011/03/colorizing-vim/</feedburner:origLink></item>
		<item>
		<title>Mac OSX and CIFS/SMB relationship</title>
		<link>http://feedproxy.google.com/~r/10ninoxBlog/~3/jn2-LgYPrZY/</link>
		<comments>http://blog.10ninox.com/2011/03/mac-osx-and-cifssmb-relationship/#comments</comments>
		<pubDate>Tue, 15 Mar 2011 17:03:37 +0000</pubDate>
		<dc:creator>sipp11</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[samba]]></category>

		<guid isPermaLink="false">http://blog.10ninox.com/?p=794</guid>
		<description><![CDATA[After I had a problem transferring file over CIFS with my Macbook Pro, there are a lot of issues: stopping copying, missing files in a destination although successful operation. That was frustrated and surely I can&#8217;t give up on Samba &#8230; <a href="http://blog.10ninox.com/2011/03/mac-osx-and-cifssmb-relationship/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>After I had a problem transferring file over CIFS with my Macbook Pro, there are a lot of issues: stopping copying, missing files in a destination although successful operation. That was frustrated and surely I can&#8217;t give up on Samba just yet. I even have to do rsync or cp to get expectable outcome from such a simple task. By the way, after stumble across threads, KBs, I found the solution that make me happy for couple weeks so far.</p>
<p>Here is what I was looking for <a href="http://support.apple.com/kb/HT4017" target="_blank">Mac OSX 10.5, 10.6: About named streams on SMB-mounted NAS</a></p>
<p>What you have to do is pretty simple, enabling named streams on Mac OS X client&#8211;yeah my machine! By opening up Terminal and type as following:-</p>
<pre><tt>echo "[default]" &gt;&gt;  ~/Library/Preferences/nsmb.conf</tt>
<tt>echo "streams=yes" &gt;&gt; ~/Library/Preferences/nsmb.conf</tt></pre>
<p>That is enabling named streams as a default for all smb connection. This makes my day indeed &#8212; not worrying if copying works as it should or not.</p>
<img src="http://blog.10ninox.com/?ak_action=api_record_view&id=794&type=feed" alt="" /><img src="http://feeds.feedburner.com/~r/10ninoxBlog/~4/jn2-LgYPrZY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.10ninox.com/2011/03/mac-osx-and-cifssmb-relationship/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.10ninox.com/2011/03/mac-osx-and-cifssmb-relationship/</feedburner:origLink></item>
		<item>
		<title>Maemo sucks as a phone but is good as a tablet.</title>
		<link>http://feedproxy.google.com/~r/10ninoxBlog/~3/pEiw3h_86KY/</link>
		<comments>http://blog.10ninox.com/2011/01/maemo-sucks-as-a-phone-but-is-good-as-a-tablet/#comments</comments>
		<pubDate>Mon, 10 Jan 2011 07:48:36 +0000</pubDate>
		<dc:creator>sipp11</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.10ninox.com/2011/01/10/maemo-sucks-as-a-phone-but-is-good-as-a-tablet/</guid>
		<description><![CDATA[This is tesing from MAStory on Nokia N900.]]></description>
			<content:encoded><![CDATA[<p>This is tesing from MAStory on Nokia N900.</p>
<img src="http://blog.10ninox.com/?ak_action=api_record_view&id=789&type=feed" alt="" /><img src="http://feeds.feedburner.com/~r/10ninoxBlog/~4/pEiw3h_86KY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.10ninox.com/2011/01/maemo-sucks-as-a-phone-but-is-good-as-a-tablet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.10ninox.com/2011/01/maemo-sucks-as-a-phone-but-is-good-as-a-tablet/</feedburner:origLink></item>
	</channel>
</rss>

