HNHacker News
TopNewBestAskShowJobs

rquirk

437 karma · joined December 12, 2009

@richq | http://quirk.es
submissionscomments
rquirk··on LastPass and the Heartbleed Bug
Don't know about the OP, but I use a combination of sneakernet and scp to keep keepassx up to date across machines.
rquirk··on Depackaging the Nintendo 3DS CPU
In Firefox at least, you can open the post from the RSS feed and read it without Javascript:

http://gaasedelen.blogspot.co.uk/feeds/posts/default?alt=rss...

rquirk··on ASCII Delimited Text – Not CSV or TAB delimited text
Coincidentally I did this just this week. I believe there's no need to track quotes, just if it has an opening quote or not. That RFC really explains it all very well. The only edge case I had was with empty records (foo,,bar) and that was probably due to my implementation.
rquirk··on Why don’t designers take Android seriously?
I do not like Eclipse - it is clunky and often requires restarts to pick up changes or clear itself of confusion - and have never used Android Studio, but AFAICT the latter is still not the recommended editor according to the Android documentation - https://developer.android.com/sdk/index.html says "If you're a new Android developer, we recommend you download the ADT Bundle to quickly start developing apps." The ADT bundle is Eclipse-based. On the Studio page it warns "Caution: ... you may encounter bugs" (though as I say, with Eclipse I'm also sure you'll encounter your fair share of bugs!)
rquirk··on Firefox 29 beta arrives with easy Sync tool....
Firefox has no XSS mitigation built in unlike Chrome and even Internet Explorer. NoScript provides that for Firefox, even if you allow global scripts for practicality purposes you're getting XSS protection.

And I realise that there are design trade offs, but it seems sad that mobile has to drag the desktop into the realm of relative uselessness - not all add-ons can be updated to use the new abstract API (since the API will have gaps that the old API used to support).

rquirk··on Firefox 29 beta arrives with easy Sync tool....
For now Australis only breaks visual add-ons, but I can see a drive to align, i.e. remove features from, the desktop version so it is more like the mobile versions. The thinking being - Australis is visually more like the Android version of Firefox, why not make its add-on model more like the Android add-on model? i.e. Neutered.

The NoScript comment is because that is the "killer app" for Firefox for me, and on mobile Firefox it is not available. There's the amusingly titled "NSA" addition - http://noscript.net/nsa/ - but as you can see from that page it is pretty much dead. A forum post from November 2013 (1) indicates that the author is aware of the problem, but the diverging code bases I guess make it difficult to maintain.

1: http://forums.informaction.com/viewtopic.php?f=25&t=17687&si...

rquirk··on Firefox 29 beta arrives with easy Sync tool....
I worry that desktop Firefox will go the way of the Android version or the neutered Firefox OS browser, where you cannot install the vital security add-on NoScript due to the incompatible add-on model that the mobile versions use. That used to work on Android, but no longer (and it seems the noscript dev is not a fan of the mobile platform). There are many more add-ons that only work on the desktop version. They should all be cross-platform and not desktop specific :(
rquirk··on It's Go Time On Linux
I just didn't "get it" as I had no idea what it meant by a reference time. Normally a time is formatted like %Y-%m-%d and so on, these examples look nothing like that so I had no idea that 2006 is how they spell %Y, 01 is %m, 02 is %d, etc. If you have grown up with strptime and friends, the Go version and documentation makes literally no sense. Then it suddenly clicks ("ah! they do that?!") and it is perfectly obvious.
rquirk··on It's Go Time On Linux
It was one of the things I hated about Go! I am entirely comfortable with the POSIX-style %Y, %m, etc. formatting and having to learn Go's silly way to do it annoyed me no end. The documentation should be much more explicit about what the "reference time" thing means for someone used to strftime. http://golang.org/pkg/time/#Time.Format
rquirk··on Critical crypto bug leaves Linux, hundreds of apps open to eavesdropping
Was the commit that added the problem not this one? It adds the issuer_version and returns it as the value for the check instead of returning 0.

https://www.gitorious.org/gnutls/gnutls/commit/12f135e099a57...

That was 2003-03-03, 11 years almost to the day.

rquirk··on Downloading Software Safely Is Nearly Impossible
It might not be malice on the part of the packager. It could be that their machine is deliberately compromised.
rquirk··on Facebook Open Sources flint, a C++ linter written in D
Not facebook examples, but things I've seen are as follows. All these were fixable to be correct for both GCC and Clang (it's worth it for the clang static analysis).

