Archive for January 2012

sopa/pipa/acta

while sopa/pipa legislation in the US seems to be postponed after a wave of protests acta in EU/Poland is doing just fine; acta possibly will be ratified [at least in Poland] without much of the mainstream attention. is pushing this law through the EU parliament going to be the only ‘success’ of otherwise pathetic polish presidency [pl]?
Continue reading ‘sopa/pipa/acta’ »

Quants: The Alchemists of Wall Street

surge 2011 presentations

[pl/en] Czeczenia / Chechnya

switching reverse proxy from apache2 to nginx

i’ve been planning for a while to move away from apache2 as a reverse proxy in front of java appservs and start using nginx. i had two reasons: nginx can handle much better large number of concurrent connections [something we can make use of if we start using long-poll/comet], nginx gives more control over buffering of back-end response – eg it can close connection to the back-end as soon as possible, rather than wait till response is delivered to the client.

Continue reading ‘switching reverse proxy from apache2 to nginx’ »

Justice with Michael Sandel

pop-philosophy [aka the light version] with a political edge: http://www.justiceharvard.org/. playlist on yt.

i’ve converted all of the lectures to mp3 [using this] so now i have something to listen to during the evening walks.

as a counterbalance to the ‘soft’ stuff – 28c3 recordings: http://events.ccc.de/congress/2011/wiki/Documentation, and a list of talks; most interesting [for me] talks:

new sphinx, new connector/j headaches

sphinx 2.0.3 is out; and as new drama of getting mysql’s connector/j begins. i did not figure out [yet] any way of making both work using the latest 5.1.18 connector, but at least i’ve managed to convince one that i use now [ 5.1.15 ] to work with sphinx.

what works:
mysql-connector-java-5.1.13-bin.jar

"jdbc:mysql://host:9306/test1?socketTimeout=2000&connectTimeout=200&characterEncoding=utf8&maxAllowedPacket=512000"
// this also comes handy: enablePacketDebug=true&traceProtocol=true&logger=com.mysql.jdbc.log.StandardLogger

but.. only if you modify src/searchd.cpp and change sHandshake2[]

..
"\x08\x82" // server capabilities; CLIENT_PROTOCOL_41 | CLIENT_CONNECT_WITH_DB | SECURE_CONNECTION
..

into

..
"\x08\x02" // server capabilities; CLIENT_PROTOCOL_41 | CLIENT_CONNECT_WITH_DB | SECURE_CONNECTION
..

to sum-up: kill me down.

bug report in the sphinx issue tracking system: #959.

edit: it seems that adding mysql_version_string = 5.0.37 in the sphinx.conf should sort things out. i’ll have a chance to test it in a few weeks of time. edit. no – that does not work; at least not with connector/j 5.1.5.

final edit[?] it seems that this commit fixes the problem with connector/j 5.1.18 ; sphinx from trunk – r3119 with “mysql_version_string = 5.0.37″ in the sphinx.conf works fine with latest connector/j, requires “jdbc:mysql://host:9306/data?characterEncoding=utf8&maxAllowedPacket=512000″ connection string; unfortunately this fix was not included in 2.0.4 although ‘fresh’ ; trunk version r3143 – seems to work fine.