This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#sudo geany /usr/lib/ruby1.9.1/gems/1.9.1/gems/mail-2.1.5.3/lib/mail/patterns.rb | |
#houdini@mozart:~/RoR/dv-news$ RUBYOPT="-Ku" ruby1.9.1 ./script/rails server | |
#/usr/lib/ruby1.9.1/gems/1.9.1/gems/mail-2.1.5.3/lib/mail/patterns.rb:27:in `<module:Patterns>': invalid multibyte character #(ArgumentError) | |
# encoding: binary | |
module Mail | |
module Patterns | |
white_space = %Q|\x9\x20| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
houdini@mozart:~/cassandra_gem$ rake cassandra | |
(in /usr/lib/ruby/gems/1.8/gems/cassandra-0.8.0) | |
tar xzf apache-cassandra-0.6.0-beta2-bin.tar.gz | |
mv apache-cassandra-0.6.0-beta2 server | |
ant ivy-retrieve | |
Buildfile: /home/houdini/cassandra/server/build.xml | |
ivy-download: | |
[echo] Downloading Ivy... | |
[mkdir] Created dir: /home/houdini/cassandra/server/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Simple generic algorithm | |
# Authors: Valeriya Guseva and Dmitrii Golub | |
# Date: March 2010 | |
import numpy | |
import pylab | |
from math import * | |
from random import randint, random | |
# Constants |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pylab | |
from math import exp | |
def scatter_plot(x, y, r, color='b'): | |
for i in range(len(x)): | |
pylab.scatter(x[i], y[i], s=r, c=color) | |
#x1 = [0, 1., 0.1, 2, 3, 2.3, 3.1, 1.7, 1.9] | |
#y1 = [0.1, 0.2, 0.8, 1, 1.5, 1.9, 2.1, 1.7, 1.9] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object SslClient { | |
val jks_file_name = "jks_2015.store" | |
// Crypto initializer | |
val keyManagerFactory = KeyManagerFactory.getInstance("SunX509") | |
val trustManagerFactory = TrustManagerFactory.getInstance("SunX509") | |
val keyStore = KeyStore.getInstance("JKS") | |
val trustKeyStore = KeyStore.getInstance("JKS") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
houdini@houdini-XPS:~/codes/sbt-web$ sbt | |
Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar | |
[info] Loading project definition from /home/houdini/codes/sbt-web/project | |
Missing bintray credentials /home/houdini/.bintray/.credentials. Some bintray features depend on this. | |
[info] Set current project to sbt-web (in build file:/home/houdini/codes/sbt-web/) | |
> publishLocal | |
[warn] Credentials file /home/houdini/.bintray/.credentials does not exist | |
[info] Main Scala API documentation to /home/houdini/codes/sbt-web/target/scala-2.11/sbt-0.13/api... | |
[info] Compiling 11 Scala sources to /home/houdini/codes/sbt-web/target/scala-2.11/sbt-0.13/classes... | |
[info] :: delivering :: com.typesafe.sbt#sbt-web;1.2.1-SNAPSHOT :: 1.2.1-SNAPSHOT :: integration :: Sun May 24 04:03:59 MSK 2015 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lua test.lua | |
lua: test.lua:5: attempt to index a nil value (global 'zstring') | |
stack traceback: | |
test.lua:5: in main chunk | |
[C]: in ? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
houdini@houdini-bizon:~/.rvm/gems/ruby-2.1.5/extensions/x86_64-linux/2.1.0/pg-0.17.1$ cat mkmf.log | |
find_header: checking for libpq-fe.h... -------------------- yes | |
"gcc -o conftest -I/home/houdini/.rvm/rubies/ruby-2.1.5/include/ruby-2.1.0/x86_64-linux -I/home/houdini/.rvm/rubies/ruby-2.1.5/include/ruby-2.1.0/ruby/backward -I/home/houdini/.rvm/rubies/ruby-2.1.5/include/ruby-2.1.0 -I. -I/usr/local/pgsql/include -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -fPIC conftest.c -L. -L/home/houdini/.rvm/rubies/ruby-2.1.5/lib -Wl,-R/home/houdini/.rvm/rubies/ruby-2.1.5/lib -L/usr/local/pgsql/lib -Wl,-R/usr/local/pgsql/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,-rpath,'/../lib' -Wl,-R -Wl,'/../lib' -L'/../lib' -lruby -lpthread -ldl -lcrypt -lm -lc" | |
checked program was: | |
/* begin */ | |
1: #include "ruby.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
houdini: /mili/mili2 > traceroute 188.127.234.52 | |
traceroute to 188.127.234.52 (188.127.234.52), 64 hops max, 52 byte packets | |
1 192.168.4.1 (192.168.4.1) 14.121 ms 2.905 ms 3.370 ms | |
2 gw.corbina.net (85.21.215.69) 2.475 ms 2.537 ms 5.381 ms | |
3 bdmitr7-5s3-me2-vl90.corbina.net (195.14.61.57) 4.971 ms 2.357 ms 5.912 ms | |
4 lu-bb-vlan96.msk.corbina.net (85.21.226.46) 20.584 ms 4.797 ms 10.359 ms | |
5 dolg-bb-tengige0-1-0-3.corbina.net (195.14.54.108) 4.839 ms 3.624 ms 5.660 ms | |
6 m10-bb-po2.corbina.net (195.14.54.154) 4.418 ms 2.287 ms 2.091 ms | |
7 comcor-mmts10.msk.corbina.net (195.14.32.38) 13.067 ms 7.357 ms 4.110 ms | |
8 iki-crs.comcor.ru (62.117.100.73) 6.100 ms 4.308 ms 7.592 ms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class A | |
@@dir_name = nil | |
def self.dir_name | |
@@dir_name | |
end | |
end | |
class B < A | |
@@dir_name = "B" | |
end |