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

<channel>
	<title>Samet Kilictas's Blog &#187; Tips</title>
	<atom:link href="http://samet.kilictas.com/category/tips/feed/" rel="self" type="application/rss+xml" />
	<link>http://samet.kilictas.com</link>
	<description>Personal E-Notebook</description>
	<lastBuildDate>Fri, 30 Apr 2010 07:29:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>if exists syntax in sybase</title>
		<link>http://samet.kilictas.com/if-exists-syntax-in-sybase/</link>
		<comments>http://samet.kilictas.com/if-exists-syntax-in-sybase/#comments</comments>
		<pubDate>Tue, 20 Apr 2010 11:47:00 +0000</pubDate>
		<dc:creator>Samet Kilictas</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[column]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[exec]]></category>
		<category><![CDATA[exists]]></category>
		<category><![CDATA[sybase]]></category>
		<category><![CDATA[table exists]]></category>

		<guid isPermaLink="false">http://samet.kilictas.com/?p=415</guid>
		<description><![CDATA[Below shows the if exists usage with examples in sybase If exists (select record) begin sql statement 1 sql statement 2 end else begin sql statement 3 sql statement 4 end Example Scripts that include constructs like the following may produce errors if the table described in the script does not include the specified column: [...]]]></description>
			<content:encoded><![CDATA[<p>Below shows the if exists usage with examples in sybase</p>
<blockquote><p>If exists (select record)<br />
begin<br />
sql statement 1<br />
sql statement 2<br />
end<br />
else<br />
begin<br />
sql statement 3<br />
sql statement 4<br />
end</p></blockquote>
<p>Example</p>
<p>Scripts that include constructs like the following may produce errors if the table described in the script does not include the specified column:</p>
<pre class="brush: sql">
if exists (select 1 from syscolumns
where id = object_id(&quot;some_table&quot;)
and name = &quot;some_column&quot;)
begin
alter table some_table drop some_column
end
</pre>
<p>In this example, some_column must exist in some_table for the batch to succeed.</p>
<p>If some_column exists in some_table, the first time you run the batch, alter table drops the column. On subsequent executions, the batch does not compile.</p>
<p>Adaptive Server raises these errors while preprocessing this batch, which are similar to those that are raised when a normal select tries to access a nonexistent column. These errors are raised when you modify a table’s schema using clauses that require a data copy. If you add a null column, and use the above construct, Adaptive Server does not raise these errors.</p>
<p>To avoid such errors when you modify a table’s schema, include alter table in an execute immediate command:</p>
<pre class="brush: sql">
if exists (select 1 from syscolumns
where id = object_id(&quot;some_table&quot;)
and name = &quot;some_column&quot;)
begin
exec (&quot;alter table some_table drop
some_column&quot;)
end
</pre>
<p>Because the execute immediate statement is run only if the if exists() function succeeds, Adaptive Server does not raise any errors when it compiles this script.</p>
<p>You must also use the execute immediate construct for other uses of alter table, for example, to change the locking scheme, and for any other cases when the command does not require data copy.</p>
]]></content:encoded>
			<wfw:commentRss>http://samet.kilictas.com/if-exists-syntax-in-sybase/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A common error with GROUP BY Clause</title>
		<link>http://samet.kilictas.com/a-common-error-with-group-by-clause/</link>
		<comments>http://samet.kilictas.com/a-common-error-with-group-by-clause/#comments</comments>
		<pubDate>Fri, 16 Apr 2010 12:46:40 +0000</pubDate>
		<dc:creator>Samet Kilictas</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[clause]]></category>
		<category><![CDATA[common error]]></category>
		<category><![CDATA[db2]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[group by]]></category>
		<category><![CDATA[max]]></category>
		<category><![CDATA[min]]></category>
		<category><![CDATA[sybase]]></category>

		<guid isPermaLink="false">http://samet.kilictas.com/?p=410</guid>
		<description><![CDATA[A common error with groups is to try to get information which cannot properly be put in a group. For example, SELECT sales_rep, emp_lname, count( * ) FROM sales_order KEY JOIN employee GROUP BY sales_rep gives the error column &#8216;emp_lname&#8217; cannot be used unless it is in a GROUP BY. SQL does not realize that [...]]]></description>
			<content:encoded><![CDATA[<p>A common error with groups is to try to get information which cannot properly be put in a group. For example,</p>
<pre class="brush: sql">

SELECT sales_rep, emp_lname, count( * )
FROM sales_order
KEY JOIN employee
GROUP BY sales_rep
</pre>
<p>gives the error</p>
<p>column &#8216;emp_lname&#8217; cannot be used unless it is in a GROUP BY.</p>
<p>SQL does not realize that each of the rows for an employee with a given ID have the same value of emp_lname. An error is reported since SQL does not know which of the names to display.</p>
<p>However, the following is valid:</p>
<pre class="brush: sql">

SELECT sales_rep, max( emp_lname ), count( * )
FROM sales_order
KEY JOIN employee
GROUP BY sales_rep
</pre>
<p>The max function chooses the maximum (last alphabetically) surname from the detail rows for each group. The surname is the same on every detail row within a group so the max is just a trick to bypass a limitation of SQL.</p>
]]></content:encoded>
			<wfw:commentRss>http://samet.kilictas.com/a-common-error-with-group-by-clause/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to enable TCP connections to XServer?</title>
		<link>http://samet.kilictas.com/how-to-enable-tcp-connections-to-xserver/</link>
		<comments>http://samet.kilictas.com/how-to-enable-tcp-connections-to-xserver/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 13:01:01 +0000</pubDate>
		<dc:creator>Samet Kilictas</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Xserver]]></category>

		<guid isPermaLink="false">http://samet.kilictas.com/?p=393</guid>
		<description><![CDATA[sudo gedit /etc/gdm/gdm.schemas find: &#60;schema&#62; &#60;key&#62;security/DisallowTCP&#60;/key&#62; &#60;signature&#62;b&#60;/signature&#62; &#60;default&#62;true&#60;/default&#62; &#60;/schema&#62; shift from true to false: &#60;schema&#62; &#60;key&#62;security/DisallowTCP&#60;/key&#62; &#60;signature&#62;b&#60;/signature&#62; &#60;default&#62;false&#60;/default&#62; &#60;/schema&#62;]]></description>
			<content:encoded><![CDATA[<hr style="color: #ffffff; background-color: #ffffff;" size="1" /><!-- / icon and title --> <!-- message --></p>
<div id="post_message_8227965"></div>
<div>sudo gedit /etc/gdm/gdm.schemas</div>
<div id="post_message_8227965">
<p>find:</p>
<p>&lt;schema&gt;<br />
&lt;key&gt;security/DisallowTCP&lt;/key&gt;<br />
&lt;signature&gt;b&lt;/signature&gt;<br />
&lt;default&gt;true&lt;/default&gt;<br />
&lt;/schema&gt;</p>
<p>shift from true to false:</p>
<p>&lt;schema&gt;<br />
&lt;key&gt;security/DisallowTCP&lt;/key&gt;<br />
&lt;signature&gt;b&lt;/signature&gt;<br />
&lt;default&gt;false&lt;/default&gt;<br />
&lt;/schema&gt;</p></div>
]]></content:encoded>
			<wfw:commentRss>http://samet.kilictas.com/how-to-enable-tcp-connections-to-xserver/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LaTeX equations on web? Is that all you want?</title>
		<link>http://samet.kilictas.com/latex-equations-on-web-is-that-all-you-want/</link>
		<comments>http://samet.kilictas.com/latex-equations-on-web-is-that-all-you-want/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 21:54:51 +0000</pubDate>
		<dc:creator>Samet Kilictas</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Equation]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Google Chart API]]></category>
		<category><![CDATA[Latex]]></category>

		<guid isPermaLink="false">http://samet.kilictas.com/?p=379</guid>
		<description><![CDATA[Yes dear readers! It is really cool to have latex equations on web. There is an undocumented future of Google Chart API. It is easy to use as much as API itself. For instance, you need to include the Schrödinger equation your web page. Let&#8217;s construct an url like this: http://chart.apis.google.com/chart?cht=tx&#38;chf=bg,s,FFFFFF00&#38;chco=AACCFF&#38;chl=i\hbar\frac{\partial}{\partial t} \Psi(\mathbf{r},\,t) = \hat [...]]]></description>
			<content:encoded><![CDATA[<p>Yes dear readers! It is really cool to have latex equations on web. There is an undocumented future of <a href="http://code.google.com/apis/chart/">Google Chart API</a>. It is easy to use as much as API itself. For instance, you need to include the Schrödinger equation your web page. Let&#8217;s construct an url like this:</p>
<p><a href="http://chart.apis.google.com/chart?cht=tx&amp;chf=bg,s,FFFFFF00&amp;chco=AACCFF&amp;chl=i%5Chbar%5Cfrac%7B%5Cpartial%7D%7B%5Cpartial%20t%7D%20%5CPsi%28%5Cmathbf%7Br%7D,%5C,t%29%20=%20%5Chat%20H%20%5CPsi%28%5Cmathbf%7Br%7D,t%29"><span style="font-family: 'courier new';">http://chart.apis.google.com/chart?cht=tx&amp;chf=bg,s,FFFFFF00&amp;chco=AACCFF&amp;chl=i\hbar\frac{\partial}{\partial t} \Psi(\mathbf{r},\,t) = \hat H \Psi(\mathbf{r},t)</span></a></p>
<p>Put your <img class="alignnone" src="http://chart.apis.google.com/chart?cht=tx&amp;chf=bg,s,FFFFFF00&amp;chco=FFFFFF&amp;chl=%5CLaTeX" alt="" width="58" height="19" /> code in the <span class="Apple-style-span" style="font-family: 'courier new';">chl</span> parameter. The <span class="Apple-style-span" style="font-family: 'courier new';">chf</span> parameter lets you specify a background color in RGBA, <span class="Apple-style-span" style="font-family: 'courier new';">chco</span> lets you set the foreground color in RGB. When you drop it in inside of an image tag you get this:</p>
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Put your <img src="http://chart.apis.google.com/chart?cht=tx&amp;chf=bg,s,FFFFFF00&amp;chco=FFFFFF&amp;chl=%5CLaTeX" alt="" /> code in the <span class="Apple-style-span" style="font-family: 'courier new';">chl</span> parameter. The <span class="Apple-style-span" style="font-family: 'courier new';">chf</span> parameter lets you specify a background color in RGBA, <span class="Apple-style-span" style="font-family: 'courier new';">chco</span> lets you set the foreground color in RGB. When you drop it in inside of an image tag you get this:</div>
<p><img src="http://chart.apis.google.com/chart?cht=tx&amp;chf=bg,s,FFFFFF00&amp;chco=AACCFF&amp;chl=i\hbar\frac{\partial}{\partial%20t}%20\Psi(\mathbf{r},\,t)%20=%20\hat%20H%20\Psi(\mathbf{r},t)" alt="" /></p>
<p>If you anticipate making 250,000 calls to the chart server a day, contact Google first at <a href="mailto:chart-api-notifications@google.com">chart-api-notifications@google.com</a>. There&#8217;s no limit to how much you can use it, but they reserve the right to turn you off.</p>
]]></content:encoded>
			<wfw:commentRss>http://samet.kilictas.com/latex-equations-on-web-is-that-all-you-want/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Cannot load mysqli extension. Please check your PHP configuration</title>
		<link>http://samet.kilictas.com/cannot-load-mysqli-extension-please-check-your-php-configuration/</link>
		<comments>http://samet.kilictas.com/cannot-load-mysqli-extension-please-check-your-php-configuration/#comments</comments>
		<pubDate>Tue, 25 Aug 2009 14:01:28 +0000</pubDate>
		<dc:creator>Samet Kilictas</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[IIS7]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[WAMP]]></category>
		<category><![CDATA[WampServer]]></category>

		<guid isPermaLink="false">http://samet.kilictas.com/?p=364</guid>
		<description><![CDATA[Probably you are trying to access your phpmyadmin. You will get this error  if you have more then one &#8220;php.ini&#8221; file in your system. It is kinda conflicting. For instance i have wampserver2.0 and IIS7 together in my current system. I have activated IIS7 FastCgı method to use php on it. So it has one [...]]]></description>
			<content:encoded><![CDATA[<p>Probably you are trying to access your phpmyadmin. You will get this error  if you have more then one &#8220;php.ini&#8221; file in your system. It is kinda conflicting. For instance i have wampserver2.0 and IIS7 together in my current system. I have activated IIS7 FastCgı method to use php on it. So it has one php.ini file at path of  &#8220;c:\wamp\&#8230;.&#8221; and another one in &#8220;c:\Program Files\Php&#8221; . You can get a temporary solution if you rename your php.ini file which is in your &#8220;program files&#8221; path.</p>
<p>That is it.</p>
]]></content:encoded>
			<wfw:commentRss>http://samet.kilictas.com/cannot-load-mysqli-extension-please-check-your-php-configuration/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>How to install Nvidia Driver 180.29 on your ubuntu</title>
		<link>http://samet.kilictas.com/how-to-install-nvidia-driver-18029-on-your-ubuntu/</link>
		<comments>http://samet.kilictas.com/how-to-install-nvidia-driver-18029-on-your-ubuntu/#comments</comments>
		<pubDate>Fri, 06 Mar 2009 17:13:38 +0000</pubDate>
		<dc:creator>Samet Kilictas</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[180.29]]></category>
		<category><![CDATA[8.10]]></category>
		<category><![CDATA[Nvidia]]></category>

		<guid isPermaLink="false">http://samet.kilictas.com/?p=265</guid>
		<description><![CDATA[If you are using older drivers then 180.29 version you should* install new drivers so you will have better performence with 180.29 version. Don&#8217;t worry it is piece of cake to install it on your ubuntu. Firstly, go on ( System-&#62;Administration-&#62;Software Sources ) then click on &#8220;Third-Party software&#8221; tab. Now you should see a button [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://samet.kilictas.com/wp-content/uploads/2009/03/nvidia-settings.png"><img class="alignnone size-medium wp-image-264" title="nvidia-settings" src="http://samet.kilictas.com/wp-content/uploads/2009/03/nvidia-settings.png" alt="" width="48" height="48" /></a> If you are using older drivers then 180.29 version you should* install new drivers so you will have better performence with 180.29 version. Don&#8217;t worry it is piece of cake to install it on your ubuntu.</p>
<p>Firstly, go on ( System-&gt;Administration-&gt;Software Sources ) then click on &#8220;Third-Party software&#8221; tab. Now you should see a button &#8220;+Add&#8221; shows on it.</p>
<blockquote><p><code>deb <a title="http://ppa.launchpad.net/anders-kaseorg/ppa/ubuntu" href="http://ppa.launchpad.net/anders-kaseorg/ppa/ubuntu">http://ppa.launchpad.net/anders-kaseorg/ppa/ubuntu</a> intrepid main<br />
deb-src <a title="http://ppa.launchpad.net/anders-kaseorg/ppa/ubuntu" href="http://ppa.launchpad.net/anders-kaseorg/ppa/ubuntu">http://ppa.launchpad.net/anders-kaseorg/ppa/ubuntu</a> intrepid main</code></p></blockquote>
<p>As you see above there is two lines of address. You should add them one-by-one by clicking this &#8220;+Add&#8221; button. when you are done with that it is time to get PPA keys for this repository.</p>
<p>Now use there commands</p>
<blockquote><p>cd ~/Desktop<br />
gedit temp.key</p></blockquote>
<p><span id="more-265"></span></p>
<p>A Gedit window should be appear now. Then paste this key code inside of that window.</p>
<blockquote>
<pre>-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: SKS 1.0.10

mI0ESXak3QEEAKTdBfrFtEvBel4kluGh2d99v56PzgPB4gJKz5wET4sItbxZDU9hA61kt1hl
o/84l1696hWQvnVCXrXOI2g7ZW3RD/xs/HTG6gBcVjPAW7StXYQ6sLWNEu3mgZ4FA9RdEox2
38F0kqqozx187Tvq/OQBHVzPekcdQkaWPf8QkbJ3ABEBAAG0IExhdW5jaHBhZCBQUEEgZm9y
IEFuZGVycyBLYXNlb3JniEYEExECAAYFAkl3qLwACgkQG9iXoSX6XFaRLgCeLdHCeGYski0Q
YDIfiytgNzH5uFcAoIjEEHAXY9Z4N/nBDurP/Dzx/8M0iLYEEwECACAFAkl2pN0CGwMGCwkI
BwMCBBUCCAMEFgIDAQIeAQIXgAAKCRBimK00QTV2y8i7A/0XzwwjyTWdbcShItGhK4E3l/n0
Lq2JtCtJsjKphOOoE6pW3AjnrGayKZ5FNJoRVZYXNzIaeHhv6qlxdVTNiftUxIXJGOKRmCFJ
jYiltLTmJH+IGOCZAfMlT72AVKOLygEudLHF3KgdCX5/aW7sjCGtuvLJopL6zkcJpiJfoe2e
JA==
=ZaVk
-----END PGP PUBLIC KEY BLOCK-----</pre>
</blockquote>
<p>Then just save it. If this key above doesn&#8217;t works then try <a href="http://keyserver.ubuntu.com:11371/pks/lookup?search=0x026491A5DD081BDC6CDFC0DE6298AD34413576CB&amp;op=index">http://keyserver.ubuntu.com:11371/pks/lookup?search=0x026491A5DD081BDC6CDFC0DE6298AD34413576CB&amp;op=index</a> this link so you can find current key there. Now we are really close to make nvidia 180.29 working on our ubuntu. Now go on ( System-&gt;Administration-&gt;Software Sources ) then click on Authentication tab then you will see &#8220;+ Import Key File&#8221; button there. Click on it and find your &#8220;temp.key&#8221; file on your Desktop. Then click ok there you go now you are ready to make it work.</p>
<p>By the way you must be sure your old driver is working on 3D mode. Now open terminal again and write this commands</p>
<blockquote><p><code>sudo apt-get update<br />
sudo apt-get install nvidia-glx-180</code></p></blockquote>
<p>When it prompts on screen press &#8220;Y&#8221; button on your keyboard then Enter button. Now all you have to do it give it some time. After a quick restart you will have your drivers running you computer</p>
]]></content:encoded>
			<wfw:commentRss>http://samet.kilictas.com/how-to-install-nvidia-driver-18029-on-your-ubuntu/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>CodeIgniter How to Pagination</title>
		<link>http://samet.kilictas.com/codeigniter-how-to-pagination/</link>
		<comments>http://samet.kilictas.com/codeigniter-how-to-pagination/#comments</comments>
		<pubDate>Wed, 12 Nov 2008 08:53:02 +0000</pubDate>
		<dc:creator>Samet Kilictas</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Codeigniter]]></category>
		<category><![CDATA[CodeIgniter pagination]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[Framework]]></category>
		<category><![CDATA[load]]></category>
		<category><![CDATA[pagination]]></category>
		<category><![CDATA[pagination class]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[view]]></category>

		<guid isPermaLink="false">http://samet.kilictas.com/?p=101</guid>
		<description><![CDATA[CodeIgniter is a powerful PHP framework with a very small footprint, built for PHP coders who need a simple and elegant toolkit to create full-featured web applications. If you&#8217;re a developer who lives in the real world of shared hosting accounts and clients with deadlines, and if you&#8217;re tired of ponderously large and thoroughly undocumented [...]]]></description>
			<content:encoded><![CDATA[<p>CodeIgniter is a powerful PHP framework with a very small footprint, built for PHP coders who need a simple and elegant toolkit to create full-featured web applications. If you&#8217;re a developer who lives in the real world of shared hosting accounts and clients with deadlines, and if you&#8217;re tired of ponderously large and thoroughly undocumented frameworks.</p>
<p>CodeIgniter&#8217;s Pagination class is very easy to use, and it is 100% customizable, either dynamically or via stored preferences.</p>
<p>If you are not familiar with the term &#8220;pagination&#8221;, it refers to links that allows you to navigate from page to page, like this:</p>
<p><code><a href="http://localhost/cms/user_guide/libraries/pagination.html#">« First</a> <a href="http://localhost/cms/user_guide/libraries/pagination.html#">&lt;</a> <a href="http://localhost/cms/user_guide/libraries/pagination.html#">1</a> <a href="http://localhost/cms/user_guide/libraries/pagination.html#">2</a> <strong>3</strong> <a href="http://localhost/cms/user_guide/libraries/pagination.html#">4</a> <a href="http://localhost/cms/user_guide/libraries/pagination.html#">5</a> <a href="http://localhost/cms/user_guide/libraries/pagination.html#">&gt;</a> <a href="http://localhost/cms/user_guide/libraries/pagination.html#">Last »</a></code></p>
<pre class="brush: php">
function shownews()
{
if($this-&gt;userlib-&gt;logged_in())
//checking for security purposes
{
$this-&gt;load-&gt;library(&#039;pagination&#039;);
$per_page = 10;
// How many pages you want to show in each page
$total = $this-&gt;db-&gt;get(&#039;posts&#039;, $per_page, $this-&gt;uri-&gt;segment(3)); 

//Here is the most important part actually.
Basically $total variable determined which
rows you are going to show in the page

$config[&#039;base_url&#039;] = base_url().&#039;/index.php/admin/shownews&#039;;
$config[&#039;total_rows&#039;] = $this-&gt;db-&gt;count_all(&#039;posts&#039;); // Count total rows in the query
$config[&#039;per_page&#039;] = $per_page;
$config[&#039;num_links&#039;] = 6;
$this-&gt;pagination-&gt;initialize($config);
$data[&#039;posts&#039;] = $total;
$this-&gt;load-&gt;view(&#039;admin_shownews&#039;, $data);
} else {
$this-&gt;load-&gt;view(&#039;admin_logineed&#039;);
}
}
</pre>
<p>After getting done with this configuration part of pagination class all you have to do is just initialize it like you are doing it in most of programming languages.</p>
<p><span id="more-101"></span></p>
<p>Then by using $this-&gt;load-&gt;view()  parse your data array to your view which is going to be used for showing paginated items. In that view page you should use this;</p>
<pre class="brush: php">&lt;?php echo $this-&gt;pagination-&gt;create_links(); ?&gt;</pre>
<p>to auto create your pagination links. You can put this anwhere in your page you want.</p>
]]></content:encoded>
			<wfw:commentRss>http://samet.kilictas.com/codeigniter-how-to-pagination/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to Convert NRG files to ISO format?</title>
		<link>http://samet.kilictas.com/how-to-convert-nrg-files-to-iso-format/</link>
		<comments>http://samet.kilictas.com/how-to-convert-nrg-files-to-iso-format/#comments</comments>
		<pubDate>Sun, 08 Jun 2008 07:04:46 +0000</pubDate>
		<dc:creator>Samet Kilictas</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[cdburn]]></category>
		<category><![CDATA[convertnrg]]></category>
		<category><![CDATA[iso]]></category>
		<category><![CDATA[nero]]></category>
		<category><![CDATA[nrg]]></category>
		<category><![CDATA[nrg2iso]]></category>
		<category><![CDATA[nrginubuntu]]></category>

		<guid isPermaLink="false">http://samet.kilictas.com/?p=25</guid>
		<description><![CDATA[Assume that  you have some &#8221; .nrg &#8221; files with you which is already burned in windows OS and you want to burn this file in linux OS. Here the OS which i tested is Ubuntu. You need to install a little application. sudo apt-get install nrg2iso then to convert files cin@nexus:~$ nrg2iso here_nrg_name.nrg here_new_iso_name.iso [...]]]></description>
			<content:encoded><![CDATA[<p>Assume that  you have some &#8221; .nrg &#8221; files with you which is already burned in windows OS and you want to burn this file in linux OS. Here the OS which i tested is Ubuntu.</p>
<p>You need to install a little application.</p>
<blockquote><p>sudo apt-get install nrg2iso</p></blockquote>
<p>then to convert files</p>
<blockquote><p><strong>cin@nexus:~$</strong> <em>nrg2iso</em> <span style="color: #cc99ff;">here_nrg_name.nrg</span> <span style="color: #999999;">here_new_iso_name.iso</span></p></blockquote>
<p>that&#8217;s all you need to do..</p>
<p>now you can burn iso file with any CD/DVD/Blu-RAy Writer..</p>
<p>How a good one..</p>
]]></content:encoded>
			<wfw:commentRss>http://samet.kilictas.com/how-to-convert-nrg-files-to-iso-format/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntuda 5+1 ses kartı nasıl çalıştırılır?</title>
		<link>http://samet.kilictas.com/ubuntuda-51-ses-karti-nasil-calistirilir/</link>
		<comments>http://samet.kilictas.com/ubuntuda-51-ses-karti-nasil-calistirilir/#comments</comments>
		<pubDate>Sun, 18 May 2008 18:39:43 +0000</pubDate>
		<dc:creator>Samet Kilictas</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[5+1]]></category>
		<category><![CDATA[6 channel]]></category>
		<category><![CDATA[Creative]]></category>
		<category><![CDATA[gedit]]></category>
		<category><![CDATA[ses]]></category>
		<category><![CDATA[sound]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://samet.kilictas.com/?p=21</guid>
		<description><![CDATA[Sistemimde şu an Ubuntu hardy 8.04 kurulu. lspci -v komutu ile listelediğimde ses kartımın özellikleri şu şekilde 02:09.0 Multimedia audio controller: Creative Labs SB Audigy LS Subsystem: Creative Labs SB0410 SBLive! 24-bit Flags: bus master, medium devsel, latency 64, IRQ 21 I/O ports at df80 [size=32] Capabilities: &#60;access denied&#62; elimde 5+1 destekleyen bir ses kartı [...]]]></description>
			<content:encoded><![CDATA[<p>Sistemimde şu an Ubuntu hardy 8.04 kurulu.</p>
<blockquote><p><strong>lspci -v</strong></p></blockquote>
<p>komutu ile listelediğimde ses kartımın özellikleri şu şekilde</p>
<blockquote><p><strong> 02:09.0 Multimedia audio controller: Creative Labs SB Audigy LS<br />
Subsystem: Creative Labs SB0410 SBLive! 24-bit<br />
Flags: bus master, medium devsel, latency 64, IRQ 21<br />
I/O ports at df80 [size=32]<br />
Capabilities: &lt;access denied&gt;</strong></p></blockquote>
<p>elimde 5+1 destekleyen bir ses kartı ve ses sistemi olmasına rağmen tüm kanallardan ses alamıyorum.??</p>
<p>Yapmam gereken şu;</p>
<p>sudo cp .asoundrc .asoundrc.backup</p>
<p>sudo gedit .asoundrc</p>
<p>Komutlarını girerek sistemimdeki .asoundrc dosyasını gedit uygulamasıyla açıyorum. Ses kartım ile ilgili ayarlar bu dosyada tutuluyor. Yeni kurulan sistemlerde bu dosya olmayabilir çünkü sistem dosyaya ihtiyaç duymadan öntanımlı olarak çalışıyor. Biz şimdi bu dosyaya gerekli ayarları gireceğiz ve sistemden tam performans (ses tarafında) almaya çalışıcağız.</p>
<p>Bu arada .asoundrc dosyası <em>/home/kullanıcıadı/.asoundrc</em> konumunda bulunmalıdır. Zaten yukarıda verdiğim komut işlem yaptığınızda dosya otomatik olarak bu konuma kaydedilecektir.</p>
<p><span id="more-21"></span></p>
<p>Evet, gedit ile boş bir metin belgesi açtık ve bu belgenin içine gerekli değerleri şu şekilde tanımlıyoruz.</p>
<blockquote><p><strong>##################################################  #######<br />
#This is the standard setting (see: &#8220;!default&#8221;)<br />
#This profile, the default loaded, upmixes stereo sound to 5.1.</strong></p>
<p><strong>pcm.!default {<br />
type plug<br />
slave.pcm &#8220;surround51&#8243;<br />
slave.channels 6<br />
route_policy duplicate<br />
}</strong></p></blockquote>
<p>Dikkat etmeniz gereken nokta, eğer sisteminizde bu dosya ile daha önceden uğraşmışsanız (ki ses olayını ararken illaki kurcalamışsınızdır.) bu değerleri girerken içerisindeki diğer tüm değerleri silin daha sonra benim verdiğim değerleri girin.</p>
<p>Burada yaptığımız işlem aslında tam bir surround performansı degil yanlızca tüm kanallerın upmix yöntemiyle mixlenip kullanılabilmesi ve daha iyi ses alınabilmesidir.</p>
<p>Ses sisteminizi test etmek için;</p>
<blockquote><p>speaker-test -Dplug:surround51 -c6 -twav</p></blockquote>
<p>Komutunu kullanabilirsiniz. Keyifli Müzikler!!</p>
]]></content:encoded>
			<wfw:commentRss>http://samet.kilictas.com/ubuntuda-51-ses-karti-nasil-calistirilir/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu Hardy Otomatik NTFS Mount Nasıl Yapılır?</title>
		<link>http://samet.kilictas.com/ubuntu-hardy-otomatik-ntfs-mount-nasil-yapilir/</link>
		<comments>http://samet.kilictas.com/ubuntu-hardy-otomatik-ntfs-mount-nasil-yapilir/#comments</comments>
		<pubDate>Sat, 17 May 2008 06:53:27 +0000</pubDate>
		<dc:creator>Samet Kilictas</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Hardy]]></category>
		<category><![CDATA[NTFS]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://samet.kilictas.com/?p=20</guid>
		<description><![CDATA[Ubuntu hardy de default olarak gelen otomatik olarak mount etmeme özelliğinde sıkıldıysanız size benim gibi. Küçük bir paket yükleyerek bu sorunu kolayca çözebilirsiniz. Aslında öncelikle öncelikle ntfs-3g isimli pakete sahip olmamız gerek. Bu paket ubuntu kullanıcıları için 7.10 versiyonundan bu yana default olarak geliyor. Asıl paketimiz olan &#8220;ntfs-config&#8221; paketini yükleyelim. sudo aptitude install ntfs-config Bu [...]]]></description>
			<content:encoded><![CDATA[<p>Ubuntu hardy de default olarak gelen otomatik olarak mount etmeme özelliğinde sıkıldıysanız size benim gibi. Küçük bir paket yükleyerek bu sorunu kolayca çözebilirsiniz. Aslında öncelikle öncelikle ntfs-3g isimli pakete sahip olmamız gerek. Bu paket ubuntu kullanıcıları için 7.10 versiyonundan bu yana default olarak geliyor.</p>
<p>Asıl paketimiz olan &#8220;ntfs-config&#8221; paketini yükleyelim.</p>
<blockquote><p>sudo aptitude install ntfs-config</p></blockquote>
<p>Bu arada bu işleme başlamadan önce harddisklerinizin mount edilmemiş olmasına dikkat edin.</p>
<p>Yükleme işlemi tamamlandıktan sonra  Applications-&gt;System Tools-&gt;NTFS Configuration Tool  Yolunu izleyerek uygulamayı çalıştırın ve gerekli hdd leri belirtin hepsi bu.</p>
<p>kolay gelsin</p>
]]></content:encoded>
			<wfw:commentRss>http://samet.kilictas.com/ubuntu-hardy-otomatik-ntfs-mount-nasil-yapilir/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
