RSS
 

Archive for the ‘Web Stuff’ Category

Ride Your E61 to surf Internet

18 Sep

Nowadays, internet connection based on WiFi is not a strange things again. In every place like supermarket, cafe, in de office, school its exist and free hahaha . So, last month, when i decided to buy a new gadget, i prefer to choose nokia e61 than netbook or its brother e71 or e90 (cause limited budget indeed :P )

I usually use it when i’m in de office, when i’m not in ma room, its become a portable and usefull thing to keep exist in internet world hakakkak :D  .. Wifi connection in ma offcie use WEP keys and it’s not use DHCP to deploy its ip address..  

In the earlier time, i confused, how to make it works when i want to connect to a network with WEP otorization. It doesn’t work when i first try it in ma rooms. I have time to think, maybe ma Wifi in ma gadget is broken or what?? To check whether ma gadget still has its function properly, I tried it connect to the network in de front building that has no key authorization and DHCP of course :D  .. Hopefully it works, so the mistake is not from the gadget itself.. maybe i had wrong configured the connection ..

So, little ba little i tried to solve it .. When i realized that ma wifi connection use non DHCP, i figured that i must set the address manually .. Googling and blogwalking, at least it solved :D  
Here the step that i’ve done to make it :
1. I saved it as an access point, so that i figure it first.
    Choose menu -> Setting ->Connection

    when new windows appear choose on your left buton (option -> New Access Point ->Use Default Setting) 

2. Connection name : E61Wifi 
    Data Bearer : Wireless LAN
    WLAN Netw. Name : {set the name of your wifi network, i recommended you not
   enter it manually, choose Search for Netw} 
    Netw. Status : public
    WLAN Netw. Mode : Infrastructure
    WLAN Security Mode : WEP 
    WLAN Security Setting :
           – WEP Key in Use = 1
           – Authentication type = Open
           – WEP Key Setting =
                  * WEP Encryption : 64 bits
                  * WEP Key Format : Hexadecimal
                  * WEP Key : {fill with network key, if you don’t know, ask to your network admin,
                    if you can’ get it  from him, try to use Cain & Adel :D }
 

3. Access Point created :D
    in case you have to connect to a network without DHCP, you must set IP address manually. Back to the access point menu, choose AP that just you setted. Choose options -> Advanced Setting . If your network use IPV6 standard, you must set in the IPV6 setting. Indeed, cause ma network still use IPV4 standard, i choose IPv4 setting. 

set IP Address in Phone IP address, its subnet mask, defaut gateway bla bla bla.. If you don’t know precisely the resources, go back to your admin, if he don’t want to give it, just kick his ass :P  

Once you get it on your e61, you ready to surf on it ..

Hope usefull, regards

 

Add Form Components Use javascript

17 Sep

Last day, I fad to open my last archive bout programming use javascript in ma disc. I found an interesting stuff there.. Yeah for ’bout 5 months ago i search a method to add a form component that i’ll used in ma friend project .

Just try to look it at a glance .. it seems daunting i thougt. But when we see it accuratelly, we can get the algorthm of its code that not complicated as we expect. See jvscript below :

