Skype icon disappeared

Hi folks,

 

Today I will explain how did I do to show the Skype icon in the tray after it  disappeared in ubuntu 11.10 upgrade.

The problem it that when I click in the close button I can’t get the Skype window again unless I kill it in terminal and restart it.

The solution I founded here is this Ubuntu forum thread.

The problem and solution is that, some applications can be whitelisted as being allowed to put an icon there.

 

On terminal:

 

gsettings get com.canonical.Unity.Panel systray-whitelist

 

gave me: ['JavaEmbeddedFrame', 'Wine', 'scp-dbus-service', 'Update-notifier', 'Skype']

So then skype must be added to the whitelist. So add skype like below:

 

gsettings set com.canonical.Unity.Panel systray-whitelist “['JavaEmbeddedFrame', 'Wine', 'scp-dbus-service', 'Update-notifier', 'Skype']”

 

Now the icon should appear in the clock bar like this:

 

 

If you want skype to start at login, and sit in the tray, you need another little trick because the whitelist only works if skype is started manually after login. Add this to the startup list:

gnome-panel –replace

 

And it all works perfectly, hope it works for you too.

 

Bye

Share on Twitter

Using SSH for access a webpage with a different IP

Hi folks,

 

Today I had the a problem for downloading a article from a academic magazine. Usually this websites uses your IP to allow/deny the restrict area use, the problem is that I am at home and don’t want to go to work just to download it.

 

You can discover the IP that you are using here

 

Here is my IP WITHOUT proxy:

 

 

The solution:

Use the SSH for access the webpage with my Work’s IP

 

How to do it?

On terminal:

ssh -p <ssh_port> -D <port_to_proxy_on_localhost> <user>@<ip_to_use>

Here is a axample:

ssh -p 22 -D 8080 my_user@143.107.223.XXX

 

On browser (firefox) go to (you can also do it in chrome or by Ubuntu proxy settings):
Edit -> Preferences -> Advanced -> Network -> Settings


and than setup “Manual Proxy Configuration” and set SOCKS HOST like 127.0.0.1 and PORT like the port you choosed (in this this case 8080), then click OK


 

Here is my IP WITH proxy

Now you can surf in the web using the Work’s IP and get the same permissions from websites as if you where there.

That’s it folks. Hope you enjoy

Bye

Share on Twitter

API google Geocodificação

Pessoal,

 

Achei uma API do google para geocodificação, foi extremamente útil para uma aplicação minha, aqui está o link.

Aqui esta o script perl usado que fiz Geocodification app

 

[]s

Share on Twitter

GSM, EDGE, WCDMA, GPRS, HSDPA – Conexão de dados Samsung Galaxy

Pessoal,

 

 

Tempos atrás estava com dúvida sobre a velocidade da conexão de dados pois não entendia as siglas (E, 3G, H) que apareciam na tela no meu celular ao lado do sinal da operadora e também não encotrava no manual do produto e após algum tempo pesquisando achei o significado.

  • G    (GPRS – General Packet Radio Service)→ Primeira versão de transmissão de dados pelo sistema GSM. Suporta uma conexão dados de 40 a 60 kbps.
  • E    (EDGE – Enhanced Data rates for GSM Evolution) → geralmente é classificada como um padrão 2,75G pois é uma melhoria feita nas redes 2,5G (GPRS), introduzida inicialmente nos EUA por volta de 2003. Suporta uma conexão da dados até 384 kbps
  • 3G  (UMTS – Universal Mobile Telecommunications Service) → é uma das tecnologias de terceira geração, suporta uma conexão de até 2 Mbps para comunicações em ambientes internos e pelo menos 144 kbps para ambientes externos
  • H    (HSDPA – High-Speed Downlink Packet Access) → geralmente é classificada como um padrão 3,5G pois é uma melhoria feita através de um upgrade de software nas redes 3G (UMTS),  que suporta taxas de conexão de até 10 Mbps

 

É isso pessoal

 

Abraços

Share on Twitter

Mate Pair and Paired-End Sequencing – Illumina

Hi folks,

 

 

Today I will post my recurring question about the differences on Mate Pair and Paired-End Sequencing technologies used in Next-Gen sequences.

 

Unfortunately because of technology limitations you can not read long reads, just it their ends (from 35 to 100 bp depending of the chemical and sequencer), to workaround this serious limitation, it was designed this two methodologies.

 

