Wednesday, May 30, 2007

HTML Tabs Using JavaScript

well, i was loooking for an option to create tabs in an html document without using many graphic labels and huge scripting, as i was fed up of spending loads and loads of hours doing the base work for the out put.

i found this interesting javascript on "i don't know where," which uses just a single script file and can be used to create tabs in an html document. the best part is all the coding goes in one html and once viewed on an internet browser, it will show the tabs.


the basic usage of this script is as follows:

1. put this part in the html header:

<script type="text/javascript"
src="tabber.js"></script>

<script type="text/javascript">

/* Optional: Temporarily hide the "tabber" class so it does not "flash" on the page as plain HTML. After tabber runs, the class is changed to "tabberlive" and it will appear. */

document.write('<style type="text/css">.tabber{display:none;}<\/style>');

</script>

2. and put this in the body part of the html:

<div class="tabbertab">

<h2>Sample Tab</h2>

<p>

/* Tab content goes in here... */

</p>

</div>


3. repeat step "2" for the number of tabs you want.

4. the title of the tab is defined within the <h1> and </h2> tags.

5. you can change the font and colors by using a style sheet and defining values.

6. the text in each tab goes within the <p> and </p> tags. you can include tables or any form of html tag within these tags.

7. one "tab block" is defined within the <div class="tabbertab"> and </div> tags.

8. you can download the javascript from the following location:
http://mediafire.com/?34mqtmmhcdb


note: when using deamweaver to design/edit the page, the tabs are not shown in a tabular format in design view. but it will show up when previewed in a browser.

disclaimer: this javascript is free to edit and update, but should be distributed with the author's disclaimer. project gcc does not encourage the violation of software integrity by any means.


happy tabbing :)


cheers,
neo.

Friday, May 25, 2007

Playing WMA Files on N70

space does matter; and when it comes to mobile phones, space is critical. since the introduction of phones that can play mp3s, there were loads of mp3 playable software introduced to the market. but, only a few mp3 players deliver near satisfactory results.

usually a 128kbps, joint-stereo, mode 1 mp3 gives almost similar good sounds equivalent to a 44khz, pcm wave file. wma files are good since they are even smaller than mp3s, but the only issue i've faced is that you need a special device or software to get the best out of it.

wma files encoded at 64kbps, gives similar sound quality to a 128kbps mp3 on my "creative tx-fm" mp3 player, but doesn't sound that good on my n70. but still it is worth experimenting wma files on a nokia n70.

well, first i tried downloading several so called "wma players for n70," but all were just some crappy software that almost ruined my phone. i had to re-install the firemwire twice thanks to these crappy wma players.

but there are two alternative methods to play wma files on an n70.

method 1:
  1. install the wma codec for symbian 60. (you can download this by searching the internet.)
  2. rename the .wma files to .mp3.
  3. now you should be able to play the files using the default player that comes with the phone.

note: most other (all that i tried) mp3 players that support symbian 60, will not play the renamed wma files, and may freeze your phone. if this happens, restart your phone.

method 2:

  1. install the wma codec for symbian 60.
  2. instead of renaming the .wma files to .mp3, create a .m3u (winamp playlist) file.
  3. open the playlist file and it should play all the wma tracks on the list, using the default nokia music player. (ogg player will not play these playlists; some websites say that it does, but every time i tried, it failed.)

note: you can use a text editor or winamp on your pc to create the playlist. if using winamp, open the playlist once it is created, using notepad and search and replace the pc path with the phone path (i.e., "d:\program files\..." with "d:\songs\...").

here are some sample playlists...

sample playlist 1:

#EXTM3U

Track 1.wma

Track 2.wma

Track 3.wma

sample playlist 2:

#EXTM3U

Songs\Track 1.wma

Songs\Track 2.wma

Songs\Track 3.wma

note: instead of using relative paths to create the plalist, it is better to use absolute paths; as a result you can put the playlist anywhere on your phone and play the files from any location.

hope these hints were helpful. send in your comments.

have fun with the "wma"s :)

cheers,

neo.

Friday, May 18, 2007

Mihin Air


don't know who did this... but it's cool...


hoo hoo...

Friday, May 4, 2007

Chipped Ma Playstation

got my plastation 2 chipped yesterday :) ell the frstay to go in was "mortal kombat." then went the "mission impossible."

but the story begins when we were looking for a person to chip it. (we = me + my friend who was also looking to crack his playstation)

one guy said 9,000 and the other said 8,900 and we managed to get it down to 8,500 since we were giving them two jobs. first we took the older ps2 which a bit larger than the slim version. so my friend headed back to bring the slim version which we left in his car. on his way, he had to pass the previous shop, and when they saw the slim version, they were like "oh, that ps2 will cost you 11,500..." @#%)*@#)%*@$.

so this guy said he will call us once the job is done and said he needs more time to crack the slim ps2. we said ok and headed back.

my friend got a call in a few days saying that his ps2 is ready for pick up. and when he went there, they said the chip has not yet arrived for the slim version and that they will keep it ready in 2 days. so my friend paid for one ps2 and came back.

we went back in two days and the ps2 was not at the shop. they were like "it's on its way" @#%@#)%($@ "we did not give them a walking ps2!!!"

anyway the shop owner said that some other guy does the cracking for them and he's on his way with the ps2 and asked us to stay for 5 minutets. 5 minutes later he says 30 minutes. me and my friend came out of office promising that we will be back in 1 hour and it was a rainy day. and by that time we were almost on the 45th minute. so we stold him that we can't stay no more, and asked him if he could deliver it to our office. with much hesitation, he agreed. i gave him my card and we headed back.

we were a few minutes late, but things were cool. around 6 pm i get a call from this guy and he says that the ps2 is ready and they need 400 bucks more, as the chip had to be imported from singapore and it cost them more. ^%$@#^_#

i told him that it's not fair and the amount has already been agreed and billed. so he was saying that he has to pay the person who did the crack and al the #@##. i told him that i'm not gonna pay more than what we agreed upon. then he says that he will have to charge for delivery. (yes, the ps2 can't walk all the way from the shop to our office... point taken... so may be it decided to take a "tuk tuk.") i agreed and he said he's gonna bill 200 bucks extra for transport, and that was fine.

it was raining so heavily and the roads were like @#%@. (i think god Zeus would have been pissed off by someone and it was thundering like hell.) so my friend and i were waiting on this delivery for an hour and finally my friend decided to leave. 2 hours later this guy comes to my offis with the ps2 and i payed him as promised.

now i'm happy that the ps2 is here i was rockin' and was plannin on going home and "playing hell." then i remembered that the cables and all the other stuff that came with the unit were in my friends car. so i called him up and he was good enuf to come back to office, eventhough he was on his way to pick up his girl friend. thanks buddy.

so finally, i got all the pieces together and rushed home fast. since my tv was an older one, it did not support NTSC. so the pictures were black & white :( but i was cool, "something is better than nothing :)" the first game was cool. then i wanted to try the second; so i put it in and began playing. suddenly i noticed something...

eventhough my tv didn't support NTSC, the game was running in color :) bingo !!!