<script type="text/javascript">
  function addElemen(list,jumlah,nama)
  {
    var currNumArea=document.getElementById(jumlah);
    var divToAddArea=document.getElementById(list);
    num= currNumArea.value;
    num++;
    currNumArea.value=num;
    var newDiv=document.createElement('div');
    var tmpNama=nama+num;
    newDiv.setAttribute('id',tmpNama);
    var ePengalaman="<table width=\"100%\"><tr><th id=\"blue\">Object #"+(num)
                    +"</th></tr><tr><td><input type=\"text\" name=\""+tmpNama+
                    "\" size=50 style=\"width:80%\">";
    newDiv.innerHTML=ePengalaman+" <a href=\"javascript:;\" onClick=\"
                     deleteElemen(\'"+list+"\',\'"+tmpNama+"\')\" id=\"delete\">
                     <strong><font color='Maroon'>Delete</font></strong></a></td>
                     </tr><tr><td> </td></tr></table>";
    divToAddArea.appendChild(newDiv);					
  }

function deleteElemen(list,idElemen)
  {
   var divListArea=document.getElementById(list);
   var oldDiv=document.getElementById(idElemen);
   divListArea.removeChild(oldDiv);			
  }
</script>

And here they are the HTML code to call the function :

<html>
<head><title>Add Object</title></head>
<body>
 <a onclick="addElemen('list_object','jumlah_object','object_')" 
 href="javascript:;" id="add"><font color="Maroon"><strong>Tambah Object
 </strong></font></a>	
 
 <div id="list_object">
    <input type="hidden" name="jumlah_object" value="<?=$num;?>">
 </div>
</body>
</html>

hmm but i still rather confuse, the numeric iteration can’t decreased when we delete a component. is there anyone can figure it out for me :D

 

Internet Koneksi pake AXIS, IDR 0.1

23 Aug

Seminggu di Bogor, tanpa koneksi inet, hikzz..parah bin hopeless..Hotel masih jarang yang nyediain fasilitas hotspot dan sejenisnya disini, warung inet ada, cuman ga bukak, ma aja boong :x

Walhasil, pake cara alternatif agar keep in touch ma temen2 di inet. Berbekal HP 3660 and kartu axis, seonggok dogle, and notbuk secukupnya, maka dimulailah perjalanan ini.
First, aktifin nomor AXIS ente dolo, cos ga akan bisa diapa2in tu kartu kalo kagak diregistrasiin. Proses registrasi yang kualamin bener2 mbulet bin bikin emosi (kepada temen2ku di h**wei sebagai vendor ni operator,  kumaha yeuhh??). Kalo ada masalah reg ato apa, ke customer service dolo 838

Asumsi dah Ok, and hp ente dah registrasi ke wap ke 2248 (ketik : WAP [merk hp] [type]). Ente bakal dapet sms setting HP ente, install aja tu setting. dah, Kalo mo brusing via henpon, dah langsung bisa konek tu. tapi kalo mo konek via PC/notbuk, kasih setting tambahan di notbuk ente.

Detail setting monggo diliat disini .Parameter2 nya:

APN : AXISwap
Username : axis
Pasword :123456

Dial number : *99***1#
extra command : AT+CGDCONT=1,”ip”,”axis”

Kecepatan, hmm wajar kalo menurutku
Biaya : so far away, murah ko, ga ada komplaint dari dompet masalah pulsa :D

Happy surfing

 

Print Web Page

27 Aug

Seringkali kita dituntut untuk melakukan printing sebuah halaman website ke dalam bentuk hardcopy. Ada kalanya kita hanya ingin content yang ada saja yang di print tanpa adanya URL di header, tanggal di footer dan lain-lain. Trus gimana dunks? aku sempet mikir kalo bentuk windows dari browser kita yang menyebabkan adanya penampakan tersebut. Pikirku jika bentuk windowsnya pop up, ga akan muncul URL nya, secara ditampilan monitor, windows pop up ndak ada toolbar macem2nya.

Walhasil, akhirnya aku masukin javascript ke page yang inginku kuprint tersebut :

<script language="javascript" type="text/javascript">
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);}
</script>

Script ntu dapat ente pelajarin disini
Nahh ente dah punya pop windows yang menuju ke suatu URL. Ada satu teknik lagi supaya ketika suatu page di load, browser otomatis akan memunculkan printing windows. tambahkan script berikut onload="window.print();" pada bagian <BODY> dimana page yang akan diprint berada.

dah cukup, OOT nya cukup, kita kembali ke permasalahan diatas ya. Ternyata dengan windows pop up pun, ternyata sama aja. URL dan komponen2 lainnya tetep ke print. sial..Hue22.. tapi ternyata solusi  dari semua ini tidak lah sesulit yang tertulis diatas yang notabene tidak efektif. Kita harus kembali ke hal-hal dasar :D

