Forgot your password?
typodupeerror

Comment: Definitely :-) (Score 1) 280

by Richard_J_N (#48444487) Attached to: Eizo Debuts Monitor With 1:1 Aspect Ratio

Great that they are making these (though it would be nice to get them in HighDPI too). I'll certainly be getting a few.
(Currrently using 3x 1600x1200 20.1" screens, which is an excellent productivity setup, though the backlights are all beginning to fade).
While we're talking wishlits, give us a monitor that can go to 1200 lumens+ for outdoor use - I'd love to work outside in the summer time, though I need a monitor that can be viewed with sunglasses on, in partial/direct sunlight.

Comment: What about SSL proxy appliances (Score 1) 204

by Richard_J_N (#48414923) Attached to: Launching 2015: a New Certificate Authority To Encrypt the Entire Web

What do we do to defeat SSL proxying, where there is an "official" MITM? For example, a Bob uses a web browser on his work computer, which trusts an SSL proxy appliance, because Eve (sysadmin) installed that cert into all browsers on the office machines. Alice (as the server-operator) wants to protect Bob (who doesn't know any better) from this. Key fingerprinting would allow Bob to discover this, but how can Alice verify this?

Comment: HMRC's CT600 form - PDF forms (Score 1) 132

by Richard_J_N (#47627003) Attached to: Ask Slashdot: Best PDF Handling Library?

Is there anything that can handle the gruesome CT600 forms that the UK Tax authority require us to fill in every year? These have lots of embedded scripting and can only be read with Acrobat Reader. However, this year, Adobe have stopped releasing Acrobat for Linux.

(An added bonus, the internal logic of the CT600 is buggy: for example if a particular tax option does not apply, it is fussy about the distinction of 0 vs empty, and this leads to subsequent validation errors (naturally with confusing messages). It also has about 20 pages of irrelevant data required, in order to reach a single number, which we have already calculated.)

Comment: Any editors with good auto-completion? (Score 1) 402

by Richard_J_N (#47587089) Attached to: Comparison: Linux Text Editors

I wonder whether anyone has an editor with really good auto-completion suggestions.
For example, in HTML, I might type:

Alternatively, in PHP, I might type: forea
and the editor should offer me: foreach ($key => $val){

It should also be able to show the documentation for the functions within a tooltip, do inline syntax lint checking, and support refactoring.

So far, I would also mention "Brackets" and Github's "Atom" editors as worth looking at.

Comment: Re:CSS variables? (Score 1) 256

by Richard_J_N (#46540203) Attached to: Firefox 29 Beta Arrives With UI Overhaul And CSS3 Variables

Personally, I found that dynamically generating my CSS from PHP is the solution. It's easy to understand, easy to write, cross platform, and (using the etag trick), has good performance and bandwidth use.

So I have a bunch of rules like this:
echo "body{ height:100%; background: $colour_body_bg; font-family: $fontface_body; color: $colour_body_text}\n";
Even better, I can support slightly different versions of the stylesheet by linking to "style.php?style=theme_name".

Then, to handle performance and bandwidth, I use etags. The browser will always cache this document at least 10 minutes. After that, it will check for a newer version, but the server will usually reply with 304 (unchanged).
$last_modified_time = filemtime(__FILE__);
$etag = md5_file(__FILE__);
header("Last-Modified: ".gmdate("D, d M Y H:i:s", $last_modified_time)." GMT");
header("Etag: $etag");
if (@strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']) == $last_modified_time ||
        trim($_SERVER['HTTP_IF_NONE_MATCH']) == $etag) {
        header("HTTP/1.1 304 Not Modified");
        exit;
}
header("Cache-Control: max-age=600");
header("Content-type: text/css");

Comment: Re:Why is this legal? (Score 1) 572

That would be ideal, but it requires elevated privileges (no idea why that should be). So I'd have to put it in a firefox extension.

I'm trying to protect normal users who may not be aware that their employer is MITMing them by providing them with a web browser which has been misconfigured into trusting the cert of an SSL proxy appliance.

Comment: Re:Why is this legal? (Score 1) 572

How does DNSSEC help?

I'd like (ideally) to write a php script that would detect when my users are on "compromised" machines, and warn them.
What I want is to write some javascript that would send back to the server what the client *thinks* is my certificate fingerprint.

Comment: Re:Hidden problems with proxies (Score 1) 177

by Richard_J_N (#46322905) Attached to: Most Alarming: IETF Draft Proposes "Trusted Proxy" In HTTP/2.0

Why? If the connection is being MITMd, then both sides need to be able to figure this out.
There was a long discussion on this (regrettably rejected by the browser vendor) to allow the SSL fingerprint to be obtained in JS. That would make it reasonably easy for the site operator to verify that the SSL cert hadn't been tampered with. (Of course, a really evil proxy can scan for the JS, but that game of whack-a-mole is usually easier for the good guys to win, at least sometimes).

Comment: Re:Hidden problems with proxies (Score 1) 177

by Richard_J_N (#46318735) Attached to: Most Alarming: IETF Draft Proposes "Trusted Proxy" In HTTP/2.0

As a website operator, I want to know if my content is being MITMd en route to the user. I know about the SSL fingerprint trick that lets a really technical user discover proxying, but I want to automate this process server-side, and stick up a big banner to say "Your employer is snooping on this connection, please log in from a trusted machine" (and then I'll prevent the user from logging in).

Comment: Merge window buttons and menu bar? (Score 3, Interesting) 255

by Richard_J_N (#46301279) Attached to: Ubuntu 14.04 Brings Back Menus In Application Windows

I've never understood why we can't get the window-manager and the application to play nice, and share one bar. Usually, there's plenty of space horizontally, and too little vertically. So, why not have the combination of:
[icon] File Edit View History Bookmarks Tools Help ....... "The window title goes here" ....... _ [] X

Pound for pound, the amoeba is the most vicious animal on earth.

Working...