How to change font-family of drop down’s list item?

That’s because the select elements children (options) aren’t really stylable and firefox seems to be the only browser to ignore that part of the spec. The workaround is to replace your select element with a custom widget that uses only stylable elements and perhaps a little javascript for the interactivity. like what’s done here: http://jsfiddle.net/sidonaldson/jL7uU/ … Read more

“select” on multiple Python multiprocessing Queues?

Actually you can use multiprocessing.Queue objects in select.select. i.e. que = multiprocessing.Queue() (input,[],[]) = select.select([que._reader],[],[]) would select que only if it is ready to be read from. No documentation about it though. I was reading the source code of the multiprocessing.queue library (at linux it’s usually sth like /usr/lib/python2.6/multiprocessing/queue.py) to find it out. With Queue.Queue … Read more

Select multiple ids from a PostgreSQL sequence

select nextval(‘mytable_seq’) from generate_series(1,3); generate_series is a function which returns many rows with sequential numbers, configured by it’s arguments. In above example, we don’t care about the value in each row, we just use generate_series as row generator. And for each row we can call nextval. In this case it returns 3 numbers (nextvals). You … Read more

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