using underscore string…

(string…).stripTags();

Leave a Comment

Remote Debugging on WebLogic Server

  1. in /bin/startWebLogic.cmd add:
    set JAVA_OPTIONS=-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=7002,server=y,suspend=n
  2. ┬áIn IDEA – Edit Run Configuration:
    Add – Remote – localhost, 7002
  3. Start Server
  4. In IDEA click Debug button (Shift + F9)

Leave a Comment

JavaScript – Find out where alert from

You can overwrite alert, and create an Error for the stack trace:

var old = alert;

alert = function() {
  console.log(new Error().stack);
  old.apply(window, arguments);
};

Leave a Comment

Vertical align radio in chrome

p {height:30px;line-height: 30px;}
p input[type=radio] {margin-top:-2px;vertical-align: middle}

Leave a Comment

Fighting the Space Between Inline Block Elements

nav a {
  display: inline-block;
  margin-right: -4px;
}

reference

Leave a Comment

a:hover not working on Chorm

Solution:

  • Open Chrome Settings
  • Select “Show Advanced Settings”
  • Scroll down to “System”
  • un-check “Use hardware acceleration when available”

Leave a Comment

JS Popup window remove vertical bar

add css:

body, html {overflow:hidden}

Leave a Comment

Older Posts »
Follow

Get every new post delivered to your Inbox.