Debug dynamic HTML in Chrome

In a recent Angular application Chrome helped me identifying how to apply style to a third party component over which we had no control. A popup was being added to the HTML and as it was removed on any action it wasn’t obvious how I could find the dynamic content to work out how to style – enter Chrome dev tools!

With developer tools open (F12) and the dynamic element displayed press F8 which will break script execution and freeze the DOM – then you can use CTRL+SHIFT+C and use the arrow keys to navigate through the elements to identify the required element.

Find Oracle priv’s GRANTed to a table

One I can’t seem to remember (obviously until I write it down here). When trying to find out the privilidges that have been granted to a table in Oracle use the DBA_TAB_PRIVS view:

SELECT * FROM DBA_TAB_PRIVS where table_name = 'TABLE' and owner = 'SCHEMA'