Friday, June 20, 2008

Downloading Audio

In most cases, audio files are served just as html files, by a web server. Anything that is served by an http server can be saved to your hard drive. You usually talk to the web server through your browser. Remember, you can independently do anything your browser does.

The simple way

The most straightforward way of serving audio in an html page is to directly link to the audio file. mp3 files are usually put up this way. When you pass your mouse over the link, if you see a URL that ends in .mp3 or .rm, it's a direct link. When you click on links like this, the browser usually offers to save the file to disk. Unless a plugin for that file type is installed in your browser. In that case, you can just right-click the mouse and select save target as. Some smart-ass html authors use this lame trick of disabling the right click. They just use javascript to pop up a dialog box on a mouse right click. Don't worry. You have the html with you. Go to View -> Source and locate the link to the audio file, copy it and paste it in the Location: bar. If you are on a framed page, make sure you select Frame Source. The braindead Internet Explorer sometimes grays out the View Source menu item. Try Save As to save the whole file to disk and extract the URL. If even that is deselected, use wget to download it.

Meta files

This is the most common way of serving real media files. If you see a ram extension on a link, it's the realaudio metafile. It's a text file with a list of actual audio URLs. You can save this file to your disk and open it in your favorite browser to see the contents. Now what you want to do is download the URLs in that file. This is the best method to download any given URL. But there is a longer route if you prefer. The idea is to create a new html page with links to the actual URLs you want.
tags and use your mouse to save those audio files away. Oh, mp3 files are also served in metafiles. These are urls ending in .m3u or .pls.

Things are not always this simple. Getting to the .ram link may itself be quite involved. Web page authors use all kinds of tricks to hide this link from your eyes. But rest assured. If the browser can see it, so can you. First, try to save the page (either from the browser or through wget) and look at the contents. Sometimes, urls are generated through javascript, so you may have to really interpret the code to get the final url. If this is too complicated, you have the catchall trick: use a sniffer.

Using a sniffer

Using a packet sniffer, you can look at all the packets going to and from your machine. In this case, we are interested in http packets. Ethereal is what I use. Fire it up, and look for http packets. They have the url that ultimately goes to the web server. Just copy it and use wget.

I recently came to know of another sniffer called URLSnooper. This tool captures just the URLs going on the wire; so you don't have to wade through the html files to get at them. In conjunction with Streambox VCR, this can be a deadly tool. Look at the end of this page for the link.

Some web servers are a little smarter than usual. They let you listen to an rm file only through the Realplayer. They do this with the User-agent field in the http header. The browser usually identifies itself in this field. To defeat this, you just tell wget to mimic Realplayer:

wget --user-agent='RMA/1.0 (comptabile; RealMedia)'
You can use the sniffer to see what headers the browser or the player is using.

Using wget to download files

wget is a command line browser, so to speak. You give it a url and it saves it to your disk. It's of immense help in our context. You can save the .ram file from the browser and use wget to get the urls contained in it. You can even use the -i option to get it directly:
wget -i song1.ram
wget is your friend. It's available for all platforms.

pnm and rtsp

All the above tricks assume the audio files are sent through http: links. Quite a few web servers use a Realaudio server to serve audio. As you can expect, only Realplayer can talk to this server. The audio files are linked thru the ram links. The ram file here contains links like:
pnm://some.server.net/song1.rm
or
rtsp://some.server.net/song2.rm
The protocol here is proprietary. In the case of the latter, even though RTSP is an open protocol, the data passed in the RTSP packets is specific to the Realaudio server and the player. We all know that proprietary protocols are bad. There are some good people on the net that hacked this protocol and built a program that can download these URLs to disk as well. Look for Streambox VCR Underground on the net. This software is illegal. You are warned. Search the net and you'll find all the legal history.

That, pretty much covers all the ways (I think) of downloading stuff. Let me know if you find a page that beats all this. I'll be very interested.

Realaudio to mp3 conversion!

Is it possible to convert realaudio to mp3 or any other open format? This is probably a question that almost everybody that dealt with Real faced. Finally, I found an answer. There is a tool based on Streambox VCR that lets you do this. It's called Streambox Ripper. See below for the links.

