how to download from online radios/streams

December 23rd, 2009

I’m wondering all the time when I’m listening to an online stream (like play.fm, soundcloud, ….) why don’t they allow users to download those mixes (maybe I want to listen to that mix on my iPod when I’m travelling).

The thing is, that you download the stream while you’re listening to it. If you didn’t do that you couldn’t listen to it:)) There’s a method which _might_ work to download from these kind of online streams. The only thing you need is a browser with which you can check what HTTP requests are sent (e.g. Firefox with Firebug) and a download utility which you can tell an input URL and an output file (like wget).

The trick is simple. Open the stream in your web browser while listing the HTTP GET or POST requests. Once you start playing the stream, there should be an HTTP request to the server which tells the browser which stream to play. In Firebug the size of each response is shown, so you can easily find the needle in the haystack (as the different elements of the page are just in KBs but streams are usually couple of MBs). So if you copy the URL of that HTTP request, you _might have_ the direct URL of the stream, and you _might be able to_ ‘download’ it with a download manager (like wget http://dsaihflhe.com/soidghfisruhglsa -O myoutputfile.mp3).

That’s all! :))

Note: I have never tried this, so the steps above work in theory.

a tribute to somebody…

September 29th, 2009

… who i realized that i love much (but things have not worked between us).

sunshower

sunshower…

countdown..

September 8th, 2009

10 days until my one-way flight… and counting

the answer

June 27th, 2009

there are a lot of people who sacrifice their lives to solve the ultimate question of the life, the universe and everything. but the answer is just lying right in front of us: life, universe and everything is nothing else, just an irreversible process. nothing more, nothing less. that’s all. fullstop.

yui batch compression tool updated, 1.2.0.0

June 3rd, 2009

console version added to help automation. gui version works the same. check it here

yui batch compression tool updated

May 19th, 2009

i’ve improved my tool a bit to read .aspx input, etc etc. check here

senye-papir.com launched

May 12th, 2009

finally, it has been launched. best viewed with goolge chrome (like most of the pages on the whole internet:)).

check link. 

yui batch compression tool

May 11th, 2009

in the last few weeks i’ve been playing with extjs. in the last few days i had to deploy my projects. i’ve searched the net for js minimizers, but i haven’t found any batch compression tool, so i’ve created one. i’ve created a microsite for the tool, check it here. feel free to use it, hope this helps… 

tartalek

April 11th, 2009

“ilyen a tartalek kozephatvedunk… - nezett Gerrard hatra” - by HajduB, miutan Agger egy hatalmas golt lott 30rol

luna screenshots, part 0

March 20th, 2009

sooooo, long time no post, BUT project Luna is getting better and better, here is the first screenshot of the callgraph control. it shows the the System.Windows.Forms.Form.Close() method’s call graph with caller depth 1 and callee depth 2. highlight is working, pieces are put together… I LOVE IT!

undo manager

December 8th, 2008

having a laptop, my vsts2k8sp1 is running ‘always’, when switch off my laptop i always use ‘hibernate’. when i get back to work (turn on my laptop) i usually don’t need to log back in to tfs (as i connect to my vpn).

yesterday there was a “big” check-in of a team member of a team project. after getting the latest version and pressed the ‘play’ button (F5) i got an error message for about 15-20 times:

Error connecting to undo manager of source file ‘xxx.cs’. where xxx.cs was ‘AssemblyInfo.cs’ in most cases. i’ve found a few forum threads/posts on the net with this error message but all of them relates to asp.net webform’s .designer.cs files.

excluding these files, then rebuild and put back to project did not solve the problem.

BUT! restarting visual studio _solved_ the problem. i think it might be a bug somewhere in tfs explorer or some team feature…

(L)

December 5th, 2008

since i’ve been to paris, i LOVE cheese with tapenade

new common album - horrible

December 4th, 2008

i’ve listened to the new common album, universal mind control. NEVER happened before, but i didn’t like ANY of the tracks, and i just DELETED the whole album. i can’t understand how can an artist make such an album after ‘like water for chocolate’ or ‘finding forever’. it’s a shame..

