INCLUDE_DATA

d_anank

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…. :)

Jun 152009

in the linux, NTFS partition don’t mount read-write by default. so you must umount that and mounting again with read and write permmision.

using console to see your NTFS partitions using  fdisk command:
: ~> /sbin/fdisk

may you better using su(root):
# fdisk -l

look at the output of “NTFS” partition:
/dev/sdb1 * 1 1306 10490413+ 7 HPFS/NTFS

That identifies an NTFS partition on device sdb1, the first partition on the second internal drive. If there is mounted, you will see it in the result of  mount command.

Bytheway you can see a good summary of all the above information in Yast –> System –> Partitioner. ^_^!

You need applications ntfs-3g and libfuse2 (or fuse). These are usually installed by default. You can allows one-click switching on/off of read permissions for ordinary users on internal ntfs partitions using ntfs-config (optionally). if you dont install it, you can install online by goto the

Jun 132009

SQL injection is a dangerous hacking techniques. How to prevent that?

example: http://target.com/news.php?id=19
In most applications made by a beginner programmer, the code in the program are as follows news.php

<?php
require_once("connections.php");
$sql = "SELECT * FROM news WHERE id=".$_GET['id'];
$result = mysql_query($sql);
while($news = mysql_fetch_array()){
echo "<h2>".$news['title']."</h2>";
echo "Posting pada tanggal: ".$news['date_post'];
echo $news['content'];
}
?>

there is no filter in $_GET['id']. This is a very dangerous! Cmon,..lets do this.