There is a more legal way of doing the conversion if you are running Linux. vSound is a tool that lets you save the output of an audio player into a wav file. I haven't tried it. Let me know if you find it useful.

Thursday, June 19, 2008

Importance of Having breakfast....


Breakfast can help prevent strokes, heart attack and sudden death. Advice on not to skip breakfast!

Healthy living

For those who always skip breakfast, you should stop that habit now! You've heard many times that "Breakfast is the most important meal of the day." Now, recent research confirms that one of the worst practices you can develop may be avoiding breakfast.

Why?

Because the frequency of heart attack, sudden death, and stroke peaks between 6: 00a.m. and noon, with the highest incidence being between 8: 00a.m. and 10:00a.m.What mechanism within the body could account for this significant jump in sudden death in the early morning hours?


Platelet, tiny elements in the blood that keep us from bleeding to Death if we get a cut, can clump together inside our arteries due to cholesterol or laque buildup in the artery lining. It is in the morning hours that platelets become the most activated and tend to form these internal blood clots at the greatest frequency.

However, eating even a very light breakfast prevents the morning platelet activation that is associated with heart attacks and strokes. Studies performed at Memorial University in St.Johns, Newfoundland found that eating a light, very low-fat breakfast was critical in modifying the morning platelet activation. Subjects in the study consumed either low-fat or fat-free yogurt, orange juice, fruit, and a source of protein coming from yogurt or fat-free milk. So if you skip breakfast, it's important that you change this practice immediately in light of this research. Develop a simple plan to eat cereal, such as oatmeal or Bran Flakes, along with six ounces of grape juice or orange juice, and perhaps a piece of fruit. This simple plan will keep your platelets from sticking together, keep blood clots from forming, and perhaps head off a potential Heart Attack or stroke.
So never ever skip breakfast
.

Dress code for 14th Feb

Ø Blue- I'm free

Ø Green- I'm waiting

Ø Orange- going to propose

Ø Pink- accepted just now!!!

Ø Black- proposal rejected

Ø White- already booked

Ø Yellow- broke up!!!

Ø Gray- not interested…

Ø Red- leave me

Transport Information - Hyderabad, Bangalore, Chennai

A new portal to get live traffic, directions & auto fares in Hyderabad, Bangalore or Chennai. The traffic police have launched a live traffic portal (Tra nsport Information System) where you can find

1. the optimal routes between any two places in
the city ...
2. Auto-fares
3. Bus routes and stops, etc.


Check ->

Hyderabad

Bangalore

Chennai

Tips on filling FUEL in your vehicles

ONLY BUY OR FILL UP YOUR CAR OR BIKKIE IN THE EARLY MORNING WHEN THE GROUND TEMPERATURE IS STILL COLD. Remember that all service stations have their storage tanks buried below ground. The colder the ground, the denser the fuel, when it gets warmer petrol expands, so buying in the afternoon or in the evening.... your litre is not exactly a litre.

In the petroleum business, the specific gravity and the temperature of the petrol, diesel and jet fuel, ethanol and other petroleum products play an important role. A 1degree rise in temperature is a big deal for this business. But the service stations do not have temperature compensation at the pumps.

WHEN YOU'RE FILLING UP, DO NOT SQUEEZE THE TRIGGER OF THE NOZZLE TO A FAST MODE. If you look, you will see that the trigger has three (3) stages: low,
Compiled by Ramesh Patel on 16.03.2008 @ 10:00Hrs. Page 2 of 2
middle, and high. In slow mode, you should be pumping on low speed, thereby minimizing the vapours that are created, while you are pumping. All hoses at the pump have a vapour return. If you are pumping on the fast rate, some of the liquid that goes to your tank becomes vapour. Those vapours are being sucked up and back into the underground storage tank so you're getting less worth for your money.

