Fun with javascript

April 3rd, 2008 freaz Posted in Funstuff | No Comments »

I’m no master in javascript,but here is a few fun and cool script i pick around the web.

1.Flying picture

Open any webpage with lots of picture in it and paste this script in the address bar.

Code:

javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.getElementsByTagName(”img”); DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position=’absolute’; DIS.left=(Math.sin(R*x1+i*x2+x3)*x4+x5)+”px”; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+”px”}R++}setInterval(’A()’,50); void(0);

2.Direct edit 

Copy this in your adress bar and enter:

Code:

javascript:document.body.contentEditable=’true’; document.designMode=’on’; void 0
 
 

3.Own domain

This is my personal favorite.It allows you to create a msn id with your own domain (mymail@mydomain.com)

steps

1.go to  http://get.live.com/getlive/overview with your ie browser.(tested this with opera and it does’t work.not tested in firefox)

2.Paste this code in the address bar

 Code:

javascript: var p = ‘mymail.’; var ds = new Array(’com’, ‘mydomain’); for (var i = 0; i < ds.length; i ++){document.getElementById(’idomain’).options[i] = new Option(p + ds[i], p + ds[i])} alert(’domains added’);
 

replace mymail and mydomain in the script with the name of your choice.The result will be like this:

mymail@mydomain.com 

But there is only one catch,you can only use this in on windows live messenger only and since the domain does not actually exist, you cannot use this email address to send or receive email.

here’s mine

freaz89@a-8-7.tbp

 

Have fun! :)

 

AddThis Social Bookmark Button

FAKTA @ AUTA??

March 23rd, 2008 freaz Posted in Funstuff | No Comments »

Artikel dibawah telah dipetik daripada laman tanya@putera 

1. Tahukah anda apabila 350ml air yang diambil dari sinki dan kemudiannya dituangkan ke dalam cerek yang mengandungi 150ml air suling dan dibiarkan terdedah kepada nyalaan api bersuhu 100 darjah celcius akan menghasilkan satu cecair yang dinamakan air masak.

2. Percayakah anda yang air sirap merupakan salah satu bahan asas
dalam pembinaan sebuah helikopter. Ini kerana kajian telah dibuat, seorang pembina helikopter memerlukan air sirap untuk menghilangkan keletihan semasa membuat helikopter, tanpa air sirap mungkin helikopter tersebut tidak dapat disiapkan.

3. Sebuah kereta yang dipandu selaju 220 km/j tidak akan dapat memotong kereta yang dipandu selaju 40 km/j sekiranya kereta-kereta tersebut dipandu dari arah yang bertentangan

4. Tahukah Anda dalam bahasa Inggeris dan Italy,jurugambar dikenali sebagai paparazi. Perkataan itu dipercayai diambil dari watak paparazzo dalam filem La Dolce Vita yang diterbitkan oleh Federico Fellini
pada tahun 1960. Dalam bahasa melayu pula, ayah kepada seorang budak yang bernama Razzi juga boleh dikenali dengan nama papa Razzi.*Tambahan, if mak dia laks so boleh dikenail mamarazzi

5. Tahukah Anda bendera negara Denmark telah dicipta 700 tahun lampau, menjadikan bendera paling lama digunakan di dunia lebih lama daripada penggunaan susu cap bendera.

6. Tahukah Anda magnet ialah sejenis logam yang juga digelar besi berani. Sebagaimana namanya magnet ialah besi yang berani menarik butir-butir besi lain kearahnya. Bagaimanapun orang yang diupah untuk menarik kereta bukanlah magnet.

7. Tahukah Anda cicak memutuskan ekornya apabila diganggu. Apabila cicak menyedari yang dia diekori oleh sesuatu, ia akan memutuskan ekornya supaya benda itu tidak mengekorinya lagi atas alasan tanpa
ekor sudah tentu ia tidak akan diekori lagi.

8. Tahukan anda bahawa seorang manusia normal tidak boleh menyentuh telinganya sendiri menggunakan siku.

9. Tahukah Anda burung dapat pulang ke sarangnya walaupun telah keluar kadangkala hingga beribu kilometer daripada sarangnya tanpa sesat atau silap walaupun tanpa bantuan kompas. Ini kerana setiap sarang burung mempunyai alamatnya yang tersendiri sebenarnya.

10. Tahukah Anda bunyi perkataan lempeng dan tempeleng adalah hampir sama walaupun ia berbeza dari segi rupa bentuknya. Tapi, walaubagaimanapun orang yang kena tempeleng masih boleh memakan lempeng apabila dia berasa lapar.

