I do what I can

Random thoughts from Mauricio Teixeira…

Posts Tagged ‘nerd

My home streaming solution with MediaTomb + Popcorn Hour + BubbleUPnP

with 4 comments

For a few years now I have been extremely satisfied with my Popcorn Hour (which I will from now on call PCH, for short): I can stream any kind of media from my Fedora desktop to my TV (I don’t have one of those smart TVs yet), it serves as a nice torrent server, and never gave me any headaches. A few days ago I decided it was time to “revamp” my setup, and try something new, so I came up with today’s solution.

I can use my Android phone not only to stream audio and video from my desktop, but also to control what is currently being played on my PCH.

Actually this all started when I decided it was time to use UPnP to play my music files, instead of direct NFS mounting (like I have been doing on the PCH since the beginning). NFS has been working just fine, but for music it’s incomplete: you can only see music the way the files are lay down on the hard drive. Using UPnP you can browse by artist, albuns, genres, etc. It’s a whole new experience.

Since I recently gave up on using Rhythmbox (which has an internal UPnP server) in favor of Banshee (which doesn’t), I had to use an alternative solution. After some quick consideration, given past experiences, I decided going with MediaTomb. Honestly I bet whatever I describe here applies to any UPnP server, but this is what I am using now.

During the course of setting up MediaTomb, I was tired of walking back and forth to the PCH (they’re not on the same room), so I decided to try an Android UPnP client. I didn’t browse the market for too long, and just installed whatever seemed reasonable. So far I’m satisfied with what BubbleUPnP does. Like with the UPnP server, I guess most (not all) of the UPnP clients will do what I describe here.

I set up MediaTomb by just reading pieces and bits of the documentation. Should not be too hard, but if comments in this post requests, I can write a small tutorial.

I like to say that UPnP is some kind magic protocol that make stuff work without hassle. So once MediaTomb was finally correctly configured I could see it from my Android phone, and I was able to play some music.

Then I notice something interesting: BubbleUPnP allows me to select a library (where the data comes from) and a renderer (where the data is “played”). When I saw the list of available libraries and renderers I notice the magic: I could select MediaTomb as library, and PCH as rendered. “Oh, what does it do?”

MAGIC. Now I can select files on my phone, hit play, and it will start playing on the PCH connected to my big TV and a great sound system (actually a 2.1, but it does sound great). The nicest thing about all of that is being able to browse through my files directly from my phone, then select what I want and play. It fixes one of the biggest PCH’s shortcomings while playing music: you can’t browse your library during playback.

Now you can think: if I have access to the remote control, why going through all this hassle? Actually it not only helps with the media selection problem I described before, but also I can select the next music from anywhere I am while walking around in my apartment. Also it totally integrates all my media players: I can see all files I have stored on the desktop, phone, PCH, PlayStation, whatever. It’s so fun.

Before you ask: I do intend to have a NAS at some point, and concentrate all my media files in one place. However there are some files that need to live separately on either one of my devices due to how they’re stored or what do with them. I won’t bother you with the details.

Next: I’m going to try to stream my music over internet (no music services, just plain old dynamic DNS + ssh).

Oh, please let me know about your home streaming solutions. I’m curious about how you guys do it. Just remember: no Mac or Windows. 🙂

Well, anyway, this is fun, so let me go back and play. 😀


Written by netmask

dezembro 27, 2011 at 19:43

Publicado em Uncategorized

Tagged with , , , ,

Limpando o Twitter / Twitter clean up

leave a comment »

— pt_BR

Fiquei um tempo sem usar o Twitter, e agora que voltei a usar percebi que está uma zona. Decidi fazer uma limpeza.

A partir de hoje vou dar unfollow no Twitter de todos os contatos que também tem perfil no Facebook. Os que sobrarem, vou procurar seus perfis.

Motivo: muitos utilizam a aplicação do Twitter para Facebook, que replica os posts. Isso faz com que eu tenha muitas mensagens duplicadas no Tweetdeck, ou que eu leia muita coisa repetida se estiver lendo nos aplicativos/sites nativos.

Vou manter o Twitter o mais limpo possível, provavelmente segurei apenas empresas e sites de notícias, pois é mais fácil/interessante gerenciar via Twitter do que feed RSS.

— en

I have not been using Twitter for a while, and now that I am back using it I notice it’s a mess. I decided to clean it up a little bit.

Starting today I will unfollow on Twitter all contacts that also have a Facebook profile. The remaining ones, I will look for their profiles.

Reason: many use the Twitter for Facebook app, that replicates all posts. It creates a lot of duplicate messages on Tweetdeck, or forces me to read many messages twice if I’m browsing on the native apps/web sites.

I’m going to keep Twitter as clean as possible, probably will use it only to follow companies and news web sites, because it seems easier/more interesting to manage them via Twitter than RSS feeds.

Written by netmask

dezembro 21, 2011 at 10:55

Publicado em Uncategorized

Tagged with , , , ,

Tilt-shift video using Bash

leave a comment »

I like to play with tilt-shift videos every once in a while, and usually it needs very complex tools to make. So this time I decided to use the simplest tool ever: a Bash script.

You can see the final result here. Continue reading to know how I did it:

Oh, by the way, this is a very nerdy way of doing it. Not a 1-2-3 method. I did this while bored, but didn’t worry about details. Sorry.