paris waiting for me

November 25th, 2008

last wednesday i got a msg from vigsterkr. next day we’ve booked the flight. this thursday we’ll be in paris. \m/

takeoff

November 17th, 2008

i got home today, looked up to the sky and i saw a plane taking off. i know i’ll be sitting on one in a short time with a one-way ticket. can’t wait for it.

elections08

November 5th, 2008

“barack most nyom egy jo nagy barackot a vilag fejere” ;]

October 25th, 2008

one life has ended. another has begun…

mcts x3

September 29th, 2008

70-529 passed.

mcts x2

September 25th, 2008

today i’ve passed 70-528. \m/

yesterday’s result processed, so check this:

my mcts logo :)

:D

ms certified, again

September 24th, 2008

it’s been a long time since i’ve written my last post… such is life;] today i’ve passed 70-526, tomorrow i’m going to 70-528. and also queueing other exams (70-529, 70-431) and, if i get a voucher for vs2008 exams i’ll queue 70-561, 70-562, 70-505, 70-504, 70-502. nice lineup, if i’m through of these my level of satisfaction will increase much :)

ms certified

July 2nd, 2008

so, today i’ve passed my first Microsoft exam. started with 70-536. now queueing the others… :)

ZT

June 10th, 2008

guess what ZT means! :) i’ll invite you for a beer if you give the good answer first ;)

ielts

June 6th, 2008

got my results. now i’m a proud owner of an ielts academic module language exam, 7 points of 9. \m/

environment variables in .net, windows 2003 vs 2008

June 3rd, 2008

I was playing with sandcastle’s latest version, and found an interesting difference between windows 2003 and 2008 (rtm) in handling environment variables.

Sandcastle installer creates a new system variable called DXROOT (which has usually a value of “C:\Program Files\Sandcastle\”). As I tried to use the simple GUI from sandcastle’s example folder on a windows2008 system, it never ran due to an unhandled DirectoryNotFoundException:

{”Could not find a part of the path ‘C:\\Program Files\\Sandcastle\\Examples\\generic\\%DxRoot%\\ProductionTools\\ChmBuilder.config’.”}

However, on a windows2003 system, it ran perfectly. Interesting, huh? I’ve examined the code of the GUI app, and there’s a call while initialization which looks like this:

Environment.ExpandEnvironmentVariables( @”%DxRoot%\ProductionTools\ChmBuilder.config” );

So, here is a small so-called test: 

Start VS2008 | Create New Console Application | try the following code:

string evName = “dxroot”;
var def = Environment.GetEnvironmentVariable( evName );
var machine = Environment.GetEnvironmentVariable( evName, EnvironmentVariableTarget.Machine );
var process = Environment.GetEnvironmentVariable( evName, EnvironmentVariableTarget.Process );
var user = Environment.GetEnvironmentVariable( evName, EnvironmentVariableTarget.User );
var exp = Environment.ExpandEnvironmentVariables( “%dxroot%” );

Console.WriteLine( string.Format( “def: {1}{0}machine: {2}{0}process: {3}{0}user: {4}{0}expand: {5}”,Environment.NewLine, def, machine, process, user, exp ) );

Result on windows 2003:
def: G:\Program Files\Sandcastle\
machine: G:\Program Files\Sandcastle\
process: G:\Program Files\Sandcastle\
expand: G:\Program Files\Sandcastle\
user: [null]

Result on windows 2008:

def: [null]
machine: C:\Program Files\Sandcastle\
process: [null]
expand: [null]

user: [null]

If you look at Environment.GetEnvironmentVariable method’s source, you can notice that if the passed target is Process, there’s a winapi call, while in case of User or Machine, it looks up the registry. ExpandEnvironmentVariable also calls winapi.

So it seems that environment variables on machine level not always behave as process level variables in windows 2008.

[update @ 06/06/2008]

it seems it’s an OS feature (or bug). after logging out and then in, results are the same on both systems.

s.j.p.

June 3rd, 2008

thanks god, i’m not alone in this world… :DD