Wednesday, October 8, 2008

Death Magnetic vs Black Ice

hmmmmmmm, i don't know what made me write this post, probably just the excitment of two great albums i got to hear in such a shor period of time. Metallica has always been a favourite, though there is no ac/dc which you don't like. So i would rather say the new albums got me really excited.
Death Magnetic has as expected metallica's creative and innovative touches. With parts of songs going really good. But black ice really got me thumping. With death magnetic i felt the music has gone close to there first album rather than the more mature music they played later(not meaning in anyway that one was better than other) but still all tracks did feel new.Now listening to Black Ice you can really kind of at once say that its ac/dc with the same style as there previous albums but why change when you are so good at some thing and rather can improve upon, I really felt it is ac/dc at there best.

So which album do you say is better, Which one would you chose to listen whole your life if you were to be left at a lonlly island. For me i guess black ice closly edges over death magnetic. what about all others

Thursday, September 11, 2008

Prevent multiple refresh button and multiple requests to server using javascript

Let me mention out at the start itself:- This post will help you prevent a stupid impatient user from sending multiple requests to your server. But a deliberate attack will go through without slightest of problems
Here is the scenario
You have a web application running on an slow server which can handle user requests simultaneously but when a impatient user starts hitting his refresh button million times a second, it leaves your server in a pity state. So how to go about?

Key is to use onbeforeunload event built into ie and Firefox browsers. But you would not want to trouble your users every time they want to leave a page. So key is to use a flag variable along with timeout function, check the code below:-



<html>
<head>
<title>Untitled Document</title>
<script language='javascript'>
window.onbeforeunload=closeIt;
var me = true;
function closeIt()
{
setTimeout("me=false;",4000)
if(me == true) {me = false ; return;}
return "Server is still executing the previous request, Are you sure you wish to send another request?";
}
</script></head>
<body>
PUT a heavy server job here to actually test it
</body>
</html>

there are other methods to prevent the same, but most of them require to be taken care of while coding. This solution is useful when you already have an application ready but want a quick fix for the refresh button problem. If you are still in the coding stage of your application here is a more detailed way to implement it on server side for much more complete control

http://www.codeproject.com/KB/aspnet/SyncControl.aspx







Monday, September 8, 2008

Blocking ads on webpages using hosts file

If the adblock plus extension is the only thing holding you back from using google chrome instead of firefox, Here's a simple solution for the same
if you are using windows


Just open this file:
c:\windows\system32\drivers\etc\hosts(assuming your windows is in c drive)
in any plaint old text editor maybe notepad
assuming your windows is in c drive
Now get a list of various adservers along with ipaddresses commonly used to supply ads for eg. here is one:-

http://www.mvps.org/winhelp2002/hosts.txt

copy all the entries from here and copy it to your own hosts file, you may want to keep the existing entries.


Thats it now no more ads will be served on your webpages.

For linux users edit the hosts.conf file in etc directory


You can also get the same hosts file here:
http://www.mvps.org/winhelp2002/hosts.zip

just extract the same to overwrite your original hosts file
P.S if you get empty pages or connection timed out on any site you wish to browse,just find the correponding entry in the hosts file and remove the same

Sunday, August 31, 2008

orkut in colleges


For all bitsians and others trapped to restricted access use this basic proxy(For Orkut check the tutorial below),Atleast you can hope it won't be blocked soon, buzz me when it does and i'll give you another link)



http://arvindsg.imconfuzed.com/poxy


or



https://arvindsg.imconfuzed.com/test/test/nph-test.pl



Orkut tutorial

open the poxy site
goto orkut.com , make sure you have the followiing settings selected
everything ticked except rotate 13 and strip title

now login normally until you reach the google accounts invalid page

in the poxy url bar -- remove the part in url before "http://orkut" and remove the single quote form end
click go again and you have working orkut

You may get some javascript missing problems, in that case click on using orkut from mobile, and again remove the quote and part before http://m.orkut

The mobile orkute is perfect for slow net connection with almost all the features you may need

:D

Ubiquity

Firefox: now you won't need to tell million features to impress a user to use firefox, just tell them about ubiquity



Ubiquity for Firefox from Aza Raskin on Vimeo.


I don't think ne words describe it better than this video
http://labs.mozilla.com/2008/08/introducing-ubiquity/

Friday, August 1, 2008

Audacity: Software noise Reduction

So you added id3 tags to all your media, but still you would be happier if none of your those great mp3 had that tape hissing noise. No worries, Open Source to the rescue
First you'll need to get a few tools all free
1. Audacity available here(http://audacity.sourceforge.net/beta/ladspa/ladspa-0.4.15.exe)
2. Lame: available here http://lame.buanzo.com.ar/libmp3lame-win-3.97.zip

So ready to go?
Just fire up the easy audacity installation extract the lame to any permanent folder you may want(maybe windows???)
1. Now start audacity from you start menu and import your mp3 file by dragging it into audacity window. Next select the 'Selection Tool' using the first icon just below the file menu.

2. You may now want to choose some noise only region of you audio track, most like at start or end

3. next goto noise removal in effects menu just click on generate noise profile
4. Select the whole tract using edit select-> all
5. fire up the same window again(effect-> noise removal) and this time you may want to preview the audio by clicking the preview button. You may move the bar almost to the left at start which is usually sufficient.
After you are satisfied just selct remove noise
6. Goto file and select export as mp3 here it will ask for file name etc. and also for lame encoder. Just guide it to the place where you extracted the lame encoder dll file. All done Enjoy noise free music this weekend



Thursday, July 24, 2008

Add Album information to you media library

So you have got lot of mp3's maybe unorganized or sometimes organized into folder but containing no or wrong album info.
Here's a method to do it easily, without any additional downloads apart from you good old windows media player.
So To get going just add all your media to windows media library if you don't already have it:
1.In file(alt-F) menu select add to library
2. In the next window just cick on add and lead it to your songs folder

It will add new files to your library and you are ready to get going
Goto your library tab next and its better to use the library or songs view so that you can know which songs have partial information.
So for any song for which you need media information just right click on it and select find media info, media player will search for appropriate information and show you the results and you can select the one that suits you

No here is the most important trick if you know multiple songs are from same album just selet them all and then choose find media info, This should greatly improve the search and more often than not , there will be only one result and you can just click on finish to get the album info