First of all my sources was the own Illumina Website, here is the link for Mate Pair and the link for the Paired-End Seq.  As appear in the website and many articles, these technologies are very useful when you deal with De Novo Sequencing (Assembly a entire Genome) or repetitive parts of genome, why once you have a well aligned sequence and you know the distance between the two sequences you can use the first one as a anchor to determine the second sequence position.  I think the easiest one, is the Paired-End so I will start with it.

I recommend looking at this video for those who know nothing about Illumina technology.

 

Paired-End

 

Paired-End sequecing

It is a modification of the shotgun sequencing(where your sequences have no pairs)

Once you have the DNA fragmented in 200-500 bp, you add adapter in both ends of the sequence of interest (A1 and A2),

In the forth step you generate clusters (spots on flowcell of  same sequences  made by amplification).

Finally after the cluster generation you go to sequencing step (fifth and sixth steps) where using modified dNTPs and primers for know sequences (SP1 and SP2) you read the reads by light signals.

Because you know in the preparation you made sequences of know distance you can/must input this information in your aligner or assembler (depend on your application), because its a very helpful information that will make these softwares to make less mistakes.

Remember that the orientation of a pair of reads (R1/R2) must appear in the aligner output like

(→←) respectively.

 

 

 

 

 

 

 

 

Mate Pair

Mate Pair sequecing

In the mate pair the sequence fragmentation is made in bigger fragments (2-5 kb).

A addition of a Biotin in each 5′ ends is done (step 3).

The sequence with correct addition of Biotin will circularize and after a wash, the sequencing with non-circularized fragment will be thrown away (step 4)

In step 5 and 6, the circularized fragments will be cutted with the biotin in the middle and size-selected (400-600 bp).

And than the sequencing is done normally: adapter with primer sequence addition (step 7), the fragments will be spoted and clutered (step 8), and sequencing (step 9 and 10).

Because you know in the preparation you made sequences of know distance you can/must input this information in your aligner or assembler (depend on your application), because its a very helpful information that will make these softwares to make less mistakes.

Remember that the orientation of a pair of reads (R1/R2) must appear in the aligner output like

() respectively.

 

 

 

 

 

 

 

 

 

 

 

 

Thats it folks, I hope you enjoyed.

 

Bye

Share on Twitter

How to set up span filter in wordpress comments blog

Folks,

 

Some time ago I was very angry with the tons of span messages in my blog that I receveid almost every day with stupid links, I almost give up to have a blog.

 

Fortunately I googled it and find here a way to filter this stupid comments. The solution was the software A-KIS-MET:

Its not too simple to active this plugins (like just add and active the plugin) but I am sure it worth it.

 

How to active it:

  1. Go to your blog dashboard and Plugins > Add New, search for AKISMET and install it.
  2. Now active it, you should see a message like this: “Akismet is almost ready. You must enter your WordPress.com API key for it to work. ”
  3. AKISMET is not a free software, so you must buy a license to use it. Fortunately there is a way to workaround this little problem if you have an account in wordpress.com (If you dont, is a good time to create it, you can do it here) so go here, fill with your e-mail and you should receive a email with the API Key in some seconds.
  4. Fill the Key in the form. Now your blog is not going to receive more stupid spans.

HINT: In the options section of KISMET check the box “Automatically discard spam comments on posts older than a month.” and then click on the buttom “Update Options”.

 

Thats it folks

 

Share on Twitter

How To: Fix “Failed to download repository information Check your Internet connection.”

Hi folks,

 

Some days ago I had a problem with my ubuntu update manager, it was displaying a error message and the update manager was not working.

 

 

So I googled it and find the solution here.

 

Run in the terminal to search the broken repository

sudo apt-get update

 

The broken repository should appear like this

 

 

Now just go to System > Administrator > Update Manager, click on button on the windows bottom Configuration, Click the Other Software tab.

Find the repositories which caused the failure on the update and uncheck them and then close the Software Centre.

 

Run, once again and should work:

sudo apt-get update

 

 

Thats it folks

 

Share on Twitter

Como instalar Latex no VIM

January 5, 2012 1 comment

Olá pessoal

Alguns dias atrás eu tive que instalar o Latex para escrever minha tese, é bastante simples, basta instalar os seguintes pacotes:

sudo apt-get install tex-common texlive-base texlive-base-bin texlive-common texlive-doc-base texlive-latex-base texlive-latex-extra abntex


