Andrew Cooke | Contents | Latest | RSS | Twitter | Previous | Next


Welcome to my blog, which was once a mailing list of the same name and is still generated by mail. Please reply via the "comment" links.

Always interested in offers/projects/new ideas. Eclectic experience in fields like: numerical computing; Python web; Java enterprise; functional languages; GPGPU; SQL databases; etc. Based in Santiago, Chile; telecommute worldwide. CV; email.

Personal Projects

Lepl parser for Python.

Colorless Green.

Photography around Santiago.

SVG experiment.

Professional Portfolio

Calibration of seismometers.

Data access via web services.

Cache rewrite.

Extending OpenSSH.

C-ORM: docs, API.

Last 100 entries

Copier Quotes for Cat Soft LLC; [Book] Galileo's Middle Finger; VOIP quote for Cat Soft LLC; [Bike] Chinese Carbon Rims; Collection Agencies for Cat Soft LLC; Get Coffee Quotes for Cat Soft LLC; [Bike] Servicing Shimano XT Front Hub HB-M8010; [Bike] Aliexpress Cycling Tops; Now Is Cat Soft LLC's Chance To Save Up To 32% On Mail; Call Center Services for Cat Soft LLC; [Computing] Change to ssh handling of multiple identities?; [Bike] Endura Hummvee Lite II; [Computing] Marble Based Logic; [Link, Politics] Sanity Check For Nuclear Launch; [Link, Science] Entropy and Life; [Link, Bike] Cheap Cycling Jerseys; [Link, Music] Music To Steal 2017; [Link, Future] Simulated Brain Drives Robot; [Link, Computing] Learned Index Structures; Solo Air Equalization; Update: Higher Pressures; Psychology; [Bike] Exercise And Fuel; Continental Race King 2.2; Removing Lowers; Mnesiacs; [Maths, Link] Dividing By Zero; [Book, Review] Ray Monk - Ludwig Wittgenstein: The Duty Of Genius; [Link, Bike, Computing] Evolving Lacing Patterns; [Jam] Strawberry and Orange Jam; [Chile, Privacy] Biometric Check During Mail Delivery; [Link, Chile, Spanish] Article on the Chilean Drought; [Bike] Extended Gear Ratios, Shimano XT M8000 (24/36 Chainring); [Link, Politics, USA] The Future Of American Democracy; Mass Hysteria; [Review, Books, Links] Kazuo Ishiguro - Never Let Me Go; [Link, Books] David Mitchell's Favourite Japanese Fiction; [Link, Bike] Rear Suspension Geometry; [Link, Cycling, Art] Strava Artwork; [Link, Computing] Useful gcc flags; [Link] Voynich Manuscript Decoded; [Bike] Notes on Servicing Suspension Forks; [Links, Computing] Snap, Flatpack, Appimage; [Link, Computing] Oracle is leaving Java (to die); [Link, Politics] Cubans + Ultrasonics; [Book, Link] Laurent Binet; VirtualBox; [Book, Link] No One's Ways; [Link] The Biggest Problem For Cyclists Is Bad Driving; [Computing] Doxygen, Sphinx, Breathe; [Admin] Brokw Recent Permalinks; [Bike, Chile] Buying Bearings in Santiago; [Computing, Opensuse] Upgrading to 42.3; [Link, Physics] First Support for a Physics Theory of Life; [Link, Bike] Peruvian Frame Maker; [Link] Awesome Game Theory Tit-For-Tat Thing; [Food, Review] La Fabbrica - Good Italian Food In Santiago; [Link, Programming] MySQL UTF8 Broken; [Link, Books] Latin American Authors; [Link, Computing] Optimizatin Puzzle; [Link, Books, Politics] Orwell Prize; [Link] What the Hell Is Happening With Qatar?; [Link] Deep Learning + Virtual Tensor Machines; [Link] Scaled Composites: Largest Wingspan Ever; [Link] SCP Foundation; [Bike] Lessons From 2 Leading 2 Trailing; [Link] Veg Restaurants in Santiago; [Link] List of Contemporary Latin American Authors; [Bike] FTHR; [Link] Whoa - NSA Reduces Collection (of US Residents); [Link] Red Bull's Breitbart; [Link] Linux Threads; [Link] Punycode; [Link] Bull / Girl Statues on Wall Street; [Link] Beautiful Chair Video; Update: Lower Pressures; [Link] Neat Python Exceptions; [Link] Fix for Windows 10 to Avoid Ads; [Link] Attacks on ZRTP; [Link] UK Jazz Invasion; [Review] Cuba; [Link] Aricle on Gender Reversal of US Presidential Debate; {OpenSuse] Fix for Network Offline in Updater Applet; [Link] Parkinson's Related to Gut Flora; Farellones Bike Park; [Meta] Tags; Update: Second Ride; Schwalbe Thunder Burt 2.1 v Continental X-King 2.4; Mountain Biking in Santiago; Books on Ethics; Security Fail from Command Driven Interface; Everything Old is New Again; Interesting Take on Trump's Lies; Chutney v6; References on Entropy; Amusing "Alexa.." broadcast; The Shame of Chile's Education System; Playing mp4 gifs in Firefox on Opensuses Leap 42.2; Concurrency at Microsoft; Globalisation: Uk -> Chile; OpenSuse 42.2 and Synaptics Touch-Pads

