SAC

SAC

Showing posts with label tips. Show all posts
Showing posts with label tips. Show all posts

Saturday, 10 October 2009

Free Tip: Always remove old drivers before upgrading

This is one very poorly documented fact about hardware maintenance: newer driver installation programs almost never take care of properly deleting their previous versions. And these driver leftovers (programs, libraries, or registry records) can cause you performance issues, startup problems and sometimes will not allow you to effectively install the newer versions.

ASUS GTX 285

I personally experienced this, when I bought the ASUS GTX285 video card I was running the nvidia v185 drivers. Those drivers are supposed to work fine with the card but when I tried some games I noticed that I was getting very low framerates on GTAIV and Empire: Total War, so I upgraded to the latest v186 drivers but the issues got even worse, giving me crashes and even lower FPS.

Troubleshooting my issue and with a little help from Google I stumbled upon this little program: DriverSweeper, whose purpose is to completely remove any specific driver that you indicate. So I fired up the utility, marked everything related to nVidia, and hit the "Clean" button.

Later reinstalled the 186 drivers and my games were working flawlessly again with the highest settings and I was always getting above 40fps.

So here is my tip: Always remove old drivers before upgrading!

DriverSweeper is free, there are paid counterparts that have additional features such as driver backup, safe recovery, online driver compatibility lookup, etc. So which one you use is up to you.

Saturday, 26 April 2008

Reglas de oro de CSS

Más allá de las controversias y de las diferentes técnicas de programación CSS que uno pueda dominar, hay algunas reglas básicas que no todos conocen, y luego de varios desastres he aprendido.

1- Quitar todos los valores de margin y padding.
Al menos por ahora, cada navegador dispone de sus propias reglas para definir los valores por defecto de margin y padding. En algunos, el margin para los tags h1, h2, h3 es mayor que en otros, lo mismo ocurre con los párrafos, e incluso en internet explorer suele ocurrir que aparecen márgenes para los tags form. La mejor solución como primera medida, es eliminar todos los margin y padding dentro del css, y luego definir los nuestros. Yo he tomado como regla, empezar todos mis archivos .css con la siguiente declaración:

*{
margin: 0px;
padding: 0px;
}



Esto define que absolutamente todos los elementos del documento HTML deben aparecer sin márgenes o espaciados. Luego, se pueden definir manualmente algunos tags:

h1{ margin: 10px 0px 10px 0px; }
h2{ margin: 5px 0px 5px 0px; }


2- Usar Background-image con background-color.
Muchas veces necesitamos que un determinado elemento de la página tenga una imagen de fondo, es importante para que el documento sea CSS válido, que si se define una propiedad background-image, también se defina un background-color. O mejor aún:

elemento.clase{
background: #FFFFFF url("..dirección..");
}


3- Aprovechar la herencia.
La posibilidad de heredar propiedades de un elemento a otros que le suceden es una herramienta muy poderosa, pero si no se tiene en cuenta su existencia, se puede incurrir en casos de trabajo realmente incómodos.

Por ejemplo, ¿es necesario escribir un font-family en 20 etiquetas? Sería mucho más cómodo y legible ubicar dicha declaración sólo en body

body{
font-family: Arial;
}


Luego, todos los demás tags que estén dentro de body, heredarán esta propiedad (todos tendrán el mismo font family), lo que permite definir propiedades más especificas para dichos tags.

h1{font-size: 24px;}
h2{font-size: 20px;}
h3{font-size: 15px;}