<?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>PersonalBlog</title>
	<atom:link href="http://arimita.web.id/feed/" rel="self" type="application/rss+xml" />
	<link>http://arimita.web.id</link>
	<description>Just another personal weblog</description>
	<lastBuildDate>Mon, 19 Jul 2010 08:31:10 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>CodeIgniter 2.0</title>
		<link>http://arimita.web.id/2010/07/codeigniter-2-0/</link>
		<comments>http://arimita.web.id/2010/07/codeigniter-2-0/#comments</comments>
		<pubDate>Mon, 19 Jul 2010 08:31:10 +0000</pubDate>
		<dc:creator>mythworks</dc:creator>
				<category><![CDATA[Code Igniter]]></category>
		<category><![CDATA[Class]]></category>
		<category><![CDATA[codeigniter]]></category>
		<category><![CDATA[CodeIgniter 2.0]]></category>
		<category><![CDATA[Core]]></category>
		<category><![CDATA[Ellislab]]></category>

		<guid isPermaLink="false">http://arimita.web.id/?p=250</guid>
		<description><![CDATA[CodeIgniter 2.0 is a new version after CodeIgniter 1.7.2. You can not update as simple as version before like from 1.7.1 to 1.7.2, using replace files and directories in ‘system’ folder. As of CodeIgniter 2.0, Scaffolding and Plugins have been removed. But developers are encouraged to refactor existing plugins as helpers or libraries. 
There is [...]]]></description>
			<content:encoded><![CDATA[<p>CodeIgniter 2.0 is a new version after CodeIgniter 1.7.2. You can not update as simple as version before like from 1.7.1 to 1.7.2, using replace files and directories in ‘system’ folder. As of CodeIgniter 2.0, Scaffolding and Plugins have been removed. But developers are encouraged to refactor existing plugins as helpers or libraries. </p>
<p>There is a new feature of Loader Class in this version. That is Application &#8216;Package&#8217; which allows for the easy distribution of complete sets of resource in a single directory complete with its own libraries, models, helpers, config and language files. It is recommended that these packages be placed in the application/third_party folder. Lets see a sample map of an package directory:<br />
Sample Package named &#8216;Left Bar&#8217; on a Directory Map:</p>
<pre class="brush: php;">
/application/third_party/foo_bar

config/
helpers/
language/
libraries/
models/
</pre>
<p>It has it’s own config files, helpers, language files, libraries, and models. How to use this resource in controllers, you can read fully in CodeIgniter 2.0 user_guide/libraries/loader.html.</p>
<p>Core System Classes<br />
Every time CodeIgniter runs there are several base classes that are initialized automatically. It is possible to swap any of the core system classes with your own version. To use your own class please place on local application/core/your_class.php. In 1.7.2 or before you should place on application/libraries/your_class.php.</p>
<p>To download and see the fully significant about CodeIgniter 2.0 please visit <a href="http://bitbucket.org/ellislab/codeigniter/wiki/What%27s%20New#">ellislab</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://arimita.web.id/2010/07/codeigniter-2-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TRIGGER</title>
		<link>http://arimita.web.id/2010/06/trigger/</link>
		<comments>http://arimita.web.id/2010/06/trigger/#comments</comments>
		<pubDate>Fri, 18 Jun 2010 03:04:05 +0000</pubDate>
		<dc:creator>mythworks</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[delete trigger]]></category>
		<category><![CDATA[insert trigger]]></category>
		<category><![CDATA[privilege]]></category>
		<category><![CDATA[trigger]]></category>
		<category><![CDATA[trigger mysql]]></category>
		<category><![CDATA[update trigger]]></category>

		<guid isPermaLink="false">http://arimita.web.id/?p=242</guid>
		<description><![CDATA[Trigger means procedural code that is automatically executed in response to certain events on a particular table or view in a database. Create trigger requires the trigger privilege for the table associated with the trigger. 
TRIGGER syntax:
CREATE TRIGGER name
[BEFORE &#124; AFTER] [INSERT &#124; UPDATE &#124; DELETE]
ON tablename
FOR EACH ROW statement
BEFORE or AFTER on trigger is [...]]]></description>
			<content:encoded><![CDATA[<p>Trigger means procedural code that is automatically executed in response to certain events on a particular table or view in a database. Create trigger requires the trigger privilege for the table associated with the trigger. </p>
<p><strong>TRIGGER syntax:</strong></p>
<p>CREATE TRIGGER name<br />
[BEFORE | AFTER] [INSERT | UPDATE | DELETE]<br />
ON tablename<br />
FOR EACH ROW statement</p>
<p>BEFORE or AFTER on trigger is action time to indicate when trigger activities statement activated.<br />
INSERT or UPDATE or DELETE is event indicates the kind of statement that activates the trigger.</p>
<p>How to drop the TRIGGER ?, use DROP TRIGGER order following with table name and trigger name. And the syntax is like this:</p>
<p><strong>DROP TRIGGER tablename.triggername;</strong></p>
<p>Here they are the example case use trigger:<br />
<strong>For inserting prosess:</strong></p>
<pre class="brush: sql;">
CREATE trigger tr_input before INSERT ON user
FOR each
ROW
BEGIN
INSERT INTO master_user( id, name, pass )
VALUES (
NEW.id, NEW.name, NEW.pass
);
END$$
</pre>
<p><strong>For updating process:</strong></p>
<pre class="brush: sql;">
CREATE trigger tr_update before UPDATE ON user
FOR each
ROW
BEGIN
UPDATE master_user set id=new.id, name=new.name, pass=new.pass
where id=old.id;
END$$
</pre>
<p><strong>For deleting process:</strong></p>
<pre class="brush: sql;">
CREATE trigger tr_delete before DELETE ON user
FOR each
ROW
BEGIN
DELETE from master_user where id=old.id;
END$$
</pre>
<p>The SELECT privilege for the subject table if references to table colums occur via OLD.col_name or NEW.col_name<br />
The UPDATE privilege for the subject table columns are targets of SET NEW.col_name=value assignment.</p>
<p>Note: in this case I use two table user and master_user. And the scenario is when I input some data or something else into user which automatically updated into master_user.</p>
]]></content:encoded>
			<wfw:commentRss>http://arimita.web.id/2010/06/trigger/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Connecting Multiple Database</title>
		<link>http://arimita.web.id/2010/06/connecting-multiple-database/</link>
		<comments>http://arimita.web.id/2010/06/connecting-multiple-database/#comments</comments>
		<pubDate>Fri, 18 Jun 2010 02:57:22 +0000</pubDate>
		<dc:creator>mythworks</dc:creator>
				<category><![CDATA[Code Igniter]]></category>
		<category><![CDATA[codeigniter]]></category>
		<category><![CDATA[configuration database]]></category>
		<category><![CDATA[connecting database]]></category>
		<category><![CDATA[multiple database]]></category>
		<category><![CDATA[secondary database]]></category>

		<guid isPermaLink="false">http://arimita.web.id/?p=240</guid>
		<description><![CDATA[If you want to know how to connect to multiple databases in Codeigniter, I’m going to show you.
Step 1:
Open file database.php in the application/config folder.
Step 2:
Find database settings and make a secondary database details in this file. For example:

$db['default']['hostname'] = &#34;localhost&#34;;
$db['default']['username'] = &#34;root&#34;;
$db['default']['password'] = &#34;&#34;;
$db['default']['database'] = &#34;blog&#34;;
$db['default']['dbdriver'] = &#34;mysql&#34;;
$db['default']['dbprefix'] = &#34;&#34;;
$db['default']['pconnect'] = TRUE;
$db['default']['db_debug'] = TRUE;
$db['default']['cache_on'] [...]]]></description>
			<content:encoded><![CDATA[<p>If you want to know how to connect to multiple databases in Codeigniter, I’m going to show you.<br />
Step 1:<br />
Open file database.php in the application/config folder.<br />
Step 2:<br />
Find database settings and make a secondary database details in this file. For example:</p>
<pre class="brush: php;">
$db['default']['hostname'] = &quot;localhost&quot;;
$db['default']['username'] = &quot;root&quot;;
$db['default']['password'] = &quot;&quot;;
$db['default']['database'] = &quot;blog&quot;;
$db['default']['dbdriver'] = &quot;mysql&quot;;
$db['default']['dbprefix'] = &quot;&quot;;
$db['default']['pconnect'] = TRUE;
$db['default']['db_debug'] = TRUE;
$db['default']['cache_on'] = FALSE;
$db['default']['cachedir'] = &quot;&quot;;
$db['default']['char_set'] = &quot;utf8&quot;;
$db['default']['dbcollat'] = &quot;utf8_general_ci&quot;;

//And copy and paste listing above like this:

$db['sec_db']['hostname'] = &quot;localhost&quot;;
$db['sec_db']['username'] = &quot;root&quot;;
$db['sec_db']['password'] = &quot;&quot;;
$db['sec_db']['database'] = &quot;blog&quot;;
$db['sec_db']['dbdriver'] = &quot;mysql&quot;;
$db['sec_db']['dbprefix'] = &quot;&quot;;
$db['sec_db']['pconnect'] = TRUE;
$db['sec_db']['db_debug'] = TRUE;
$db['sec_db']['cache_on'] = FALSE;
$db['sec_db']['cachedir'] = &quot;&quot;;
$db['sec_db']['char_set'] = &quot;utf8&quot;;
$db['sec_db']['dbcollat'] = &quot;utf8_general_ci&quot;;
</pre>
<p>As we can see that I have sec_db as secondary database. Don’t forget to change the Controller to load the model and  of course the Model to connect to the sec_db.</p>
]]></content:encoded>
			<wfw:commentRss>http://arimita.web.id/2010/06/connecting-multiple-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Paid to Write and Review</title>
		<link>http://arimita.web.id/2010/06/paid-to-write-and-review/</link>
		<comments>http://arimita.web.id/2010/06/paid-to-write-and-review/#comments</comments>
		<pubDate>Tue, 15 Jun 2010 08:07:11 +0000</pubDate>
		<dc:creator>mythworks</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[online review]]></category>
		<category><![CDATA[online writer]]></category>
		<category><![CDATA[paid ti write]]></category>
		<category><![CDATA[paid to review]]></category>

		<guid isPermaLink="false">http://arimita.web.id/?p=236</guid>
		<description><![CDATA[If you have much time, love to write and to review. And of course you get buck from this activities on the Internet. Here they are list of website which serves leeway.

http://www.about.com/
http://www.bloggerwave.com/
http://www.blogitive.com/
http://www.blogtoprofit.com/
http://buyblogreviews.com/
http://creative-weblogging.com/
http://digitaljournal.com/
https://payperpost.com/
http://www.reviewme.com/
http://451press.com/

Good luck.
]]></description>
			<content:encoded><![CDATA[<p>If you have much time, love to write and to review. And of course you get buck from this activities on the Internet. Here they are list of website which serves leeway.</p>
<ol>
<li>http://www.about.com/</li>
<li>http://www.bloggerwave.com/</li>
<li>http://www.blogitive.com/</li>
<li>http://www.blogtoprofit.com/</li>
<li>http://buyblogreviews.com/</li>
<li>http://creative-weblogging.com/</li>
<li>http://digitaljournal.com/</li>
<li>https://payperpost.com/</li>
<li>http://www.reviewme.com/</li>
<li>http://451press.com/</li>
</ol>
<p>Good luck.</p>
]]></content:encoded>
			<wfw:commentRss>http://arimita.web.id/2010/06/paid-to-write-and-review/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CREATE PROCEDURE and CREATE FUNCTION</title>
		<link>http://arimita.web.id/2010/06/create-procedure-and-create-function/</link>
		<comments>http://arimita.web.id/2010/06/create-procedure-and-create-function/#comments</comments>
		<pubDate>Tue, 15 Jun 2010 07:13:59 +0000</pubDate>
		<dc:creator>mythworks</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[create function.]]></category>
		<category><![CDATA[create procedure]]></category>
		<category><![CDATA[function syntax]]></category>
		<category><![CDATA[procedur syntax]]></category>

		<guid isPermaLink="false">http://arimita.web.id/?p=232</guid>
		<description><![CDATA[CREATE PROCEDURE syntax
CREATE
[DEFINER = { user &#124; CURRENT_USER }]
PROCEDURE sp_name ([proc_parameter[,...]])
[characteristic ...] routine_body
proc_parameter:
[ IN &#124; OUT &#124; INOUT ] param_name type
CREATE FUNCTION syntax
CREATE
[DEFINER = { user &#124; CURRENT_USER }]
FUNCTION sp_name ([func_parameter[,...]])
RETURNS type
[characteristic ...] routine_body
func_parameter:
param_name type
CREATE PROCEDURE and CREATE FUNCTION require the CREATE ROUTINE privilege. They might also require the SUPER privilege, depending on the DEFINER [...]]]></description>
			<content:encoded><![CDATA[<p><strong>CREATE PROCEDURE syntax</strong><br />
CREATE<br />
[DEFINER = { user | CURRENT_USER }]<br />
PROCEDURE sp_name ([proc_parameter[,...]])<br />
[characteristic ...] routine_body</p>
<p>proc_parameter:<br />
[ IN | OUT | INOUT ] param_name type</p>
<p><strong>CREATE FUNCTION syntax</strong><br />
CREATE<br />
[DEFINER = { user | CURRENT_USER }]<br />
FUNCTION sp_name ([func_parameter[,...]])<br />
RETURNS type<br />
[characteristic ...] routine_body</p>
<p>func_parameter:<br />
param_name type</p>
<p>CREATE PROCEDURE and CREATE FUNCTION require the CREATE ROUTINE privilege. They might also require the SUPER privilege, depending on the DEFINER value.</p>
<p><strong>DROP PROCEDURE and DROP FUNCTION Syntax:</strong> this statement is used to drop a stored procedure or function.</p>
<p>DROP {PROCEDURE | FUNCTION} [IF EXISTS] procedure_or_function_name</p>
<p>Specifying a parameter as IN, OUT, or INOUT is valid only for a PROCEDURE. For a FUNCTION, parameters are always regarded as IN parameters. An IN parameter passes a value into a procedure. An OUT parameter passes a value from the procedure back to the caller. Its initial value is NULL within the procedure, and its value is visible to the caller when the procedure returns. An INOUT parameter is initialized by the caller, can be modified by the procedure, and any change made by the procedure is visible to the caller when the procedure returns.<br />
Lets see a simple stored procedure using OUT parameter:</p>
<pre class="brush: sql;">
CREATE PROCEDURE jumlah( out juml int ) BEGIN SELECT count( * )
INTO juml
FROM FUNCTIONS;
END
</pre>
<p>Note: The example uses the mysql client delimiter command to change the statement delimiter from ; to // while the procedure is being defined. This allows the ; delimiter used in the procedure body to be passed through to the server rather than being interpreted by mysql itself.<br />
And now how to CALL the procedure? Lets see this query:</p>
<pre class="brush: sql;">
CALL jumlah(@a);
SELECT @a ;
</pre>
<p>If you want to see the that procedure is exists on your server, you can try to Export as a sql and check the structure especially Add CREATE PROCEDURE / FUNCTION. On the bottom you will see the procedure you have been created:<br />
&#8211;<br />
&#8211; Procedures<br />
&#8211;<br />
DELIMITER $$<br />
&#8211;<br />
CREATE DEFINER=`root`@`localhost` PROCEDURE `jumlah`( out juml int )<br />
BEGIN SELECT count( * )<br />
INTO juml<br />
FROM FUNCTIONS;<br />
END$$</p>
<p>&#8211;<br />
DELIMITER ;<br />
&#8211;</p>
<p>And then the syntax to drop the procedure if you want to trash it:<br />
DROP PROCEDURE IF EXISTS jumlah</p>
<p>Lets see a simple function:</p>
<pre class="brush: sql;">
CREATE FUNCTION fungsi(
aCHAR( 10 )
) RETURNS CHAR( 20 ) DETERMINISTIC RETURN CONCAT( 'Fungsi, ', a, '.' ) ;
</pre>
<p>Then try to execute that query like this to see the result:</p>
<pre class="brush: sql;">
SELECT fungsi('test only');
</pre>
<p>Like procedure above you can see the function by Export as sql and the bottom look view:</p>
<p>CREATE DEFINER=`root`@`localhost` FUNCTION `fungsi`(a CHAR(10)) RETURNS char(20) CHARSET latin1<br />
DETERMINISTIC<br />
RETURN CONCAT(&#8216;Fungsi, &#8216;,a,&#8217;.')</p>
<p>And then the syntax to drop the procedure if you want to trash it:</p>
<pre class="brush: sql;">
DROP FUNCTION IF EXISTS fungsi
</pre>
<p>Well improve your self with aother case and develop yours.</p>
]]></content:encoded>
			<wfw:commentRss>http://arimita.web.id/2010/06/create-procedure-and-create-function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Regular Expressions</title>
		<link>http://arimita.web.id/2010/06/regular-expressions/</link>
		<comments>http://arimita.web.id/2010/06/regular-expressions/#comments</comments>
		<pubDate>Tue, 15 Jun 2010 06:43:55 +0000</pubDate>
		<dc:creator>mythworks</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[regexp]]></category>
		<category><![CDATA[regular expression]]></category>

		<guid isPermaLink="false">http://arimita.web.id/?p=228</guid>
		<description><![CDATA[A regular expression describes a set of strings. A regular expressions for the REGEXP operator may use any of the following special characters and constructs:

.     match any character (including carriage return and new line)

SELECT function_name
FROM `functions`
WHERE function_name
REGEXP 'anchor..'


^     match the beginning of a string

SELECT function_name
FROM `functions`
WHERE function_name
REGEXP [...]]]></description>
			<content:encoded><![CDATA[<p>A regular expression describes a set of strings. A regular expressions for the REGEXP operator may use any of the following special characters and constructs:</p>
<ul>
<li><strong>.</strong>     match any character (including carriage return and new line)
<pre class="brush: sql;">
SELECT function_name
FROM `functions`
WHERE function_name
REGEXP 'anchor..'
</pre>
</li>
<li><strong>^</strong>     match the beginning of a string
<pre class="brush: sql;">
SELECT function_name
FROM `functions`
WHERE function_name
REGEXP '^a';
</pre>
</li>
<li><strong>$</strong>	    match the end of a string
<pre class="brush: sql;">
SELECT function_name
FROM `functions`
WHERE function_description
REGEXP 't$';
</pre>
</li>
<li><strong>[characters]</strong>	    match any characters or using range
<pre class="brush: sql;">
SELECT function_name
FROM `functions`
WHERE function_name
REGEXP '^[a-d]';
</pre>
</li>
</ul>
<p>Still using function table, let’s see the other developing using regex.<br />
To view function_name which has 4 characters:</p>
<pre class="brush: sql;">
SELECT function_name
FROM `functions`
WHERE function_name
REGEXP '^....$';
</pre>
<p>Or we can write like this:</p>
<pre class="brush: sql;">
SELECT function_name
FROM `functions`
WHERE function_name
REGEXP '^.{4}$';
</pre>
<p>Hmm I think is enough for introduction of REGEXP <img src='http://arimita.web.id/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . </p>
]]></content:encoded>
			<wfw:commentRss>http://arimita.web.id/2010/06/regular-expressions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LIKE and NOT LIKE</title>
		<link>http://arimita.web.id/2010/06/like-and-not-like/</link>
		<comments>http://arimita.web.id/2010/06/like-and-not-like/#comments</comments>
		<pubDate>Mon, 14 Jun 2010 13:57:24 +0000</pubDate>
		<dc:creator>mythworks</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[like]]></category>
		<category><![CDATA[like and not like]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[not like]]></category>
		<category><![CDATA[select]]></category>

		<guid isPermaLink="false">http://arimita.web.id/?p=224</guid>
		<description><![CDATA[The like and not like have two search symbols. The underscore _ character that looks for one character and the percentage % character that looks for zero or more characters. I use function  table which has function_name,  function_name and function_description fields. Lets see the example:

SELECT *
FROM `functions`
WHERE function_name LIKE 'a%'
LIMIT 0 , 30

Above query will [...]]]></description>
			<content:encoded><![CDATA[<p>The like and not like have two search symbols. The underscore _ character that looks for one character and the percentage % character that looks for zero or more characters. I use function  table which has function_name,  function_name and function_description fields. Lets see the example:</p>
<pre class="brush: sql;">
SELECT *
FROM `functions`
WHERE function_name LIKE 'a%'
LIMIT 0 , 30
</pre>
<p>Above query will only pick out result that provide a TRUE result according to the WHERE equation. We can see that equation will equal the LIKE value plus some possible extra characters afterwards.</p>
<p>The LIKE search is not case sensitive, so it will accept anything starting with ‘a’ as well.</p>
<p>So how LIKE search can make a different lowercase or uppercase letters? by adding BINARY word after LIKE.</p>
<pre class="brush: sql;">
SELECT *
FROM `functions`
WHERE function_name LIKE BINARY &quot;a%&quot;
LIMIT 0 , 30;
</pre>
<p>And the change the query like below to see the different:</p>
<pre class="brush: sql;">
SELECT *
FROM `functions`
WHERE function_name LIKE BINARY &quot;A%&quot;
LIMIT 0 , 30;
</pre>
<p>Queries using the LIKE or NOT LIKE parameters may be a bit slower than a normal query search considering they are a broader value and do not take advantage of any indexing.</p>
<p>Note: If you want to have an underscore or percentage character actually be part of the search value, put an escape slash \ in front of the character.</p>
<p>The underscore wildcard can be used a number of times to find a specific number of characters. Example, this would be used in an equation to return a value of &#8216;Stan&#8217; plus 3 characters.</p>
<pre class="brush: sql;">
SELECT *
FROM `functions`
WHERE function_name LIKE BINARY &quot;mdat___&quot;
LIMIT 0 , 30;
</pre>
<p>The underscore and percentage characters (also known as wildcard) can be used in front, at the end, or both ends of a value.</p>
]]></content:encoded>
			<wfw:commentRss>http://arimita.web.id/2010/06/like-and-not-like/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Operator Precedence</title>
		<link>http://arimita.web.id/2010/06/operator-precedence/</link>
		<comments>http://arimita.web.id/2010/06/operator-precedence/#comments</comments>
		<pubDate>Mon, 14 Jun 2010 13:41:53 +0000</pubDate>
		<dc:creator>mythworks</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[operator precedence]]></category>

		<guid isPermaLink="false">http://arimita.web.id/?p=218</guid>
		<description><![CDATA[The precedence of operators determines the order of evaluation. To override this order and group terms explicity, use parentheses. Lets see the example below:

Select 6+2-4*1, (6+2-4)*1;

Operator are shown bellow from lowest to the highest precedence. Operators shown together on a line have the same precedence. Lets take a look:
:=
&#124;&#124;, OR, XOR
&#38;&#38;, AND
NOT
BETWEEN, CASE, WHEN, THEN, [...]]]></description>
			<content:encoded><![CDATA[<p>The precedence of operators determines the order of evaluation. To override this order and group terms explicity, use parentheses. Lets see the example below:</p>
<pre class="brush: sql;">
Select 6+2-4*1, (6+2-4)*1;
</pre>
<p>Operator are shown bellow from lowest to the highest precedence. Operators shown together on a line have the same precedence. Lets take a look:</p>
<p>:=<br />
||, OR, XOR<br />
&amp;&amp;, AND<br />
NOT<br />
BETWEEN, CASE, WHEN, THEN, ELSE<br />
=, &lt;=&gt;, &gt;=, &gt;, &lt;=, &lt;, &lt;&gt;, !=, IS, LIKE, REGEXP, IN<br />
|<br />
&amp;<br />
&lt;&lt;, &gt;&gt;<br />
-, +<br />
*, /, DIV, %, MOD<br />
^<br />
- (unary minus), ~ (unary bit inversion)<br />
!<br />
BINARY, COLLATE</p>
<p>Note: If the HIGH_NOT_PRECEDENCE SQL mode is enabled, the precedence of NOT is the same as that of the ! operator.</p>
]]></content:encoded>
			<wfw:commentRss>http://arimita.web.id/2010/06/operator-precedence/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Orang bodoh vs orang pinter by Mario Teguh</title>
		<link>http://arimita.web.id/2010/06/orang-bodoh-vs-orang-pinter-by-mario-teguh/</link>
		<comments>http://arimita.web.id/2010/06/orang-bodoh-vs-orang-pinter-by-mario-teguh/#comments</comments>
		<pubDate>Sun, 06 Jun 2010 02:44:22 +0000</pubDate>
		<dc:creator>mythworks</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[mario teguh]]></category>
		<category><![CDATA[orang bodoh]]></category>
		<category><![CDATA[orang pintar]]></category>
		<category><![CDATA[perbedaan orang bodoh dan orang pintar]]></category>

		<guid isPermaLink="false">http://arimita.web.id/?p=216</guid>
		<description><![CDATA[Orang bodoh sulit dapat kerja, akhirnya berbisnis&#8230;
Agar bisnisnya berhasil, tentu dia harus rekrut orang pintar.
Walhasil boss-nya orang pintar adalah orang bodoh.
Orang bodoh sering melakukan kesalahan,
maka dia rekrut orang pintar yang tidak pernah salah untuk memperbaiki yang salah.
Walhasil orang bodoh memerintahkan orang pintar untuk keperluan orang bodoh.
Orang pintar belajar untuk mendapatkan ijazah untuk selanjutnya mencari kerja.
Orang [...]]]></description>
			<content:encoded><![CDATA[<p>Orang bodoh sulit dapat kerja, akhirnya berbisnis&#8230;<br />
Agar bisnisnya berhasil, tentu dia harus rekrut orang pintar.<br />
Walhasil boss-nya orang pintar adalah orang bodoh.</p>
<p>Orang bodoh sering melakukan kesalahan,<br />
maka dia rekrut orang pintar yang tidak pernah salah untuk memperbaiki yang salah.<br />
Walhasil orang bodoh memerintahkan orang pintar untuk keperluan orang bodoh.</p>
<p>Orang pintar belajar untuk mendapatkan ijazah untuk selanjutnya mencari kerja.<br />
Orang bodoh berpikir secepatnya mendapatkan uang untuk membayari proposal yang diajukan orang pintar.</p>
<p>Orang bodoh tidak bisa membuat teks pidato, maka dia menyuruh orang pintar untuk membuatnya.</p>
<p>Orang bodoh kayaknya susah untuk lulus sekolah hukum (SH).<br />
oleh karena itu orang bodoh memerintahkan orang pintar untuk membuat undang-undangnya orang bodoh.</p>
<p>Orang bodoh biasanya jago cuap-cuap jual omongan,<br />
sementara itu orang pintar percaya.<br />
Tapi selanjutnya orang pintar menyesal karena telah mempercayai orang bodoh.<br />
Tapi toh saat itu orang bodoh sudah ada di atas.</p>
<p>Orang bodoh berpikir pendek untuk memutuskan sesuatu yang dipikirkan panjang-panjang oleh orang pintar.<br />
Walhasil orang orang pintar menjadi staf-nya orang bodoh.</p>
<p>Saat bisnis orang bodoh mengalami kelesuan, dia PHK orang-orang pintar yang berkerja.<br />
Tapi orang-orang pintar DEMO.<br />
Walhasil orang-orang pintar &#8216; meratap-ratap &#8216; kepada orang bodoh agar tetap diberikan pekerjaan.</p>
<p>Tapi saat bisnis orang bodoh maju,<br />
orang pinter akan menghabiskan waktu untuk bekerja keras dengan hati senang,<br />
sementara orang bodoh menghabiskan waktu untuk bersenang-senang dengan keluarganya.</p>
<p>Mata orang bodoh selalu mencari apa yang bisa di jadikan duit.<br />
Mata orang pintar selalu mencari kolom lowongan perkerjaan.</p>
<p>Bill gate (Microsoft), Dell, Hendri (Ford), Thomas Alfa Edison, Tommy Suharto, Liem Sioe Liong (BCA group).<br />
Adalah contoh orang-orang yang tidak pernah dapat S1), tapi kemudian menjadi kaya.<br />
Ribuan orang-orang pintar bekerja untuk mereka.<br />
Dan puluhan ribu jiwa keluarga orang pintar bergantung pada orang bodoh..</p>
<p>PERTA N YAA N :<br />
Mendingan jadi orang pinter atau orang bodoh??<br />
Pinteran mana antara orang pinter atau orang bodoh ???<br />
Mana yang lebih mulia antara orang pinter atau orang bodoh??<br />
Mana yang lebih susah, orang pinter atau orang bodoh??</p>
<p>KESIMPULA N :<br />
Jangan lama-lama jadi orang pinter,<br />
lama-lama tidak sadar bahwa dirinya telah dibodohi oleh orang bodoh.</p>
<p>Jadilah orang bodoh yang pinter dari pada jadi orang pinter yang bodoh.<br />
Kata kunci nya adalah &#8216; resiko &#8216; dan &#8216; berusaha &#8216; ,<br />
karena orang bodoh perpikir pendek maka dia bilang resikonya kecil,<br />
selanjutnya dia berusaha agar resiko betul-betul kecil.<br />
Orang pinter berpikir panjang maka dia bilang resikonya besar untuk<br />
selanjutnya dia tidak akan berusaha mengambil resiko tersebut.<br />
Dan mengabdi pada orang bodoh&#8230;</p>
<p>Diamanakah posisi anda saat ini&#8230;<br />
Berhentilah meratapi keadaan anda yang sekarang&#8230;</p>
<p>Ini hanya sebuah Refleksi dari semua Retorika dan Dinamika kehidupan.<br />
Semua Pilihan dan Keputusan ada ditangan anda untuk merubahnya,<br />
Lalu perhatikan apa yang terjadi&#8230;</p>
<p>Stay Super&#8230;..</p>
<p>Salam,<br />
Mario Teguh&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://arimita.web.id/2010/06/orang-bodoh-vs-orang-pinter-by-mario-teguh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Working with Files</title>
		<link>http://arimita.web.id/2010/06/working-with-files/</link>
		<comments>http://arimita.web.id/2010/06/working-with-files/#comments</comments>
		<pubDate>Sun, 06 Jun 2010 02:29:33 +0000</pubDate>
		<dc:creator>mythworks</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[append]]></category>
		<category><![CDATA[fclose]]></category>
		<category><![CDATA[feof]]></category>
		<category><![CDATA[fgetc]]></category>
		<category><![CDATA[fgets]]></category>
		<category><![CDATA[file PHP]]></category>
		<category><![CDATA[fileatime]]></category>
		<category><![CDATA[filesize]]></category>
		<category><![CDATA[file_get_contents]]></category>
		<category><![CDATA[fopen]]></category>
		<category><![CDATA[fputs]]></category>
		<category><![CDATA[fread]]></category>
		<category><![CDATA[lock_ex]]></category>
		<category><![CDATA[lock_sh]]></category>
		<category><![CDATA[lock_un]]></category>
		<category><![CDATA[read]]></category>
		<category><![CDATA[write]]></category>

		<guid isPermaLink="false">http://arimita.web.id/?p=210</guid>
		<description><![CDATA[We can do things for files like reading, writing or appending. Before we start with files, we must open it first for reading, writing or both. PHP provides the fopen() function for doing so. fopen() requires a string that contains the file path and the mode like read (r), write (w) and append (a). Let’s [...]]]></description>
			<content:encoded><![CDATA[<p>We can do things for files like reading, writing or appending. Before we start with files, we must open it first for reading, writing or both. PHP provides the fopen() function for doing so. fopen() requires a string that contains the file path and the mode like read (r), write (w) and append (a). Let’s see the example:</p>
<pre class="brush: php;">
&lt;?
$file='D:\xampp\htdocs\exprogram\filetxt\readme.txt';

	if (file_exists($file)){
		$of = fopen ($file, 'r');
		$read = fread ($of, filesize($file));
		echo $read.', panjang= ' .strlen($read);
		fclose($of);
	}
	else{
		echo 'The file is not exist';
	}
//eof
</pre>
<p>Function file_exists() is used for the existence of a file. If the file is found file_exists() return true, otherwise it returns false. Function fread() is for reading arbitrary amounts of data from a file through accept a file resource as an argument, as well as the number of bytes you want to read. Try to change line 6 above with $read = fread ($of, 10); then see the result. Assuming that all is well and you go on to work with your open file, you should remember to close it when you finish using fclose().</p>
<p><strong>Checking the status of a file:</strong><br />
After checking that a file exists, you can find out some things that you can do with it. PHP can help you typically whether you can read, write to or execute this file.<br />
is_readable() tells you whether you can read a file.<br />
is_writable() tells you whether you can write to a file.<br />
is_executable() tells you whether you can run a file, relying on either the file&#8217;s permissions or its extension depending on your platform.<br />
All above function requires the file path and returns a Boolean value.</p>
<p><strong>Getting date information about a file:</strong><br />
This function is used to find out when a file was last written to or accessed.<br />
fileatime() to find out when a file was last accessed.<br />
filemtime() to discover the modification date of a file.<br />
filectime() to test the change time of a document.<br />
Lets see the example:</p>
<pre class="brush: php;">
&lt;?
$file='D:\xampp\htdocs\exprogram\filetxt\readme.txt';
	$ftime = fileatime($file);
	echo $file. ‘ was last accessed on &quot;;
	echo date(‘D d M Y g:i A’, $ftime);
</pre>
<p><strong>Reading lines from a file:</strong><br />
To read a line from an open file you can use fgets(), which requires the file resource returned from fopen() as an argument like this:</p>
<pre class="brush: php;">
&lt;?
$file='D:\xampp\htdocs\exprogram\filetxt\readme.txt';
$of = fopen ($file, 'r');
	$line = fgets ($of);
	echo $line;
	fclose($of);
</pre>
<p>Although you can read lines with fgets(), you need some way to tell when you reach the end of the file. The feof() function does this by returning true when the end of the file has been reached and false otherwise. So you have enough information to read a file line by line as shown below:</p>
<pre class="brush: php;">
&lt;?
$file='D:\xampp\htdocs\exprogram\filetxt\readme.txt';
$of = fopen ($file, 'r') or die (‘Could not open file’);
	while (!feof($of)){
		$line = fgets($of, 10);
		echo $line;
}
</pre>
<p><strong>Moving around a file:</strong><br />
Function fseek() let you decide the position manually from which the acquisition begins. fseek() enable you to change your current position within a file. It requires a file resource and an integer that represents the offset from the start of the file (in bytes) to which you want to jump. Lets see the example below:</p>
<pre class="brush: php;">
&lt;?
$file='D:\xampp\htdocs\exprogram\filetxt\readme.txt';
$of = fopen ($file, 'r') or die (‘Could not open file’);
	$fsize = filesize($file);
	$fhalf = (int)($fsize/2);
	Echo ‘Setengah file’. $fhalf;

	fseek($of, $fhalf);
	$ branch = fread($of, ($fsize - $fhalf));
	echo $branch;
</pre>
<p><strong>Reading characters from a file:</strong><br />
With use fgetc() it return only a single character from a file every time it is called. Because a character is always one byte in size, fgetc() doesn’t require a length argument. </p>
<pre class="brush: php;">
&lt;?
$file='D:\xampp\htdocs\exprogram\filetxt\readme.txt';
$of = fopen ($file, 'r') or die (‘Could not open file’);
	while (!eof($of)){
		$char = fgetc($of);
		echo $char.’&lt;br&gt;’;
}
</pre>
<p><strong>Reading entire file:</strong><br />
We can also read a file at one time use file_get_contents(). Lets take a look:</p>
<pre class="brush: php;">
&lt;?
$file='D:\xampp\htdocs\exprogram\filetxt\readme.txt';
$of = fopen ($file, 'r') or die (‘Could not open file’);
	$files = file_get_contents($file);
	echo $files;
</pre>
<p>That code will read entire file $file and saved into $files. But be careful if the size of file is very big :d.</p>
<p><strong>Writing or Appending to a file:</strong><br />
Writing occurs from the start of the file, any prior content is destroyed and replaced by the data you write. You use mode argument ‘w’ when you call fopen().</p>
<pre class="brush: php;">
&lt;?
$file='D:\xampp\htdocs\exprogram\filetxt\readme.txt';
$of= fopen($file, ‘w’) or die (‘Could not open file’);
fwrite($of,’Hello World \n’);
fclose($of);
</pre>
<p>Appending are added the writes to the existing file. But if you have nonexistent file, the file will be created first.</p>
<pre class="brush: php;">
&lt;?
$file='D:\xampp\htdocs\exprogram\filetxt\readme.txt';
$of= fopen($file,’a’) or die (‘Could not open file’);
fputs($of, ’and another thing \n’);
fclose($of);
</pre>
<p><strong>Locking files:</strong><br />
To locking files we can use flock() which locks a file to warn other processes against writing to or reading file while the current process is working with file. I mean you don’t need your file being corrupt because other user accessing files at the time. You should call flock() directly after calling fopen() and call it again to release the lock before closing the file. If the lock is not released, you will not be able to read or write to that file.</p>
<pre class="brush: php;">
&lt;?
$file='D:\xampp\htdocs\exprogram\filetxt\readme.txt';
	$of = fopen($file, ‘a’) or die (‘Could not open file’);
	flock($of, LOCK_EX); // exclusive lock
		// read or write to the file
	flock($of, LOCK_UN); // release the lock
	fclose($of);
</pre>
<p>There is another constant with type shared that is LOCK_SH. This type allows other processes to read the file but prevent writing (used when reading a file).  </p>
]]></content:encoded>
			<wfw:commentRss>http://arimita.web.id/2010/06/working-with-files/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