ONE OF THE MOST IMPORTANT TIPS IS TO FILL UP WHEN YOUR TANK IS HALF FULL. The reason for this is, the more fuel you have in your tank, the less air occupying its empty space. Petrol evaporates faster than you can imagine. Petroleum storage tanks have an internal floating roof. This roof serves as zero clearance between the petrol and the atmosphere, so it minimizes the evaporation.
Unlike service stations, here where I work, every truck that we load is temperature compensated, so that every litre is actually the exact amount.

ANOTHER REMINDER, IF THERE IS A FUEL TRUCK PUMPING INTO THE STORAGE TANKS, WHEN YOU STOP TO BUY, DO NOT FILL UP - most likely the petrol/diesel is being stirred up as the fuel is being delivered, and you might pick up some of the dirt that normally settles on the bottom.

Toll Free Numbers all over India


Airlines
Indian Airlines - 1800 180 1407
Jet Airways - 1800 22 5522
SpiceJet - 1800 180 3333
Air India -- 1800 22 7722
KingFisher - 1800 180 0101

Banks
ABN AMRO - 1800 11 2224
Canara Bank - 1800 44 6000
Citibank - 1800 44 2265
Corporatin Bank - 1800 443 555
Development Credit Bank - 1800 22 5769
HDFC Bank - 1800 227 227
ICICI Bank - 1800 333 499
ICICI Bank NRI - 1800 22 4848
IDBI Bank - 1800 11 6999
Indian Bank - 1800 425 1400
ING Vysya - 1800 44 9900
Kotak Mahindra Bank - 1800 22 6022
Lord Krishna Bank - 1800 11 2300
Punjab National Bank - 1800 122 222
State Bank of India - 1800 44 1955
Syndicate Bank - 1800 44 6655

Automobiles
Mahindra Scorpio - 1800 22 6006
Maruti - 1800 111 515
Tata Motors - 1800 22 5552
Windshield Experts - 1800 11 3636

Computers/IT
Adrenalin - 1800 444 445
AMD - 1800 425 6664
Apple Computers - 1800 444 683
Canon - 1800 333 366
Cisco Systems - 1800 221 777
Compaq - HP - 1800 444 999
Data One Broadband - 1800 424 1800
Dell - 1800 444 026
Epson - 1800 44 0011
eSys - 3970 0011
Genesis Tally Academy - 1800 444 888
HCL - 1800 180 8080
IBM - 1800 443 333
Lexmark - 1800 22 4477
Marshal's Point - 1800 33 4488
Microsoft - 1800 111 100
Microsoft Virus Update - 1901 333 334

Satyam Computer Services-1800-30-728926
Seagate - 1800 180 1104
Symantec - 1800 44 5533
TVS Electronics - 1800 444 566
WeP Peripherals - 1800 44 6446
Wipro - 1800 333 312
xerox - 1800 180 1225
Zenith - 1800 222 004

Indian Railway General Enquiry 131
Indian Railway Central Enquiry 131
Indian Railway Reservation 131
Indian Railway Railway Reservation Enquiry 1345,1335,1330
Indian Railway Centralised Railway Enquiry 1330/1/2/3/4/5/6/7/8/9

Couriers/Packers & Movers
ABT Courier - 1800 44 8585
AFL Wizz - 1800 22 9696
Agarwal Packers & Movers - 1800 11 4321
Associated Packers P Ltd - 1800 21 4560
DHL - 1800 111 345
FedEx - 1800 22 6161
Goel Packers & Movers - 1800 11 3456
UPS - 1800 22 7171

Home Appliances
Aiwa/Sony - 1800 11 1188
Anchor Switches - 1800 22 7979
Blue Star - 1800 22 2200
Bose Audio - 1800 11 2673
Bru Coffee Vending Machines - 1800 44 7171
Daikin Air Conditioners - 1800 444 222
DishTV - 1800 12 3474
Faber Chimneys - 1800 21 4595
Godrej - 1800 22 5511
Grundfos Pumps - 1800 33 4555
LG - 1901 180 9999
Philips - 1800 22 4422
Samsung - 1800 113 444
Sanyo - 1800 11 0101
Voltas - 1800 33 4546
WorldSpace Satellite Radio - 1800 44 5432

