TechEvangelism

Subscribe to RSS feed

Sticky post

Projeto

, , , ...

Usarei este blog para armazenar o conteúdo dos meus empenhos em evangelização tecnológica.
Algumas entradas estão em segunda pessoa (meio que em segunda, usando pronomes de tratamento), outras em terceira pessoa.

This blog is for Tech Evangelism!

Opening Dolphin from Firefox and other gtk applications (on Ubuntu)

,

I have tested only on Ubuntu, but this might apply to some other distros.

Some people follow this: https://help.ubuntu.com/community/DefaultFileManager

but it makes nautilus useless. That's bad!

Instead of changing the way nautilus works, you just want to get rid of it - and let other people use it if they want.

As sudo:
1 - Open the files:
/usr/share/applications/nautilus-folder-handler.desktop

and
/usr/share/applications/kde4/dolphin.desktop


2 - Replace the contents of the MimeType of the dolphin.desktop with the one from nautilus-folder-handler.desktop (replace the entire line).

3 - Run
update-desktop-database -v



Here it worked out of the box... if it doesn't work for you, don't worry.

1 - Open
/usr/share/applications/mimeinfo.cache


2 - Locate each occurrence of kd4-dolphin.desktop and place it before any other option.
For instance:
x-directory/gnome-default-handler=nautilus-folder-handler.desktop;kde4-dolphin.desktop;


should be:
x-directory/gnome-default-handler=kde4-dolphin.desktop;nautilus-folder-handler.desktop;



As a bonus, each user can have a mimeinfo.cache on
$HOME/local/share/applications
and specify it's own order. No logout required.



It's on a per user basis, it won't be smart enough to detect if you're running KDE or not. But you are wink .
For instance, you can make a script to make copies of the mimeinfo.cache file locally and execute scripts when starting your desktop environment to make a symbolic link to the right mimeinfo.cache.

At least for a per user basis, you can leave one safe system default (GNOME) and one for you.


Note: Firefox uses x-directoroy/gnome-default-handler instead of x-directory/normal, as one would expect.
Note 2: The MimeType change is required.


Firefox 3.0

, , , ...

Baixe o Firefox 3, tenha um bom navegador em mãos e ajude a Mozilla a entrar no guiness book.

A Mozilla pretende que o Firefox 3 seja o programa mais baixado em 24 horas.

Faça sua parte:
Download Day - Portuguese


wink

History...

, , , ...

$ history|awk '{a[$2]++ } END{for(x in a){print a[x] " " x}}'|sort -rn|head
1187[1] cd
667 cvs[2]
607 ls
579 export[3]
379 l[4]
311 cat[5]
309 top
255 fg[6]
245 git
213 emacs[8]




1 - Yeah... I got 11172 lines in my history.
2 - I don't like CVS, but I update the Mozilla source code often.
3 - 529 from them is for exporting a variable used to choose what Mozilla tree to build.
4 - Alias to 'ls -CF'.
5 - One of my main text editors.
6 - Its main use is to put emacs in the foreground right after releasing its terminal[7]: http://www.gnu.org/software/bash/manual/bashref.html#Job-Control-Basics
7 - Yeah, I run emacs in a terminal.
8 - Usually I only have to run it twice[9] each time I turn my computer on.
9 - There are some commands I run exactly once when I turn my computer on and they got around 107 entries.

Novos ícones no SeaMonkey

, , , ...

O SeaMonkey, antiga Suíte Mozilla, além de ter um visual novo ganhou agora ícones novos, na sua versão em desenvolvimento.

Segue um screenshot:




bigsmile


Segue um link para a imagem em tamanho real:
http://files.myopera.com/Asrail/albums/30670/newsmicons.png

Falta do que fazer

Só pra mostrar um snippet de Ruby, nascido do #ruby-br da Freenode, ao tentar explicar o que são blocos de código a um carinha...

irb(main):001:0> def fibonacci(fim, &bloco)
irb(main):002:1>   ini = 0
irb(main):003:1>   inc = 1
irb(main):004:1>   while ini <=  fim
irb(main):005:2>     bloco.call ini
irb(main):006:2>     ini += inc
irb(main):007:2>     bloco.call inc if inc <= fim
irb(main):008:2>     inc += ini
irb(main):009:2>   end
irb(main):010:1> end
=> nil
irb(main):011:0> fibonacci(100){|n| puts n}
0
1
1
2
3
5
8
13
21
34
55
89
=> nil
irb(main):012:0> 




Importando perfil do Thunderbird no SeaMonkey (vale pra Firefox)

, , , ...

1 - a) Abra o gerenciador de perfis do SeaMonkey
b) alternativamente, se não tiver senhas salvas, etc., quiser
apenas manter os favoritos, pode pular para o passo 4.
2 - crie um perfil
3 - feche o gerenciador
4 - localize a pasta onde ficam os perfis do Thunderbird
5 - entre na pasta do perfil que queira usar
6 - copie tudo
7 - vá para a pasta onde ficam os perfis do SeaMonkey
8 - entre na pasta correspondente ao perfil recém-criado
9 - entre na pasta "########.slt" (onde '###' são letras e números
aleatórios)
10 - cole tudo (se perguntar, mande sobrescrever tudo)
11 - apague o arquivo "chrome.rdf" na pasta "chrome"
12 - abra o arquivo "prefs.js" em um editor de texto
(OpenOffice/BrOffice.org, por exemplo)
13 - use a função de Localizar e Substituir do teu editor (Control+F é
um atalho no OpenOffice/BrOffice.org)
14 - em "localizar", coloque o caminho completo para o perfil antigo:
- no windows é algo como "C:\Documents and
Settings\[Usuário]\Application
Data\Thunderbird\Profiles\########.[nome dele]"
- no Linux é como
"/home/[Usuário]/.mozilla-thunderbird/#######.[nome dele]")
15 - em "substituir", coloque o caminho completo para o perfil novo
16 - Use o perfil que criou no SeaMonkey

Nova casa para o SeaMonkey-BR

, , , ...

Após já ter se hospedado no Mozdev, posteriormente no mozilla.org.br, agora o projeto SeaMonkey-BR vive na mozilla.org:

SeaMonkey em Português do Brasil


Aproveitando... a 1.1.4 saiu ontem e já temos a versão portuga, inclusive sendo uma das primeiras listadas no site oficial bigsmile.


The future of Thunderbird (Firefox Corporation)

, , , ...

Segundo...

, , , ...

http://www.dicas-l.com.br/

Quem não viaja ganha um livro =(.
É algo que deva me fazer preencher uns quatro dias, como se tivesse num congresso de entretenimento digital na Espanha...

Obrigado a todos os que votaram em mim, fiquei feliz de estar bem colocado, apesar de não ser o primeiro.

May 2012
S M T W T F S
April 2012June 2012
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31