Hmm ternyata kita hanya tinggal setting di browsernya aja..capee deh, udah muter2 mpe kemana-mana :D ..Untuk pengguna FireFox dan IE , masuk ke page setup.
Firefox <– klik margin header  n  footer. Trus dibagian header and footer, isikan semua dengan blank.
IE <– langsung aja hapus string yang ada di bagian header and  footer
buat bwoser yang lain kekna hampir sama deh, cobain ndiri yagh :D

dah ahh capekk..mo balik kampus dolo..bimbingan-bimbingan..

 
2 Comments

Posted in Web Stuff

 

Instalasi Apache2+PHP5 MySql

15 Aug

    dari dolo, hal yang tidak pernah berhasil kulakukan adalah melakukan instalasi Apache2,  php5 dan MySql..This things makes make confius and mad!!!! Tapi namanya orang terdesak, akhirnya akan melakukan segala daya dan upaya to make this works!!
At least,setelah satu harian penuh ngublek-ngublek ubuntuku, dapet pula pencerahan..Setting-setting yang membuatku pusing akhirnya terlewati.ketiga modul ini berjalan sebagai mana mestinya :D
Oks ni langkah-langkah yang kulakuin :
*  aku pake repositori dari kambing maklum akses internet mot2an disini, jadi ngambil dari repo local aja and ga kalah lengkap ko
* install modul apache2 (aku pake mod_fcgid)
#sudo apt-get install apache2-mpm worker libapache2-mod-fcgid
*setelah itu, nyalakan modul fcgid(defaultnya siy udah nyala)
#sudo a2enmod fcgid
*next, install php 5
#sudo apt-get install php5-cgi php5-curl php5-gd php5-ldap php5-mysql php5-mysqli php5-sqlite php5-xsl
saranku, lakukan instalasi satu persatu dari paket-paket php ntu, soalnya kalo langsung semua, and ternyata ada 1 paket ndak ada, maka semua instalasi jadi error
*Konfigurasi apache, edit file /etc/apache2/sites-available/default
Taroh script dibawah ini setelah “NameVirtualHost” dan sesudah <VirtualHost> :
<Directory /var/www>
AddHandler fcgid-script .php
FCGIWrapper /usr/lib/cgi-bin/php5 .php
</Directori>
kemudian pada masing-masing <Directory> tambahkan option ExecCGI Indexes (kalo sudah ada sebagian, tambahkan aja sisanya)
*restart apache
#sudo /etc/init.d/apache2 force-reload

Tuink..modul apache and php dah dinikahkan..sah..sah..(cek dengan membuat script php di /var/www)

Instalasi MySQL
#sudo apt-get install mysql-server
terus akan menginstall .. .. .. ..
Secara default, password user root adalah kosong, namun adakalanya jika terjadi error seperti yang saya alami, dimana kita tidak bisa melakukan login user root, do this think
#sudo dpkg-reconfigure mysql-server-5.0
dan isikan password root baru ente

Thanks to temen2 students yang udah ta ganguin :D   and ubuntluinux.or.id

 

AddOns Super Quick Reply on PHPBB

06 Jul

Yatta!!! akhirnya berhasil juga ngasih SQR(Super Quick Reply) buat forumku. Setelah pengkodean ulang yang melelahkan ditengah lemotnya internet di kampus, akhirnya jam jam 00.05, SQR nya sukses terinstal.

Want to make a quick reply on your forum? Do this :
1. download, quick reply, terdapat 2 jenis yaitu simple quick reply and super Quick Reply
simple quick reply hanya terdiri dari text box,tombol preview and submit, sedangkan
SQR memiliki fitur layaknya reply biasa.Dalam kasus ini, saya menggunakan SQR
2. Download file-file SQR disini . Setelah itu, ekstrak filenya. Terdapat beberapa file, tapi
akan digunakan adalah file :
viewtopic_quickreply.php , viewtopic_quickreply.tpl dan quickreply.gif
3. Bukalah file sqr.mod dengan editor favorit anda.
4. Ikuti langkah-langkah yang ada disana. Berhati-hatilah, karena jika ada kesalahan sedikit, anda bakalan dibuat pusing tujuh keliling :D :D

Selanjutnya, selamat menikmati quick replynya

 
 

Switch to our mobile site