Thoughts and tutorials on programming

Monday, August 03, 2009

how to proxy to a port when your firewall blocks that port [using mod_proxy instead]

For me, it was getting some external server to forward all requests on to that port.

I realize you can use ssh -Rport:host:port as well (through some other server), however ssh tunnelling was at times interrupted and didn't have a retry or restart, it seemed, at least that I knew of.

Anyway the final forward was:

1) create new subdomain that will forward it on.

2) edit apache's conf [apache.conf in my example] to forward things on

Order deny,allow
Allow from all
ServerName audio-mp3.ibiblio.org.8000.doachristianturndaily.info
ProxyPass / http://audio-mp3.ibiblio.org:8000/
DocumentRoot /home/rdp/www/faithpromotingstories.org

Order deny,allow

Allow from all

ServerName audio-mp3.ibiblio.org.8000.doachristianturndaily.info

ProxyPass / http://audio-mp3.ibiblio.org:8000/

3) install forwarders:

sudo a2enmod proxy

sudo a2enmod proxy_http

4) restart apache

5) enjoy the tunes [in my case].

7 comments:

Roger Pack said...

unrelated, but here are my thoughts of a future "dvd content controller/skipping" system. Or in other words

--- [originally at http://betterlogic.com/roger/?p=1043]


user contributed movie scene selection, or, past clearplay
Filed under: Uncategorized — rogerdpack

I envision having a system where users can contribute their own EDL’s, or filters, for DVD’s. These filters tell you when to stop, when to start, when to continue but muted.

Then to use them you right click a menu associated with the DVD in the drive, and select from the available filters for that DVD.

There is a central repository for it that provides for auto downloading of all filters, and auto downloading of filters related to a DVD when it is first inserted.

The filters can also do more than just mute or skip–they can jump from one spot to another [ex: inserting outtakes, with and without choosing sections of the screen of said outtakes to insert], insert outside media into the middle of playing it [ex: sounds to play over profanity, user contributed soundtracks/voice overs, etc.]

Comments (3)
3 Comments »

oh yeah and users can upload clips and such, stored in a central repository, OR keep them scattered across the internet, or distributed P2P to each other [legal clips, mind you], which clips will be inserted into playback of said DVD/blu-rays. This could be integrated into a TV set top box or on a computer program, or integrated into a media player on a TV or within the TV itself, and could also be used offline, in that they could download clips/filters to their computer and use them off line.
They could also make home copies of the DVD [for home use only] which had the clips inserted into them [and/or segments removed, etc.]
It could allow for feedback/evaluation or comments on the various filters available, as well.

Comment by rogerdpack — March 3, 2009 @ 7:54 pm |Edit This


so users can upload their own content to filter and/or add to a DVD. Users can also rate each filter for a certain setting of each of various categories.

Comment by rogerdpack — March 11, 2009 @ 3:40 am |Edit This


Users can thus specify “dvd/blu ray sections” and mark those sections with flags as to what type of content they play.

This list would be used for example: to play through a DVD and skip boring scenes, to insert outtakes back into a DVD, to skip from song to song [watching it like a music video] within a musical arrangement, skip offensive content, etc.

It would support the use of an external coding device to allow creation of a new DVD/blu-ray from the first that constitutes just those sections, and/or edited sections according to user specifications (not destroying the original or changing it in any way–similar to inserting/tearing pages out of a book or skipping a track when playing a CD at home.

Roger Pack said...

also interesting would be to allow “user content controlled player” to specify overlays to the screen as things play, and/or zoom in on certain parts [i.e. basically apply a filter to each image as it is inserted--whether zooming or modifying it somehow during playback].

Potential usefulness: add a red circle around flaws in a movie, insert [textual] user feedbacks over a movie [a la youtube currently], etc. Or zoom in on certain parts to emphasize them for some reason. Users could specify which frames and filters to apply to each frame, or a start and stop time. Appropriate filters would be anything in the literature re: digital imaging [smoothing, zooming, applying overlay image(s), panning, etc.]. This should be considered a separate invention if covered by some other existing patent.

Roger Pack said...

The key here is control. If there are a list of sections [by times or frames or "matches this sound or this visual pattern"] each section has some rating, for example one might be "boring level 7" or tagged with some tag like "boy looks at ground for 5 minutes"
Users can then arbitrarily select levels or specific tags or specific sections to skip. It can then either play it back from the media itself or rip from it and create a new media that includes the selections [which could then be burned to another media, if desired]. It offers extreme control including per-DVD, per-viewing, global settings, etc.

And user feedback per setting/tag, etc.

Roger Pack said...

can also query the user, as they come to a scene, if they want to skip or not [per scene]

Roger Pack said...

also can have per - user settings, per-DVD, parental controls, etc.

Also can be either embedded in a set-top box [like a DVD player] or in its own box just outside the DVD player, or in a remote for a DVD player, or in a computer program to watch or rip on the computer itself. May or may not include other programs to complement its ability, like audio enhancers and visual, etc.

Roger Pack said...

also it can burn to DVD's, etc. (to new media) should the user so desire, then be replayed on any normal player in its entirety.

Roger Pack said...

Also it can be applied to streams, too--while the incoming stream is coming in it can edit portions [possibly acting as a middle man between the stream and the end program].

Contributors

Followers