GCC can call the base destructor explicitly in destructors (an error in clang). i.e. this->~BaseClass(); This is normally a coding error anyway, since the call is added by the compiler.

You sometimes have to add this-> in templates to disambiguate which function is called.

GCC has, or had, a better (different?) two-phase look up for templates, so you can #include a file after its template is used in another header. Clang is stricter and requires you #include "A.h" and #include "foo.h" before using A<foo>, even if the overall compilation unit does eventually declare the A template and the foo class.

GCC supports variable length arrays, so you can do `MyClass x[someValue + 1];`, but with Clang you need to use a vector of MyClass, like vector<MyClass> x(someValue + 1).

This sort of thing compiles in GCC, but not clang:

    template <typename T>
    class List : public list<T> {};
    const List<string> tmpList;
It is missing a default constructor, GCC finds one from somewhere :)

GCC allows friends of derived classes to call static base class protected functions. i.e. Base::protectedFunc() can be called if the current class is a friend only of BaseSubclass. In clang you need to call BaseSubclass::protectedFunc().

Clang requires more explicit template instantiation to avoid link errors. Not sure exactly when, just "sometimes" and you'll know it when you see it :-)

Then as mentioned elsewhere clang shouts a lot about mismatched forward declaration (struct vs class).

rquirk··on ClearSkies – open-source file syncing without cloud
I did. Maybe I should give it another shot.

I recall my problem was trying to understand how to sync files I already had in other directories. Things certainly were not sync'd automatically. In the walkthrough it says you need to git-add files and then git-commit them http://git-annex.branchable.com/walkthrough/#index3h2

The ~/annex/ directory ended up with symlinks to git objects and the files themselves are nowhere to be found. I didn't know where things were/weren't sync'd already. Nothing sync'd across and the assistant just said "all done" or something similar. At one point I remeber it just containing a bunch of broken symlinks. Good job I was just testing it out, imagine if it replaced my actual files with broken symlinks.

What all this boils down to is that git-annex is not as fool-proof as the proprietary solutions claim to be and something equally Free as g-a, but less complicated, would be great.

rquirk··on ClearSkies – open-source file syncing without cloud
Have you been able to use it? It is less user friendly than the proprietary solutions. There's tons of documentation, but nothing that says "here's how to use it like bittorrent sync". In fact IIRC the docs specifically say somewhere "you cannot use this like drop box".

