域名: demo.com
- (主) DNS 服务器的详细信息:
Operating System : CentOS 7 minimal server
Hostname : dns1.demo.com
IP Address : 10.0.1.254/24
#!/bin/sh | |
set -e | |
set -x | |
defaults delete com.apple.java.util.prefs || true | |
for f in ~/Library/Preferences/jetbrains.*.plist; do | |
if [[ -f $f ]]; then | |
fn=${f##*/}; key=${fn%.plist} | |
echo delete $key from pref and file $f |
var SshClient = require('ssh2').Client; | |
/** | |
* @example | |
* | |
* var sshExpect = require('./sshExpect'); | |
* sshExpect({ | |
* host: '10.79.53.164', | |
* port: 22, | |
* username: 'admin', |
@SuppressWarnings("unchecked") | |
private <T> T stringAsObject(String value, Class<T> targetClass, String defaultValue) { | |
value = StringUtils.trimToNull(value); | |
if (value == null) { | |
value = defaultValue; | |
} | |
if (value == null || value.length() == 0) { | |
return null; | |
} |
# disable selinux | |
echo SELINUX=disabled > /etc/sysconfig/selinux | |
echo SELINUXTYPE=targeted >> /etc/sysconfig/selinux | |
setenforce 0 | |
# disable firewall | |
systemctl disable firewalld |
// package de.spieleck.servlets; | |
// ProxyServlet - serving pages from foreign servers.... | |
// | |
import java.io.*; | |
import java.net.*; | |
import java.lang.Integer; | |
import java.util.StringTokenizer; | |
import javax.servlet.*; |
package jetbrick.util; | |
import java.text.DateFormatSymbols; | |
import java.text.FieldPosition; | |
import java.text.Format; | |
import java.text.NumberFormat; | |
import java.text.ParseException; | |
import java.text.ParsePosition; | |
import java.text.SimpleDateFormat; | |
import java.util.Calendar; |
see: http://ejohn.org/blog/getboundingclientrect-is-awesome/
Now most browsers support getBoundingClientRect method, which has become the best practice. Using an old answer is very slow, not accurate and has several bugs.
IE8 supports it fully, IE7 is not perfect, however it works better than the old answer.
The solution selected as correct is almost never precise. You can read more about it's bugs.
(function(window, $) { | |
/** | |
* 实现打印功能(只打印网页中的一部分) | |
* | |
* Usage: | |
* <button jw-click-print="#printContext">Print</button> | |
*/ | |
var print = function($dom) { | |
$("iframe.js-print").remove(); |
JAXB, stands for Java Architecture for XML Binding, using JAXB annotation to convert Java object to / from XML file. In this tutorial, we show you how to use JAXB to do following stuffs :
Technologies used in this article