Investments/ Finance
CAMS - 1800 44 2267
Chola Mutual Fund - 1800 22 2300
Easy IPO's - 3030 5757
Fidelity Investments - 1800 180 8000
Franklin Templeton Fund - 1800 425 4255
J M Morgan Stanley - 1800 22 0004
Kotak Mutual Fund - 1800 222 626
LIC Housing Finance - 1800 44 0005
SBI Mutual Fund - 1800 22 3040
Sharekhan - 1800 22 7500
Tata Mutual Fund - 1800 22 0101

Travel
Club Mahindra Holidays - 1800 33 4539
Cox & Kings - 1800 22 1235
God TV Tours - 1800 442 777
Kerala Tourism - 1800 444 747
Kumarakom Lake Resort - 1800 44 5030
Raj Travels & Tours - 1800 22 9900
Sita Tours - 1800 111 911
SOTC Tours - 1800 22 3344

Healthcare
Best on Health - 1800 11 8899
Dr Batras - 1800 11 6767
GlaxoSmithKline - 1800 22 8797
Johnson & Johnson - 1800 22 8111
Kaya Skin Clinic - 1800 22 5292
LifeCell - 1800 44 5323
Manmar Technologies - 1800 33 4420
Pfizer - 1800 442 442
Roche Accu-Chek - 1800 11 45 46
Rudraksha - 1800 21 4708
Varilux Lenses - 1800 44 8383
VLCC - 1800 33 1262

Insurance
AMP Sanmar - 1800 44 2200
Aviva - 1800 33 2244
Bajaj Allianz - 1800 22 5858
Chola MS General Insurance - 1800 44 5544
HDFC Standard Life - 1800 227 227
LIC - 1800 33 4433
Max New York Life - 1800 33 5577
Royal Sundaram - 1800 33 8899
SBI Life Insurance - 1800 22 9090

Hotel Reservations
GRT Grand - 1800 44 5500
InterContinental Hotels Group - 1800 111 000
Marriott - 1800 22 0044
Sarovar Park Plaza - 1800 111 222
Taj Holidays - 1800 111 825

Teleshoppin
Asian Sky Shop - 1800 22 1800
Jaipan Teleshoppe - 1800 11 5225
Tele Brands - 1800 11 8000
VMI Teleshopping - 1800 447 777
WWS Teleshopping - 1800 220 777

Others
Domino's Pizza - 1800 111 123

Cell Phones
BenQ - 1800 22 08 08
Bird CellPhones - 1800 11 7700
Motorola MotoAssist - 1800 11 1211
Nokia - 3030 3838
Sony Ericsson - 3901 1111

Power of Positive Talk

I remember my dad teaching me the power of language at a very young age. Not only did my dad understand that specific words affect our mental pictures, but he understood words are a powerful programming factor in lifelong success.

One particularly interesting event occurred when I was eight. As a kid, I was always climbing trees, poles, and literally hanging around upside down from the rafters of our lake house. So, it came to no surprise for my dad to find me at the top of a 30-foot tree swinging back and forth. My little eight-year-old brain didn't realize the tree could break or I could get hurt. I just thought it was fun to be up so high.

My older cousin, Tammy, was also in the same tree. She was hanging on the first big limb, about ten feet below me. Tammy's mother also noticed us at the exact time my dad did. About that time a huge gust of wind came over the tree. I could hear the leaves start to rattle and the tree begin to sway. I remember my dad's voice over the wind yell, "Bart, Hold on tightly." So I did. The next thing I know, I heard Tammy screaming at the top of her lungs, laying flat on the ground. She had fallen out of the tree.

I scampered down the tree to safety. My dad later told me why she fell and I did not. Apparently, when Tammy's mother felt the gust of wind, she yelled out, "Tammy, don't fall!" And Tammy did. fall.

My dad then explained to me that the mind has a very difficult time processing a negative image. In fact, people who rely on internal pictures cannot see a negative at all. In order for Tammy to process the command of not falling, her nine-year-old brain had to first imagine falling, then try to tell the brain not to do what it just imagined. Whereas, my eight-year-old brain instantly had an internal image of me hanging on tightly.