© 2006-2017 Andrew Cooke (site) / post authors (content).

IntelliJ Idea

From: "andrew cooke" <andrew@...>

Date: Sat, 31 Mar 2007 23:54:17 -0400 (CLT)

I am switching from Eclipse to IntelliJ Idea.  I have no idea whether this
will work out, but I was tired of Eclipse crashing and Codehaus have a
licence for Idea.

First impressions are that the two are generally quite comparable.  While
running checkstyle doesn't crash Idea like it does Eclipse, it does
occasionally fail on a stupid classloader problem.

However, there is one significant advantage to Idea which has impressed me
- its default analysis of code is intelligent and useful.  It flags real,
important issues rather than "nitpicking details".  In other words it
focuses more on semantics and less on syntax - it's like having an
intelligent code reviewer.  The intelligence doesn't extend to
architectural issues, but it does "understand" basic logic and flow

I'm using the preview releases available from -
they have a free 30 day trial licence, low price academic and free
opensource licences.


PS It is only after writing this (I promise!) that I realise this
"intelligent analysis" may be why it's called "IntelliJ"...

Maybe Intelligent is the Wrong Word

From: "andrew cooke" <andrew@...>

Date: Sun, 1 Apr 2007 10:01:23 -0400 (CLT)

Hmmm.  My previous post was rather enthusiastic.  The advice is not
particularly "intelligent" - it's just based on simple static analysis. 
Maybe what *is* intelligent is the interface design, or the selection of
warnings.  Somehow it is useful, rather than annoying.

Another nice feature - maybe this was possible in Eclipse - is that I can
configure code highlighting in some detail.  So my text is simple black
(keywords in bold), but with mutable state (class and instance variables,
and also reassigned local variables or parameters) highlighted.


IntelliJ Idea uses some odd ports...

From: "andrew cooke" <andrew@...>

Date: Mon, 2 Apr 2007 21:22:07 -0400 (CLT)

Don't like this much.  Idea is using the following ports:

tcp :::63342              :::*               LISTEN
tcp :::2864               :::*               LISTEN
tcp :::6942               :::*               LISTEN
udp         :::*
udp :::9876               :::*
udp :::2863               :::*
udp :::2863               :::*

where and are local addresses to my server.

