Skip to content

Instantly share code, notes, and snippets.

2015-07-02 11:28:57,485 ERROR [qtp1035740155-327 - POST /geocoder/search_location] com.google.code.geocoder.Geocoder [Geocoder.java:61] uid=21171 Remote host closed connection during handshake
javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:946) ~[na:1.7.0_67]
at sun.security.ssl.SSLSocketImpl.waitForClose(SSLSocketImpl.java:1705) ~[na:1.7.0_67]
at sun.security.ssl.HandshakeOutStream.flush(HandshakeOutStream.java:122) ~[na:1.7.0_67]
at sun.security.ssl.Handshaker.sendChangeCipherSpec(Handshaker.java:972) ~[na:1.7.0_67]
at sun.security.ssl.ClientHandshaker.sendChangeCipherAndFinish(ClientHandshaker.java:1087) ~[na:1.7.0_67]
at sun.security.ssl.ClientHandshaker.serverHelloDone(ClientHandshaker.java:1006) ~[na:1.7.0_67]
at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:285) ~[na:1.7.0_67]
at sun.security.ssl.Handshaker.processL
WARNING on line 85 of metromorph/components/map/map-tools.scss: ".bubble_window" failed to @extend ".x-tip".
The selector ".x-tip" was not found.
This will be an error in future releases of Sass.
Use "@extend .x-tip !optional" if the extend should be able to fail.
WARNING on line 86 of metromorph/components/map/map-tools.scss: ".bubble_window" failed to @extend ".x-tip-default".
The selector ".x-tip-default" was not found.
This will be an error in future releases of Sass.
Use "@extend .x-tip-default !optional" if the extend should be able to fail.
import java.lang.reflect.Method;
public class TypeCheck {
public static void main(String args[]) throws Exception {
A o = new A();
Method f = A.class.getMethod("f", int.class);
f.invoke(o, 1.0);
}
}
@anton0xf
anton0xf / git-rebase-submodule
Created April 12, 2015 09:45
git rebase update of submodule
anton0xf $ git --version
git version 2.0.4
anton0xf $ gfg
* 95002c1 2015-04-12 anton0xf update submodule (feature)
* d36a796 2015-04-12 anton0xf some work in feature
| * 77b64be 2015-04-12 anton0xf some changes in trunk (HEAD, trunk)
|/
* 133aca2 2015-04-12 anton0xf add submodule1 (master)
* 2e8fe6f 2015-04-12 anton0xf init
anton0xf $ git submodule status
@anton0xf
anton0xf / merge-features
Last active August 29, 2015 14:18
один из способов работы с ветками
допустим есть такое дерево:
* 1b9ea28 2015-04-02 anton0xf Merge branch 'f1' (HEAD, merge)
|\
| * 7ad0246 2015-04-02 anton0xf feature1 commit 2 (f1)
| * 7518c1c 2015-04-02 anton0xf feature1 commit 1
* | bc03f8d 2015-04-02 anton0xf feature2 commit 1 (f2)
|/
* b68b2f6 2015-04-02 anton0xf base (origin/master, origin/HEAD, master)
т.е. есть feature1 и feature2 в ветках f1 и f2 соответственно, смердженные в ветке merge.
PANEL_RIGTHS_FILE="panel_rights.sql"
if [ -n "$UBER_STANDALONE" ]; then
PANEL_RIGTHS_FILE=panel_rights.uber.sql
fi
cp -v google.sql models.sql updates.sql \
"$PANEL_RIGTHS_FILE" plugins_records.sql \
quartz_tables_mysql_innodb.sql \
config.sh init-db.sh VERSION \
"$DIST/db"
var _ = require('underscore'); // http://underscorejs.org
function get_m(x) {
return x.length;
}
function check(x) {
if(!x.length)
return false;
for(var i=0; i<x.length; i++) {
public static int[] arrange(int m, int n) {
int res[] = new int[m];
if (n > 0) {
int s = 0;
for (int i = m - 1; i >= 0; i--) {
s += n;
if (s >= m) {
res[i]++;
s -= m;
}
/*
* The round switches won't stay on unless something is placed on top of them.
*/
var robot = this;
var thrusters = ['left', 'top', 'right', 'bottom'];
var state = 0;
var start = 'top';
var rules = [/* 0 */ [['bottom', 'left', 0],
['right', 'bottom', 0],
general {
output_format = "i3bar"
colors = true
interval = 1
}
#order = "ipv6"
order += "disk /home"
#order += "disk /mnt/stuff"
#order += "run_watch DHCP"