This concept is especially useful when you are attempting to break a habit or set a goal. You can't visualize not doing something. The only way to properly visualize not doing something is to actually find a word for what you want to do and visualize that. For example, when I was thirteen years old, I played for my junior high school football team. I tried so hard to be good, but I just couldn't get it together at that age. I remember hearing the words run through my head as I was running out for a pass, "Don't drop it!" Naturally, I dropped the ball.

My coaches were not skilled enough to teach us proper "self-talk." They just thought some kids could catch and others couldn't. I'll never make it pro, but I'm now a pretty good Sunday afternoon football player, because all my internal dialogue is positive and encourages me to win. I wish my dad had coached me playing football instead of just climbing trees. I might have had a longer football career.

Here is a very easy demonstration to teach your kids and your friends the power of a toxic vocabulary. Ask them to hold a pen or pencil. Hand it to them. Now, follow my instructions carefully. Say to them, "Okay, try to drop the pencil." Observe what they do.

Most people release their hands and watch the pencil hit the floor. You respond, "You weren't paying attention. I said TRY to drop the pencil. Now please do it again." Most people then pick up the pencil and pretend to be in excruciating pain while their hand tries but fails to drop the pencil.

The point is made.

If you tell your brain you will "give it a try," you are actually telling your brain to fail. I have a "no try" rule in my house and with everyone I interact with. Either people will do it or they won't. Either they will be at the party or they won't. I'm brutal when people attempt to lie to me by using the word try. Do they think I don't know they are really telegraphing to the world they have no intention of doing it but they want me to give them brownie points for pretended effort? You will never hear the words "I'll try" come out of my mouth unless I'm teaching this concept in a seminar.

If you "try" and do something, your unconscious mind has permission not to succeed. If I truly can't make a decision I will tell the truth. "Sorry John. I'm not sure if I will be at your party or not. I've got an outstanding commitment. If that falls through, I will be here. Otherwise, I will not. Thanks for the invite."

People respect honesty. So remove the word "try" from your vocabulary.

My dad also told me that psychologists claim it takes seventeen positive statements to offset one negative statement. I have no idea if it is true, but the logic holds true. It might take up to seventeen compliments to offset the emotional damage of one harsh criticism.

These are concepts that are especially useful when raising children.

Ask yourself how many compliments you give yourself daily versus how many criticisms. Heck, I know you are talking to yourself all day long. We all have internal voices that give us direction.

So, are you giving yourself the 17:1 ratio or are you shortchanging yourself with toxic self-talk like, " I'm fat. Nobody will like me. I'll try this diet. I'm not good enough. I'm so stupid. I'm broke, etc. etc."


If our parents can set a lifetime of programming with one wrong statement, imagine the kind of programming you are doing on a daily basis with your own internal dialogue. Here is a list of Toxic Vocabulary words.

Notice when you or other people use them.

Ø But: Negates any words that are stated before it.
Ø Try: Presupposes failure.
Ø If: Presupposes that you may not.
Ø Might: It does nothing definite. It leaves options for your listener.
Ø Would Have: Past tense that draws attention to things that didn't actually happen.
Ø Should Have: Past tense that draws attention to things that didn't actually happen (and implies guilt.)
Ø Could Have: Past tense that draws attention to things that didn't actually happen but the person tries to take credit as if it did happen.
Ø Can't/Don't: These words force the listener to focus on exactly the opposite of what you want. This is a classic mistake that parents and coaches make without knowing the damage of this linguistic error.

Examples:
Toxic phrase: "Don't drop the ball!"
Likely result: Drops the ball
Better language: "Catch the ball!"

Toxic phrase: "You shouldn't watch so much television."
Likely result: Watches more television.
Better language: "I read too much television makes people stupid. You might find yourself turning that TV off and picking up one of those books more often!"

Exercise: Take a moment to write down all the phrases you use on a daily basis or any Toxic self-talk that you have noticed yourself using. Write these phrases down so you will begin to catch yourself as they occur and change them.

PDF lo panduga chesuko....Sai