HTML table highlight row on hover except first row (header)

There is a way to achieve the desired behavior without class-ing each row separately. Here’s how to highlight each table row except for first one (header) on hover using the CSS :not and :first-child selectors: tr:not(:first-child):hover { background-color: red; } Unfortunately, IE < 9 does not support :not, so to do this in a cross-browser … Read more

vimrc make comments italic

First and foremost, you should check if you terminal is capable of displaying text in italics. In your terminal type (-e flag makes sure escape codes are interpreted) echo -e “\e[3m foo \e[23m” If you see foo then okay, otherwise you need to change terminal (Gnome Terminal and Konsole are good choices). Then you should … Read more

How to highlight ImageView when focused or clicked?

You need to assign the src attribute of the ImageView a state list drawable. In other words, that state list would have a different image for selected, pressed, not selected, etc. – that’s how the Twitter App does it. So if you had an ImageView: <ImageView style=”@style/TitleBarLogo” android:contentDescription=”@string/description_logo” android:src=”https://stackoverflow.com/questions/4185930/@drawable/title_logo” /> The src drawable (title_logo.xml) would … Read more

How do you add syntax highlighting for Less in Notepad++?

To get LESS syntax highlighting, you have to download and import a user defined language file. Here are some links to language files: LESS language file, as listed in the Notepad++ User Defined Language List LESS language file on GitHub Installation instructions from the GitHub repository: Download the less.xml file Open Notepad++ Go to Language … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)