Archive for September, 2009

Place webcam stream on your website - howto

Friday, September 25th, 2009

Masih bingung…… wakakaka

ERROR : Could not append message to INBOX.Sent.

Tuesday, September 15th, 2009

pesan tersebut muncul ketika saya mengaktifkan themes di squirremail, ketika saya kirim pesan pasti ada pesan error diatas untuk lebihh lengkap errornya adalah sebagai berikut :

ERROR : Could not append message to INBOX.Sent.
Server responded: Error in IMAP command received by server.
ERROR:
ERROR : Connection dropped by imap-server.
Query: LOGOUT

untuk solusi permasalahn di atas adalah sebagai berikut :
ganti konfigurasi di config.php parameter ini

$sent_folder                    = ''INBOX.Sent''; rubah menjadi

$sent_folder                    = '''';

Apa yang dimaksud Domain Redirect?

Friday, September 11th, 2009

Ya karena mau membenahii IT di kantor baru aq butuh redirect domain name… karena dari domain yang lama mau saya giring ke domain yang baru yang mengatasnamakan fakultas… biar fakultas juga terkenal wakakakak…. langsung aja untuk scrip untuk redirect domain sebagai berikut untuk berbagai bahasa pemograman…. tapi yang aq pakek di php sebagai berikut :

ColdFusion Redirect

<.cfheader statuscode=”301″ statustext=”Moved permanently”>
<.cfheader name=”Location” value=”http://www.new-url.com”>

PHP Redirect

<?
Header( “HTTP/1.1 301 Moved Permanently” );
Header( “Location: http://www.new-url.com” );
?>

ASP Redirect

<%@ Language=VBScript %>
<%
Response.Status=”301 Moved Permanently”
Response.AddHeader “Location”,”http://www.new-url.com/”
%>

ASP .NET Redirect

<script runat=”server”>
private void Page_Load(object sender, System.EventArgs e)
{
Response.Status = “301 Moved Permanently”;
Response.AddHeader(”Location”,”http://www.new-url.com”);
}
</script>

JSP (Java) Redirect

<%
response.setStatus(301);
response.setHeader( “Location”, “http://www.new-url.com/” );
response.setHeader( “Connection”, “close” );
%>

CGI PERL Redirect

$q = new CGI;
print $q->redirect(”http://www.new-url.com/”);

Ruby on Rails Redirect

def old_action
headers["Status"] = “301 Moved Permanently”
redirect_to “http://www.new-url.com/”
end

Redirect Old domain to New domain (htaccess redirect)

Create a .htaccess file with the below code, it will ensure that all your directories and pages of your old domain will get correctly redirected to your new domain.
The .htaccess file needs to be placed in the root directory of your old website (i.e the same directory where your index file is placed)

Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L]

Please REPLACE www.newdomain.com in the above code with your actual domain name.

In addition to the redirect I would suggest that you contact every backlinking site to modify their backlink to point to your new website.

Note* This .htaccess method of redirection works ONLY on Linux servers having the Apache Mod-Rewrite moduled enabled.

Redirect to www (htaccess redirect)

Create a .htaccess file with the below code, it will ensure that all requests coming in to domain.com will get redirected to www.domain.com
The .htaccess file needs to be placed in the root directory of your old website (i.e the same directory where your index file is placed)

Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^domain.com [nc]
rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,nc]

Please REPLACE domain.com and www.newdomain.com with your actual domain name.

Note* This .htaccess method of redirection works ONLY on Linux servers having the Apache Mod-Rewrite moduled enabled.

link : http://www.webconfs.com

Jamie”’’s PS1 collection, and how to customize your bash prompt

Friday, September 11th, 2009

Yang mau mainan shell biarr asik… ini ada darii web darii luarr untuk konfigurasi bash biar lebihhh menarik wakkakka…. mogooo di baca ni aq kopas aja maless nulisss………

The Collection

The Classic (blue):

export PS1="[u@[e[34;1m]H [e[0m]w]$ "

The Classic (green):

export PS1="[u@[e[32;1m]H [e[0m]w]$ "

The Classic (magenta):

export PS1="[u@[e[35;1m]H [e[0m]w]$ "

My old BeOS prompt:

export PS1="[e[34;40m]B[e[31;40m]e [e[0m][e[37;40m]w[e[0m]]$ "

Minimalist:

export PS1="h:w]$ "

Solaris Remix (bold white):

export PS1="[[e[28;1m]H [e[0m]w]$ "

Ubuntu Remix (green/pink):

export PS1="e[32;1m]u@[e[35;1m]H [e[0m]w]$ "

D-lux

export PS1="[�33[36m][t] [�33[1;33m]u[�33[0m]@h:[�33[36m][w]:[�33[0m] "

Prompt in the titlebar (works with rxvt & Terminal.app)

export PS1="[e]2;u@H wae[32;1m]>[e[0m] "

Approval prompt (via Slashdot comment)
(colored smileys depending on your success)

export PS1="[e[01;32m]u@h [e[01;34m]W `if [ $? = 0 ]; then echo -e ''''''''''''''''e[01;32m:)''''''''''''''''; else echo -e ''''''''''''''''e[01;31m:(''''''''''''''''; fi` [e[01;34m]$[e[00m] "

The Manual

Color escape code general syntax:

e[XX;YYm]
XX = foreground color
YY = background color, but really text styling

Foreground colors

30 = black
31 = red
32 = green
33 = yellow
34 = blue
35 = magenta
36 = teal

Background colors are 40, 41, 42, etc.

Text styles:

0 = reset
1 = bold
4 = underline
5 = blink (!)
7 = invert background & foreground

Reset to plain (always put at the end!):

[e[0m]

Available variables:

u = your username
H = full hostname, e.g. bob.example.com
h = reduced hostname, e.g. bob
w = full working directory, e.g. /home/jamie/bin
W = basename of the working directory, e.g. bin
t = time in 24-hour format
# = command number
$ = root identifier; $ for regular users, # for root
T = time in 12-hour format
l = terminal device, e.g. tty4
j = number of background/suspended processes

link : http://jamiedubs.com

Mengaktifkan Telnet Command pada Windows Vista

Thursday, September 10th, 2009

Ketika saya butuh telnet untuk cex service di kompi saya eee kok gak bisa, waktu itu saya pakekk windows vista….. ya googling ketemuu dehh cara aktufkan service telnet di vista ini dia

Sebagian dari Anda mungkin telah mengetahui apa itu telnet. Telnet adalah salah satu fasilitas yang sering digunkan untuk meromote computer dalam suatu jaringan  melalaui underdos (CMD).

Jika Anda menggunakan Windows XP, telnet command tersedia secara default, sebaliknya jik Anda menggunakan Windows Vista, secara default perintah (command) telnet ini dinonaktifkan. Sehingga ketika Anda mengetikkan telnet pada runbox, Anda mungkin mendapati pesan error yang berbunyi:

‘telnet’ is not recognized as an internal or external command,operable program or batch file.

Pesan ini muncul karena secara default Windows Vista tidak mendukung perintah telnet, sehingga Anda harus mengaktifkan fitur ini secara manual. Berikut ini langkah-langkah untuk mengaktifkan fitur telnet command pada Window Vista:

  1. Masuk ke menu Control Panel
  2. Klik sub menu Uninstall a program di bawah menu Programs (jika Anda dalam Classic view: cukup pilih Programs and Features)
  3. Pada panel sebelah kiri di bawah preferensi Tasks, klik Turn Windows features on or off
  4. Setelah jendela popup terbuka, cari dan centangi kotak pilihan Telnet Client dan Telnet Server.
  5. Klik OK

Tunggu sampai fitur telnet selesai diinstall, setelah itu Anda dapat menjalankan telnet command pada Windows Vista Anda. Selamat Mencoba!

link : patembe.com