O editor que texto que eu utilizo é o VIM e para uma referência biliográfica organizada recomendo o Texmed.

É isso pessoal

Abraços

Share on Twitter

Como instalar o corretor ortográfico (Vero) no Vim

January 5, 2012 1 comment

Olá Pessoal,

 

Hoje meu problema foi um pouco mais complexo, estou escrevendo minha tese e preciso do corretor ortográfico para usar no VIM já que decidi usar o Latex, o que recomendo para os que estejam na mesma situação. Descreverei abaixo o passo a passo para habilitar a correção em português, que se chama Vero e é muito bom.

 

Baixando os arquivos e descompactando os dicionários

 

Primeiro precisamos fazer o download da versão atual do pacotes de língua Vero, disponível no site do BrOffice.

 

Criaremos uma pasta para  baixar, descompactar e gerar os arquivos de dicionario para o Vim.

mkdir /Desktop/vero
cd /Desktop/vero
wget “http://www.broffice.org/files/Vero_pt_BR_V209AOC.oxt”
unzip -x Vero_pt_BR_V209AOC.oxt

 

O próximo passo é gerar o dicionário compilando os arquivos que foram descompactados acima, dentro do vim digite:

:mkspell pt pt_BR

 

pressione Enter para continuar e ele irá compilar  e gerar o arquivo pt.utf-8.spl

Adicionando o dicionário gerado no seu Vim

Para replicar para todos os usuários da máquina, copiei, como root, o arquivo pt.utf-8.spl para a pasta /usr/share/vim/vim*/spell/

sudo cp /var/tmp/vero/pt.utf-8.spl /usr/share/vim/vim*/spell/



Ou se você não tem permissão de root na sua máquina ou deseja adicionar apenas para seu usuário, copie o mesmo arquivo para (se não existir basta cria-la) a pasta:

sudo cp /var/tmp/vero/pt.utf-8.spl ~/.vim/spell

 

Para finalizar basta avisar para o seu Vim que você deseja utilizar o corretor ortográfico em português e inglês, novamente dentro do vim digite:

:set spell spelllang=pt,en


Para desabilitar o corretor:

:set nospell


DICA:
Para iniciar o corretor toda vez que abrir o Vim adicione esse comando em seu ~/.vimrc sem os dois pontos (:)

 

Utilizando o correto e atualizando o dicionário
Com o cursor sobre a palavra desejada

]s => vai para a próxima palavra

[s => vai para a palavra anterior

z= => mostra a lista de sugestões para a palavra

zg => adiciona a palavra sob o cursor no dicionário, assim ela não será mais marcada como errada

zug => desfaz a última palavra adicionada

zw => remove a palavra sob o cursor do  dicionário, assim ela será maracada como errada

zuw=> desfaz ultima palavra removida


DICA:
Você pode adicionar os comandos mais usados ao ~/.vimrc e dessa forma criar um atalho para elas

map <F2> z=<CR>
map <F3> zg<CR>

 

Se você não gostou da forma como o Vim sinaliza as palavras erradas basta adicionar os comandos abaixo no seu ~/.vimrc

highlight clear SpellBad
highlight SpellBad term=reverse cterm=underline

 

É isso pessoal.

Artigo original da UFMG

Share on Twitter

Banco do Brasil no Android

January 4, 2012 2 comments

Olá,

 

Alguns dias atrás comprei um Galaxy W (Android) e quis cadastrar meu celular para efetuar pagamentos e transferências via celular uma vez que quando você instala a aplicação pelo market e não faz a liberação do aparelho você só consegue realizar consultas. A liberação é extremamente simples e como informado depois de acessar o sistema pela primeira vez pode ser feito de 2 maneiras:

  1. Através do caixa eletrônico
  2. Através do Internet Banking

Lógicamente como eu queria usar na hora eu fiz pela internet e para isso basta:

  1. Acessar sua conta pelo celular pela primera vez (Casdastrar um apelido para o aparelho, no meu caso SMART)
  2. Acessar o internet banking de um computador cadastrado
  3. Ir nas opções Serviços e Segurança -> Serviços Via Celular -> Smartphone/tablet
  4. O aparelho com o apelido que você definiu no item 1 de aparecer listado, agora basta selecionar e autorizar
  5. Você pode definir uma data limite para que o aparelho fique liberado ou basta deixar em branco caso deseje que seja por prazo indeterminado

É isso pessoal

Abraços

Share on Twitter