MAL - Memória Auxiliar do Lutieri

segunda-feira, abril 20, 2009

Baixando videos do ClicRBS

Jah tive que fazer isso no passado, hoje um amigo precisou fazer de novo. Toda vez perco 10 minutos pra descobrir como fazer. Resolvi colocar aqui pra nao esquecer mais.

Basicamente voce acessa a URL

http://mediacenter.clicrbs.com.br/templates/RequestUrlPlayer.aspx?contentId=YYYYY&channel=XXX


e troca o YYYYY e XXX pelos valores corretos que provalvelmente vao estar contidos no codigo fonte da pagina que tah mostrando o video.

A URL acima retorna um XML contento o endereco do .flv
Ai usa o vlc pra baixar e converter o baixa o arquivo e converte de algum jeito.

Abraco DDD

Marcadores:

Scrolling and Tapping stop working on xorg 1.5

I just updated from Xorg 1.3 to 1.5 and some functions on my touch pad are gone.

First of all, Xorg 1.5 depends on HAL to access the input devices but I decided to keep the old-fashion way(input devices sections on xorg.conf). So, first thing to do is disable HAL support on xorg.conf.


Section "ServerFlags"
option "AutoAddDevices" "false"
EndSection


Second of all, here is the configuration that I'm using to work both, scrolling and tapping clicks:


Section "InputDevice"
Identifier "Mouse0"
# Driver "mouse"
# Option "Protocol" "auto"
# Option "Device" "/dev/input/mice"
# Option "ZAxisMapping" "4 5 6 7"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "HorizEdgeScroll" "1"
Option "SHMConfig" "on"
Option "Resolution" "1600"
Option "rightedge" "5000"

#Enable Tapping
Option "TapButton1" "1"
Option "TapButton2" "2"

#Enable Scroll
Option "VertEdgeScroll" "1"

EndSection


Marcadores: ,

Case-insensitive search on man pages

Open /etc/env.d/70less.

Change from:

LESS="-R -M --shift 5"


To:

LESS="-I -R -M --shift 5"


Also make sure that /etc/env.d/00basic is setting LESS as the pager.

PAGER="/usr/bin/less"


The above instructions works for Gentoo.
If your distro doesn't have /etc/env.d/ you can add those lines to /etc/profile.

Marcadores: ,



Chat with Lutieri G. B.

Subscribe in a reader