sábado, 27 de outubro de 2012

After two months, here I go!

Today I finally decided to install the NVIDIA driver on my laptop.
All these months I've been used the Debian default driver, but sometimes some videos plays slow, so I though the cause is the standard version (unfortunately not).
Every geek around the world knows that use the correct video driver makes all difference on the computer performance.
My laptop has a NVIDIA GEForce 8400M GS graphics card, a good card... But let's talk about business!

1 - Download the driver (it's the most important step).

2 - Restart your computer, on GRUB (I just can write about GRUB, I don't have any experience using another boot system), press "e" key, you will find the kernel line (linux /boot/vmlinuz.....), and add "1" (without quotes), press ctrl+X, you wil boot in text mode.

3 - Type root password.

4 - Change to the NVIDIA directory.

5 - Type # sh NVIDIA.......

Follow the instructions...

P.S.: 
1 - Read all the PS!!!!
2 - It's really necessary to unable Nouveau driver... There is an important detail on it... Once disabled, you just cannot use X Server (Linux UI), if you try to turn on your PC normally, you WILL get a Kernel panic.
3 - NVIDIA installer will ask you to boot with runlevel 3 instead 1, I just can't run the installation on runlevel 3.
4 - Before start, I updated everything on my laptop using  "apt-get upgrade", so my GCC is newer than the installation program. The installation program warn that something could go wrong, in my case, everything is fine.

I think it's my poor post wrote in english... If you have any doubt, write a comment.

See ya!
 

terça-feira, 28 de agosto de 2012

inline-block CSS

Hoje pela manhã estava fazendo para um cliente algumas etiquetas que devem ser impressas pelo sistema, tudo estava indo bem... As etiquetas eram contêineres DIV, usando float para posicionar uma etiqueta ao lado da outra sem ter de me preocupar com quantidade por página (o navegador se vira!!), até testar no IE...
Abaixo os resultados (visualização de impressão) com Chrome e IE:

Google Chrome
Internet Explorer




Percebi dois problemas:

1 - Nos dois navegadores algumas etiquetas seriam cortadas no salto de página.
2 - No IE a segunda página não imprimia os textos... só as imagens.

Meu primeiro chute foi o atributo "overflow:hidden;", que estava usando para controlar os textos dentro da etiqueta, depois de muitas tentativas e algumas buscas no Google, me convenci que não era este o problema, pois ao tirar o "float:left" que posicionava as etiquetas lado-a-lado o problema terminava.

Decidi então usar o atributo "display: inline" para colocar as etiquetas lado-a-lado, tive problemas... pois no Chrome e Firefox eu perdia a margem entre as etiquetas.
Passei a usar o inline-block. Ta-da!!!! Funcionou... No Chrome / Safari (webkit), no Firefox, e não tive o efeito esperado no IE.
Voltamos ao Google... vendo este link:
Inline Doesn't Work In IE 7,6 , consegui fazer funcionar corretamente em todos os browser...
A ideia foi:

display: inline-block;
*display: inline;
zoom: 1;

Segundo o autor (thirtydot) da resposta a explicação foi:
display:inline-block  >>> não precisa explicar... eu acho.
*display: inline >>>  hack CSS para IE 6,7, não testei... se alguém testar agradeço.
zoom: 1; >>> Esse é o detalhe... Segundo o autor, no IE existe uma propriedade (em termos de orientação a obejto) chamada "hasLayout", essa propriedade não pode ser definida explicitamente por CSS, e a falta desta traz uma série de problemas com propriedades flutuantes, margens... Uma forma de "definir" a propriedade "hasLayout" é usando a propriedade CSS zoom (only IE), o número "1", só quis dizer que o tamanho do objeto é o próprio objeto.

Após estes ajustes, minhas etiquetas renderizaram corretamente* em todos os browsers.

*No Firefox, não sei por que, as margens das DIV's não imprimiram corretamente, apesar de ficarem certas na renderização.

Vale a leitura das seguintes páginas que usei como referência:

http://stackoverflow.com/questions/5838454/inline-block-doesnt-work-in-internet-explorer-7-6
http://mathiasbynens.be/notes/safe-css-hacks#css-hacks
http://msdn.microsoft.com/en-us/library/ms531189.aspx

Edit 01: Link para a etiqueta: http://celsoneto.com.br/blog/etiqOutra.html



terça-feira, 14 de agosto de 2012

"Frequentemente as expectativas falham, e mais frequentemente ainda aonde eram mais promissoras."
William Shakespeare

quinta-feira, 7 de junho de 2012

Using Linux - Recovering user password

Yesterday I lost my password account...
Following this tuto I cracked that and my old password and used my PC again...
I was pretty lucky, cause don't forget my root pass... and there is another user on my PC... I just logged on the other user, opened the shell, and "followed" the tutorial's instructions.

domingo, 3 de junho de 2012

Using Linux - Microphone Issues [Solved]

Hey there!

I've been using Linux last month...
Like all Linux newbies I had some problems...
The first one was my Wireless card (I have a Dell Vostro 1510), the Debian default driver for Broadcom Chipsets just don't works with it.
The second problem was my microphone... It doesn't worked on Skype or Voice Recorder... after some hours of Google.. I've found the following solution:

1 - Open Shell like root.

2 - type:
  ~root@NetimNote:/home/celsoneto# alsamixer


3 - Go to Capture section (F4).
In my case, I just lowered "Front Mic Boost" and "Capture" options and pulled up "Digital" option and....
Ta-da!!!! Everything worked!


Bye!