<logger name="org.springframework.jdbc.core" level="DEBUG" />
Wed Feb 21 21:18:56 MSK 2018 WARN: Invalid value '' for server variable named 'net_buffer_length', falling back to sane default of '16 384'
@Bean
public DataSource sphinxDataSource() {
BasicDataSource dataSource = new BasicDataSource();
dataSource.setDriverClassName("com.mysql.jdbc.Driver");
dataSource.setUsername("");
dataSource.setPassword("");
dataSource.setUrl(sphinxUrl);
return dataSource;
}
@Bean
public JdbcTemplate sphinxJdbcTemplate() throws SQLException, ClassNotFoundException {
return new JdbcTemplate(sphinxDataSource());
}
@Bean
public Connection sphinxJdbc() throws SQLException, ClassNotFoundException {
return sphinxDataSource().getConnection();
}
openssl genrsa -des3 -out mydomen.ru.key 1024
openssl req -new -key mydomen.ru.key -out mydomen.ru.csr
openssl x509 -req -days 365 -in mydomen.ru.csr -signkey mydomen.ru.key -out mydomen.ru.crt
[admin1@MikroTik] > /certificate import file-name=mydomen.ru.crt
passphrase: *****
certificates-imported: 1
private-keys-imported: 0
files-imported: 1
decryption-failures: 0
keys-with-no-certificate: 0
[admin1@MikroTik] > /certificate import file-name=mydomen.ru.key
passphrase: *****
certificates-imported: 0
private-keys-imported: 1
files-imported: 1
decryption-failures: 0
keys-with-no-certificate: 0
[admin1@MikroTik] > /certificate print
Flags: K - private-key, D - dsa, L - crl, C - smart-card-key, A - authority, I - issued, R - revoked, E - expired, T - trusted
# NAME COMMON-NAME SUBJECT-ALT-NAME FINGERPRINT
0 K T cert_1 mydomen.ru c6e7836a4b39fe267c4465957f57f...
img {
max-width: 100%;
height: auto;
width: auto;
}
$(window).resize(function() {
// MIN = 800, MAX = 1200 по 100 бальной шкале
var percent = Math.round(($(window).width() - 800) / (1200 - 800) * 100);
percent = percent > 100 ? 100 : percent < 70 ? 70 : percent;
$('html').css('zoom', percent + '%');
console.log(percent);
});