Honestly, I’m using a series of pictures to create a video. In this case I used the Time Lapse application on my Nokia N900. I took a total of 644 shots, one every second.

With all the shots ready, I Google around a little bit, found this interesting web site with very useful hints, and created the following Bash script: tilt_shift_video.sh

The Time Lapse application creates a series of files named FileX.jpg, where X is a number from 0 to the number of pics you have taken. So if you want to use the same script, but did not use the same application to take the pictures, you need to edit the script to suit your file naming (or rename your files).

The tilt-shift effect is actually a blur mask applied to all of the pictures, like this:

So if you want to use the same script, but you want to blur a different position on the picture, you need to edit line 12, and modify the parameters for “sparse-color“. Of course there are a number of other options you can change, so you might want to read the docs to understand.

After the script finishes processing all of the pictures, it will then finally compose all of them together to form the video.

Well, I hope this is somewhat useful for anyone.

If you have any hints, please share on the comments.

Written by netmask

julho 2, 2011 at 17:10

Publicado em Uncategorized

Tagged with , , , ,

Eu, o Facebook e o Twitter

with 2 comments

Em um passado negro da minha vida já tive Orkut. Um dia conheci o Facebook, me inscrevi e fiquei nos dois. Depois cometi orkuticídio e fiquei só no Facebook.

Daí veio um tal de Twitter, febre mundial. Quem não tivesse Twitter não era nada. Fui lá, encarei o negócio, e comecei a usar fervorosamente através de qualquer dispositivo que eu tivesse disponível (desktop, laptop, celular, e os cambaus). O Facebook ficou abandonado às traças.

Depois não sei que bicho me mordeu, voltei a usar Facebook. FB pra lá, FB pra cá, esqueci do Twitter.

Agora, repensando em tudo isso, começo a pensar em twitticício. O Twitter é legal pra mensagens rápidas, mas é não é uma experiência “completa”. Sempre parece que falta alguma coisa. O Facebook cobre as lacunas de multimídia, interatividade, e integração. O Twitter é one way, você manda mensagem e lê a dos outros, mas relacionar o seu comentário ao comentário de alguém, principalmente se você não conhece esse alguém, é simplesmente um parto. Isso te faz perder um monte de conversas interessantes ou não, mas no mínimo te faz perder a interatividade com “os amigos dos amigos”.

E qual o objetivo desse post aqui no meu blog? Nenhum específico. Eu só estava pensando nesse assunto, e resolvi escrever, compartilhar meu ponto de vista, e explicar porque ando sumido do Twitter.

Alguém pensa parecido?

Written by netmask

maio 18, 2011 at 20:15

MeeGo / Qt – Alive and Kicking

with one comment

“What’s going on around MeeGo now? Nokia goes for MicroSoft, and Intel does what? Signals are fairly mixed for all of us working on MeeGo, and even more for the people following the development from the distance. ”
“The arguments about MeeGo being not mature are not true, these things are all over already. All pieces are in place, and the integrated next release of MeeGo 1.2. will give very solid basis for the products now.”
“To summarize, MeeGo and Qt are strongly alive, gaining momentum to move to the next phase.”

Read the full blog post.

Written by netmask

fevereiro 24, 2011 at 23:31

Publicado em Uncategorized

Tagged with , ,

RHCDS: Done!

with 2 comments

Oh yeah! I just received my RH436 exam results, and I passed!

So, after passing RH401 and RH423, I am now RHCDS (Red Hat Certified Datacenter Specialist)!

Two more for RHCA. Stay tuned. 🙂

Written by netmask

janeiro 18, 2011 at 01:25

Publicado em Uncategorized

Tagged with , , , ,

Os números de 2010

leave a comment »

Os duendes das estatísticas do WordPress.com analisaram o desempenho deste blog em 2010 e apresentam-lhe aqui um resumo de alto nível da saúde do seu blog:

Healthy blog!

O Blog-Health-o-Meter™ indica: Uau.

Números apetitosos

Featured image

Um duende das estatísticas pintou esta imagem abstracta, com base nos seus dados.

Um navio de carga médio pode transportar cerca de 4.500 contentores. Este blog foi visitado 19,000 vezes em 2010. Se cada visita fosse um contentor, o seu blog enchia cerca de 4 navios.


In 2010, there were 25 new posts, growing the total archive of this blog to 416 posts. Fez upload de 11 imagens, ocupando um total de 3mb. Isso equivale a cerca de uma imagem por mês.

The busiest day of the year was 12 de março with 692 views. The most popular post that day was Email to SMS gateway in Linux.

De onde vieram?

Os sites que mais tráfego lhe enviaram em 2010 foram br-linux.org, google.com.br, efetividade.net, spam-filtering-service.net-us.info e zago.eti.br

Alguns visitantes vieram dos motores de busca, sobretudo por virtualbox to kvm, convert virtualbox to kvm, nerd pride, firefox crash e virtualbox kvm

Atracções em 2010

Estes são os artigos e páginas mais visitados em 2010.


Email to SMS gateway in Linux março, 2010
9 comentários


Gnome Notification Area Application in Python (English) abril, 2009
9 comentários


Convert from VirtualBox to KVM março, 2010
2 comentários


Driblando o traffic shaping junho, 2007
5 comentários


Enabling/Disabling Compiz from command line novembro, 2007
5 comentários

Written by netmask

janeiro 9, 2011 at 22:08

Publicado em Uncategorized

Tagged with , , ,