Just sharing stuff between 2 PCs was very difficult (or I couldn't figure it out) and the annex program sat at 100% CPU most of the time doing nothing. Being written in Haskell is a turn off too. If I have to fix something, I want C, python, etc, not this crazy write-only language :-)

rquirk··on Neovim
The regex engine was updated in version 7.4 and now is noticeably faster.
rquirk··on Ubuntu desktop moving application menus back into application windows
The workspace switcher is another strange one.

In Gnome the workspace switcher icon showed a mini-preview of the window layouts. In Unity this is just a static icon made to look like a mini preview! This seems cargo-cultish, as though the Unity developers don't understand what they are trying to recreate.

rquirk··on Google will block local extensions in Chrome 33 for Windows
When/if Google remove AdBlock from the extension store, then you'll know it was the plan all along.
rquirk··on Password prompts are annoying
I'd prefer the lot-more security that using https would provide. I cannot believe that Amazon is served almost entirely over plain-text http, with only the initial log-in done over https. At least that's on the various European versions of the site, perhaps the US one is more secure (I doubt it).

Fortunately you get prompted regularly to enter the password again - presumably renewing the cookie/session - if you want to access more private stuff. So a MITM would have to be listening all the time to view your purchases, etc. and there's no way to change an address without entering the password (I think). But still.. haven't they heard of firesheep?

rquirk··on The GNU C Library version 2.19 is now available
Maybe this one? http://sourceware.org/ml/libc-alpha/2013-10/msg00870.html and Drepper's original response in 2012 - https://sourceware.org/ml/libc-alpha/2012-01/msg00039.html "Ehm, no. All symbols starting with _ belong to the system. I'm not going to make any change to enable broken software. Just fix that broken code."
rquirk··on Neither Microsoft, Nokia, nor anyone else should fork Android. It’s unforkable.
As usual, RMS had this sussed out years before everyone else realised what was going on http://www.theguardian.com/technology/2011/sep/19/android-fr...
rquirk··on Guide to Advanced Programming in C
What about that funky braces style? Code with wrong braces or whitespace messups indicate a lack of care. If the coder can't put a { in the right spot, what else has he screwed up?
rquirk··on Major setbacks for two new smartphone OSs, Tizen and Ubuntu Touch
Regarding the first-edition Nexus 7 - Canonical will no longer produce Touch images for it, so the author of this article is going to be even more disappointed during 2014.

https://lists.launchpad.net/ubuntu-phone/msg05889.html

rquirk··on A useful Caps Lock key
One of my work mates uses this technique too. I remap my caps to ctrl. Hilarity ensues whenever he tries to use my keyboard for pair programming.
rquirk··on Best Firefox Add-ons of 2013
Cookie Monster too - https://addons.mozilla.org/en-US/firefox/addon/cookie-monste... - which is like Noscript, but for cookies.
rquirk··on Firefox OS fan Geeksphone plans high-end Revolution
The Peak+ isn't available. It seems like they have canceled it, unfortunately. If you read the forums then a few people with pre-orders have had them bumped to the Revolution.

I'm sure the GP guys are doing their best - they seem to have more updates for the Keon and Peak than ZTE does for the not-so-Open, that's for sure - but all hype and no products available is not a good way to go about things.

rquirk··on CyanogenMod Installer Application Removed from Play Store
If Google wanted to, they'd figure out a way. It just isn't in their interest. They only care about the new shiny. We'll see what happens with the 2012 Nexus 7 and Nexus 4 this time next year. They'll probably be discontinued too, as none of the Nexus lines have had updates for more than 2 years.
rquirk··on Getting a bit creepy
Reading from the SD card permissions at least was more subtle. IIRC the File you got back was simply null, no Exception or anything at all. This isn't what you would expect from the API call or documentation.

Perhaps that's the hardest part to test about the Cyanogen-style permissions disabling: that there's no uniform way Android handles a missing permission. Sometimes the API will throw an exception, while other times it returns a null Object.

rquirk··on Android isn't freedom, because Google is closed
I haven't seen a detailed breakdown of the freedom problems with Firefox OS, but it looks to be more or less the same as Android in the cupcake era - really basic core applications and a phone that works, but not much third party stuff. You have to rely on mobile web sites. The biggest difference is that rather than have dalvik-based applications, they are written in javascript. All the core apps are on your device locally, and you can write code that is also stored locally too.

Then it promotes the whole "search" part. That seems to be links to websites mixed in with applications, which does seem confusing and doesn't sit well with having data independence. But that's just the same as using web sites on Android.

On the positive side, I'd trust Mozilla to maintain their first-party code as free software. The core phone apps are not likely to go proprietary, as seems to be happening on Android.

rquirk··on Google’s iron grip on Android: Controlling open source by any means necessary
Well one theory is that simply setting up a site that you can download an APK from is a hassle. It either costs you bandwidth if it's your own server, or has terrible UX if it is hosted via a share site.

There's always https://f-droid.org - it has somewhat vetted free-as-in-freedom apps that must compile from source.

rquirk··on Only a few countries are teaching children how to think
Oh come on! It's a classic case of out-sourcing, isn't it? Workers in Poland get paid a lot less. The min wage in Poland is €384 per month (https://en.wikipedia.org/wiki/List_of_minimum_wages_by_count...) or $525 at current rates, while the minimum wage in the US is $7.25/hr (https://en.wikipedia.org/wiki/Minimum_wage_in_the_United_Sta...) - or for a 40 hour week that'd be $1160. I don't know what taxes would do to that, but we're looking at double the rate in the US.

If on top of that Poles are better educated, that's great. Plus Europe needs jobs. But I'm sure the primary concern is the bottom line. BAMA could staff the factories in Oklahoma if they could get away with paying the workers $4/hr.

← PreviousPage 3 of 6Next →