Surreally, connecting via HTTP to gives an empty page with
the title "Dick's Sporting Goods Bragging Board" (see related address

And port 2863 regularly broadcasts "Anybody out there" to other odd

The established link is Jabber - my machine (the editor) is making a
series of "Jabber Request" messages.


In related news, SuseFirewall doesn't block outgoing connections, and
Novell's AppArmour scares me.


How to block IntelliJ Idea on SUSE (and Linux in general)

From: "andrew cooke" <andrew@...>

Date: Mon, 2 Apr 2007 21:56:21 -0400 (CLT)

OK, so on SUSE you need to go to the sysconfig editor in Yast (System
menu) and edit the firewall setting FW_CUSTOMRULES to include the custom
rules file.  Then edit that file to include the following in the first
function (fw_custom_before_antispoofing).

For other Linux distros, the same iptables commands apply but you need to
work out how best to set them.

# mess with intellij

iptables -A OUTPUT -p tcp --dport 5222 -j LOG --log-level warn \
  --log-prefix "BLOCKING INTELLIJ: "
iptables -A OUTPUT -p tcp --dport 5222 -j DROP

iptables -A OUTPUT -p tcp --dport 2864 -j LOG --log-level warn \
  --log-prefix "BLOCKING INTELLIJ: "
iptables -A OUTPUT -p tcp --dport 2864 -j DROP

iptables -A OUTPUT -p tcp --dport 6942 -j LOG --log-level warn \
  --log-prefix "BLOCKING INTELLIJ: "
iptables -A OUTPUT -p tcp --dport 6942 -j DROP

iptables -A OUTPUT -p udp --dport 2863 -j LOG --log-level warn \
  --log-prefix "BLOCKING INTELLIJ: "
iptables -A OUTPUT -p udp --dport 2863 -j DROP

iptables -A OUTPUT -p udp --dport 9876 -j LOG --log-level warn \
  --log-prefix "BLOCKING INTELLIJ: "
iptables -A OUTPUT -p udp --dport 9876 -j DROP

Note that the backslashes are not valid syntax - I added them above to
make the lines shorter in this email.  It's not clear to me that all the
above are needed, and I am assuming that you already block *incoming*
connections, but the above is the right idea (and does block several
outgoing connection attempts on my machine).


re: IntelliJ Idea

From: "andrew cooke" <andrew@...>

Date: Wed, 16 May 2007 20:13:58 -0400 (CLT)

---------------------------- Original Message ----------------------------
Subject: re: IntelliJ Idea
From:    "Alexandre Paterson" <alexandre_paterson@...>
Date:    Mon, May 14, 2007 8:12 pm
To:      compute@...

Hi Andrew,

I was very happy to find your message
about IntelliJ using some strange ports...
At first I thought my machine was compromised.
However at it is a strenghtened Unix machine
behind several firewalls (the machine as its own
firewall in addition to another firewall... And it is
NATted behind a router) so I would very surprised
if it was compromised.

The UDP on port 2863 is a multicast on the LAN:

It may be followed by TCP access on 2864 and up, depending
on how many IDEA machines you have.

I was baffled too then by the attempt to connect to

A reverse IP shows that "" shares that IP.

Things get stranger:

 $ telnet 80
Connected to
Escape character is '^]'.
GET / HTTP/1.0\nAccept: */*\n\n

HTTP/1.1 503 Service Temporarily Unavailable
Date: Tue, 15 May 2007 00:03:04 GMT
Server: Apache/2.0.52 (Red Hat)
Last-Modified: Tue, 05 Sep 2006 15:38:54 GMT
ETag: "269405-31c-a7f01f80"
Accept-Ranges: bytes
Content-Length: 796
Connection: close
Content-Type: text/html; charset=UTF-8

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<title>Dick's Sporting Goods - Bragging Board</title>

But if you type in your browser everything
is fine: you get to a site obviously belonging to JetBrains.

I'll post a message in the IntelliJ IDEA forum asking
what is going on.

Anyway... Instead of blocking things I want to be blocked,
my system is configured to REJECT everything, even
access to

Then I allow what I consider to be legitimate trafic.

For example, if I want IntelliJ to be able to access my
LAN Tomcat server (that has some html Javadocs,
for example), I do:

iptables -I OUTPUT -p tcp -d --dport 80
-m owner --uid-owner 1007 -j ACCEPT

Same for SVN, CVS, JProfiler, etc.

I do it this way so closed-source programs emitting
spooky trafic are blocked in a user account (that can't
even communicate on

This is painful with some dumbly-written plugins and
utilities that thinks that they can appropriate a great
many ports but all in all it poses no problem.

Anyway, it takes some time to set it up at first but
I honestly think it's worth it.

"Everything that is not specifically allowed is denied"


Besides that upon hitting your blog (I was googling
on "63.236.202 jabber" IIRC) I recognized your blog
instantly :  I *love* your gallery.

I saw it quite some time ago and saved a few pictures.


 Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail

Fwd: on blocking incoming trafic

From: "andrew cooke" <andrew@...>

Date: Wed, 16 May 2007 20:14:49 -0400 (CLT)

---------------------------- Original Message ----------------------------
Subject: on blocking incoming trafic
From:    "Alexandre Paterson" <alexandre_paterson@...>
Date:    Mon, May 14, 2007 8:21 pm
To:      compute@...


you wrote:

> Note that the backslashes are not valid
> syntax - I added them above to make the
> lines shorter in this email.  It's not
> clear to me that all the above are needed,
> and I am assuming that you already block
> *incoming* connections, but the above is
> the right idea (and does block several
> outgoing connection attempts on my machine).
First in a Bash shell script where you put all your iptables
rules the backslash is actually a perfectly correct syntax:
it's the one I'm using for my long iptables rules ;)

Then on a stateful firewall, you usually block *new*
incoming connections, not RELATED or ESTABLISHED

Usually people have :

iptables -I INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT

which may be a problem when a rogue program decides
to establish the connection from your computer: no matter
how much you block incoming stuff, if you allow RELATED
and ESTABLISHED trafic in (which is usually how iptables
is configured), you're hosed.

To me the real best option is to "deny everything that
is not specifically allowed".

Thanks again and talk to you one of these days,

 Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les
tarifs exceptionnels pour appeler la France et
l'international.Téléchargez la version beta.

Comment on this post