Edit the formula as ‘if recordnumber mod 2 = 0 then crTeal else crNoColor’
AWS – Setting tomcat to run in ports 80 & 443
# Checking the current iptables content on the prerouting table
$ sudo /sbin/iptables -t nat -I PREROUTING -p tcp –dport 80 -j REDIRECT –to-port 8080
$ sudo /sbin/iptables -t nat -I PREROUTING -p tcp –dport 443 -j REDIRECT –to-port 84
# Saving the rules
$ sudo /sbin/service iptables save
# Restarting ipTables:
$ sudo /etc/init.d/iptables restart
# Checking that the rules were saved succesfully
$ sudo /sbin/iptables -t nat -I PREROUTING -p tcp –dport 80 -j REDIRECT –to-port 8080
SQL Navigator output window
- Click “Show Output” icon on tool bar
- Alt+Space, select Move, use arrow key to move the window position
Remote Debugging on WebLogic Server
- in /bin/startWebLogic.cmd add:
set JAVA_OPTIONS=-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=7002,server=y,suspend=n - In IDEA – Edit Run Configuration:
Add – Remote – localhost, 7002 - Start Server
- In IDEA click Debug button (Shift + F9)
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);
};
Vertical align radio in chrome
p {height:30px;line-height: 30px;}
p input[type=radio] {margin-top:-2px;vertical-align: middle}
Fighting the Space Between Inline Block Elements
nav a {
display: inline-block;
margin-right: -4px;
}
reference
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”