11. Tahukah Anda gunung berapi yang berusia tiga ratus tahun disahkan masih aktif untuk meletup. Tapi mengikut kajian ahli gunung, api elektrik di rumah kita tidak akan aktif jika tidak membayar bilnya selama tiga bulan.

12. Tahukah Anda orang yang tidak pernah kisah langsung tentang wang ringgit, pangkat, kedudukan dan harta dunia ialah Orang Utan.

13. Tahukah Anda ahli sains seluruh dunia bersepakat jika nasi ayam dimakan sewaktu lapar, perut kita akan mengalami satu tindakbalas yang berupa kekenyangan. Nasi ayam juga boleh digunakan sebagai ubat untuk menggembirakan hati kita bila nasi ayam yang dimakan itu dibelanja oleh kawan kita.

14. Dan tahukah anda bahawa hampir kesemua pembaca artikel ini telah mencuba untuk menyentuh telinga menggunakan siku.

Sumber:tanya@putera

AddThis Social Bookmark Button

Linux LiveUSB

March 22nd, 2008 freaz Posted in Projek | No Comments »

For those of you who want to install linux,but do not want to undergo the complicated installation or creating a dual boot system you can try a live version of linux.Live version simply mean that you can boot directly into the OS without having to install it first.It usually come in a bootable LiveCD that was created so that people can try the linux distribution before installing it into their system.
A LiveCD has many weakneses.It is slow because you have run it from CD.It function is also limited because it is meant for testing purpose only.
But a LiveUSB is totally different.It is faster than CD and you will have a full funtional OS minus the installation.There are many ways for you to create a linux LiveUSB,but my personal favorite is “Pendrivelinux08″.It is easy to setup and bundled with all the software you ever need (office suite,browser,media player ext).
But before you continue,here is some important requirement:

  1. USB bootable bios (any bios dating from 2005 should have this)
  2. 1gb USB flash drive or higher (the os occupy about 700mb of space)
  3. A fast internet connection(optional :)  ),unless you are willing to wait .(the download is about 500mb)

pendrivelinux4.png  pendrivelinux3.png  

So lets get startted,

  1. First you need to download the intallation package at http://www.pendrivelinux.com/2008/02/13/pendrivelinux-2008-install-from-windows/

  2. Next you need to extract all the zip content to your USB drive.
  3. From your USB drive run makeboot.bat.This will make your drive bootable.

  4. After that restart your pc and enter the bios setting.

  5. Search for a boot option in your bios,and change the first boot device to USB.
  6. Save and Exit your change.

  7. Done!,you are now ready to boot from your USB.

This whole process take less than 5 minute(minus the download time),and the best part is you dont have to install it.Just unzip it and you done.I wonder if i can do the same with my xp or vista?? ;)

AddThis Social Bookmark Button

Momento

March 11th, 2008 freaz Posted in Projek | 2 Comments »

Momento is the name for JAD’s magazine, and i am one of those who get the chance to be part of the team.We are divided into 4 group and my group first assigment is to edit all the picture that we will use in the magazine. But then i get promoted (well…kinda ;p )to lead the DVD group. You see, we have plan for an “e” version momento with extra content in it. This is where the challenge start.Making the extra content(picture slideshow) wasn’t easy and I have to spend many hours just to make thing look good.

But now, all is done, and the final work….

DVD front.jpg Momento front.jpg

My “senpai” did this picture.I only use it. They have done a great job editing this so that we can use it in the magazine and DVD .

They will fly this march but we kouhai will continue with Momento-The second edition. ;)

Well now,i have to get thing started.

AddThis Social Bookmark Button

Kill Virus

March 11th, 2008 freaz Posted in Projek, Software | No Comments »

Lots of my friend came me to about their virus problem.So i decided to create my own antivirus so that i can automate the process of removing the virus. And here i would like to share it (kind me :P ).Its a simple programme coded using autoit,and it only remove certain viruses (the one that i have caught and interrogate).

I’m new in autoit but i hope this can help you who face the same problem.

Below is the link and list of virus this humble programe can remove.The list will be updated from time after time(tough job interrogating the virus) :)

Kill Virus

  • jambanmu.com/Flash10
  • kava(ntdelect.com)
  • This software can also help if you cant open your task manager,see you hidden file or open your drive without getting the “Program Not Found .Windows cannot find Autorun.exe” error.

    AddThis Social Bookmark Button

    First

    March 10th, 2008 freaz Posted in Uncategorized | No Comments »

    My first blog

    My first post

    My first word

    HELLO WORLD!

    AddThis Social Bookmark Button