d_anank

Mar 262010

this post is got from another blog. we try to use it, but we little confuse with that tutorial. so we create the better tutorial just for you. ;)

fisrt what is FCKeditor? oh you can find it here. that is WYSIWYG Text and HTML Editor for the web

and what is CodeIgniter? well you can find it here. that is PHP framework.

now how to integrate it? let’s do this:

1. copy FCKeditor to your web directory.

2. use FCKeditor as javascript plugin. see the documentation.

Mar 112010

This function is used for date validation on a string
Return of this function is boolean.
function is_date($str){
$return = (bool) preg_match("(\b([1-9]([0-9]{3}))\-(1[0-2]|0[1-9])\-(3[01]|[12][0-9]|0[1-9])\b)",$str);
if(strlen($str)==10){
return $this->is_date_time($str);
}
if($return){
$return = (bool) (strlen($str)==10);
}
return $return;
}

This function is used for time validation on a string

Jan 062010

Your application in code igniter is a PHP-Site.You can use Code Igniter to create multiple application using one core. You can create subdomain for each application (not only one domain).

But still in one model for one application. so the application has their own model. and the model can’t be used by other application. :p

Imagine if you has multiple application with the same feature and same database and the application is connected(integrated). so you create a model using copy paste? maybe it can be a problem if you forgot to copy paste.

How to use multiple application using one core and one model? so the application you has created just using one model. and you just create and edit one file. :D interesting.

Nov 072009

This is a common problem among programmers who are lazy to remember passwords and finally a reminder machine. but what if the engine suddenly broken and the reminder had no backups. hehehe …. forgotten it. right?

if you forget, reset the root password. easy right? :D
problem is how do I reset the root password?

this is the way:
1. we first used to turn off the server, the server did not mean a whole but only mysql service. hehehe …
of course, is how to turn them off from the root linux via the command:
# /etc/init.d/mysql stop

2. then create a sql script to change the password with the command
# vi /root/mysql.reset.sql
or with other commands you like such as pico or nano .

Jul 112009

this is just a tips how to change the style forbidden access page.

Screenshot-01 -Access forbidden

1st find the location where the forbidden page location/folder. you can find the location in usually location is
/usr/share/apache2/error/
if you not find that location try to find the other apache location in “/usr/share” than goto there.
if there is not found in that location. cek the apache error configuration on “/etc/apache2/errors.conf” open with your favorite editor and find the line:
Alias /error/ "/usr/share/apache2/error/"
there is the location/path of error page is “/usr/share/apache2/error/”.

Jul 062009

antiteori get video from youtube get video from youtube without software or tools
how to copy videos from youtube without using software?
that is very easy man….
NB: but here i using linux.

search video 300x53 get video from youtube without software or tools
search the video on youtube

select video 300x205 get video from youtube without software or tools
select one video you want to download.

pause video get video from youtube without software or tools
pause the video, and wait the streaming finished.

Jul 032009

antiteori dofollow comment wp 300x67 dofollow comment on wordpress blog

this is about how to dofollow comment on your wordpress blog without plugin, as manually you can dofollow your comment by editing the comment template (comments.php)

fint the script
comment_author_link();
this will display the complete link in your single page/post like
<a id="commentauthor-2306" href="http://antiteori.com" rel="external nofollow">d_anank</a>

now change that script to:

Jun 272009

there is very easy to deleting desktop icon in gnome.or disabling the desktop icon in your gnome desktop.

Press Alt + F2 and type gconf-editor,
Screenshot-Run Application
then hit enter or klik run.

Jun 242009

My Experience using OpenSUSE 11.1 i confuse how to add printer, i try to used manual or traditional method but failed. I ask my friend and he said “why not using YaST”hmmm…. and why i dont think about that! how stupid am i?

now this is the easy way to add network printer using samba (printer server is windows)

1. open yast -> printer

Screenshot-Printer Configurations - YaST

2. click “+ Add” button

Screenshot-Untitled Window-1

just click “OK”

Jun 192009

this script is using for countdown (waiting) timer.
you can use for download script, website popUp, and other think. :D

let’s check it out.

this is the container or targer for countdown script:
<div id="antiteori">
<a href="#" onclick="return false;">link for what you want to go</a>
</div>

this is the javascript function
<script>
dn4 = 5; // how long the countdown
function countdown(){
if ((0 <= 100) || (0 > 0)){
dn4--;
if(dn4 == 0){
//countdown finished
document.getElementById('antiteori').innerHTML = "<a href=\"#\" onclick=\"return false;\">" + "My Link </a>";
}
if(dn4 > 0){
document.getElementById('antiteori').innerHTML = 'Please wait &ltfont color="#FF0000"><b> ' + dn4 + '</b></font> second..';
setTimeout('countdown()',1000); //1000 is in mili seconds so it same as 1 second
}
}
}
countdown();
</script>

very easy eh?thats right!
This code is simply and easy to use,
and you can modify what you want.

thanks 4 reading…. :)