HNHacker News
TopNewBestAskShowJobs

rquirk

437 karma · joined December 12, 2009

@richq | http://quirk.es
submissionscomments
rquirk··on Mike Ey, Microsoft HoloLens designer, killed in hit and run
Another unfortunate death that this brings to mind is that of Gunpei Yokoi, creator of Nintendo's Virtual Boy. He too was killed after a car hit him.
rquirk··on Statements about the Mobile Web
One example - I use the ebay app on Android over the web site. It's miles better due to native integration. It remembers my login better than websites do (probably a security risk, but my phone's encrypted), it integrates photo-taking direct into the app which is handy for selling and buying e.g. buying: if you have a minor dispute with a seller you can just blast off a photo in the built-in messaging system. It sends notifications for watched items. The UI is also better than the mobile site - the click targets are nice and big and the lists scroll quickly - but that could possibly be improved in the site. The native integration is mostly what makes it nice.
rquirk··on Keep a Changelog
Seems they no longer use this method. Instead they use `CHANGELOG merge=union` in a .gitattributes file at the root of the repository. That means that conflicting merges take changes from both sides of the conflict. It's what you usually want with a changelog.
rquirk··on Google Play Store: Browsing with Firefox is no longer supported on Android
Yep, just tried it. Firefox not supported, Chrome works fine. It's like Microsoft in the early 2000s all over again.
rquirk··on Windows 10 for Raspberry Pi 2
I agree. This is pretty sad news. The Pi 2 page promotes Windows more than the alternatives, which seems to indicate the foundation has been completely "embraced" in the usual 3-stage process.

It is another reason to not promote the RPi, and recommend other single board computers instead like those found here - https://www.fsf.org/resources/hw/single-board-computers

Sigh. I think I preferred it when Ballmer was in charge and Microsoft seemed clueless :-/

rquirk··on Firefox Hello
The problem I had doing something similar was getting the link to them. You need some other out-of-band communication method, whereas with skype you just agree to a time of the week when to sign on and call each other. Email sort-of works, but not as easily as the central logged-in lobby system.
rquirk··on Lessons learned from the big rewrite
Heh, that agony description was eerily familiar, and I'd be the employee! The hard part is not being afraid to make an obviously right change, even if it means spending ages manually testing things and then continuing to follow up weeks later when the non-obvious things you didn't think of break :)

Even in the face of changing requirements I've found that there are substrates of code that do their job without (showing?) major bugs for years. They never needing fixing. That's your good code. If you had unit tests, you'd never run them anyway because you never touch that code. They are the "select()"s of this world, but specific to whatever you're writing.

Now if the whole system had to be rewritten, the old tests would be useless anyway. You mention requirements that have changed, so those tests you had would no longer apply. You'd have to write a new system and new tests ;-)

FWIW I've found that peer code review and static analysis tools give you a lot of what unit tests would anyway, without the overhead of having to write the tests and update the dead code when you rewrite the affected part of the system.

I mean... what's the point of code anyway? Is it to be "perfect"? Or is it to do a job, earn you money, and be more or less maintainable? Constantly refactoring to stay in the same place is worse than copy-pasting code, from a business owner's POV. Sometimes it is better to have 2 copy pasted methods that are deployed and the customers are happy, than trying to have 1 perfect method sat in development. If those 2 methods never need updating again, you wasted time refactoring. If you would need a third copied method later on, that's the time to refactor.

Maybe I'm being a bit devil's advocatey. Unit tests and refactoring are good tools, but they are not "free" (since you have to test the real system anyway at some point) and Uncle Bob is a bit of a snake oil salesman anyway :-P

rquirk··on Lessons learned from the big rewrite
Oh come on! Reality check please :)

Tests alone provide little value to anyone. At least if you had the production code you could keep it running in its current state while you added back those important tests bit by bit.

Most of the tests wouldn't be needed as good code tends to be churn-free. Finally if you wrote the code TDD style, then writing tests for even the hairy bits would be "easy" compared to rewriting the whole system.

rquirk··on On Linux, 'less' can probably get you owned
This is covered in the fuzzing project's FAQ https://fuzzing-project.org/faq.html

"if you start a new software project it is a good idea to avoid C right from the start. however ... most major software components we use today [are] written in C. Rewriting things from scratch is hard, compared to that finding bugs with fuzzing is the low hanging fruit."

While something like Go has good performance, writing low-level tools in interpreted languages (Python, Ruby, etc) means you would always have the performance overhead of firing up the interpreter for everything. A hypothetical non-C system would feel sluggish compared to what we have now.

rquirk··on What if Valve brought Steam to mobile?
There's the steam box I suppose. A steam handheld would be pretty cool. I love the 3DS, but it is underpowered and the games are hella expensive. A good alternative with a controller and lots of reasonably-priced indie games would be great.
rquirk··on What if Valve brought Steam to mobile?
Don't Apple and Google have clauses in the developer contracts that prevent distributing a store from within their stores? It'd have to be Humble-Bundle style side-loading on Android, which is not ideal, or simply "unpossible" on iOS.
rquirk··on How secure is TextSecure?
I know that, and I can fiddle with settings and get it working as I like. Family members less so.

There are many data plans in Europe where SMS are charged at rip off rates, and are something to be avoided. Even just the risk of sending SMS is enough to put anyone off using the application. Especially when competing solutions work as expected - i.e. they will not send SMS at all, ever.

rquirk··on Why Asus trackpad driver sets the CPU speed at maximum during scroll
Would this all be fixed by installing a linux distro on the laptop? A different trackpad driver - if it works ;) - would do different stuff, and remapping media keys is possible in most desktop environments.
rquirk··on How secure is TextSecure?
It's a pain that it supports SMS. I wish they would make a TextSecure that completely dropped all SMS sending support. As it is, having legacy SMS makes it trickier to use than Whatsapp, since Textsecure "randomly" sends SMSs (e.g. when your data drops out). If SMS cost you money then this is a deal breaker for using it with less tech-savvy family members.
rquirk··on How Amazon Prime delivery hurts Google’s ad business
I've had problems twice with a 2012 Nexus 7 that wouldn't charge any more. Both times Google replaced it under warranty with a refurbished model. On another occasion - related actually, as I had to set up Wallet to get the refurbished unit shipped (they make a charge up front, but it doesn't go through if you ship the old unit back) - my son spent 40€ on virtual clams (sigh), and when I contacted support they refunded the money. This is just a couple of anecdotes, but in my experience the support was good.
rquirk··on Why no one wants to host the 2022 olympics
There was a lot of waste too, just look at the photos of what the site is like now http://desertedplaces.blogspot.com.es/2014/08/athens-olympic...
rquirk··on Chromeos-apk – Run Android APKs on Chrome OS, OS X, Linux and Windows
Slight update, if you set `"enableAdb" : true` in the app's manifest.json, then you can connect adb and view the log. This makes the whole thing miles better than the emulator.
rquirk··on Chromeos-apk – Run Android APKs on Chrome OS, OS X, Linux and Windows
I've just tried it with my own apps.

Features - it is missing logging of any sort, so when an app crashes you don't know why. You can't use adb logcat nor presumably connect a debugger (I just use logcat most of the time anyway). e.g. an app I'm working on crashes when trying to use the "share" feature. this is probably to be expected, but without a log or anything it's tricky to know why. A game I made uses the NDK and despite having the x86 version of the library in the APK, it crashes on startup.

Speed - this is the killer feature! The emulator is useless (at least on Linux) as the native drivers cause it to hang IME, the startup time is too large, and when running an app is too slow to really judge its usage. You can use the emulator in a pinch, but better to test on devices. This means plugging them in and swapping devices (first world problems ;), which is a bit of a pain.

Convenience - the regular build-install-debug cycle is incorporated into the Android build system, whereas with this solution you have to faff about running your own scripts to execute chromeos-apk on the APK, then install by hand from the extensions screen. However you can debug right on the same PC without having to have a phone or tablet available.

So the main difference is speed and a bit of convenience. It is as fast as running the app on a real Android device, without having to have one handy. I can see why Google didn't release this for all apps yet, as there are a lot of places that it crashes out. But it's really cool that this works at all, and I'm sure it'll only get better.

rquirk··on Notes on the Celebrity Data Theft
A lot of sites don't allow more than 12 chars. Of the top of my head, Nintendo's rewards scheme has a limit on the number of characters, it lets you use more but actually truncates the password to 12 or so. Some sites truncate it on the sly then say "incorrect username or password!" when you enter your stored 16+ character password.

Other sites silently break if you use characters outside A-Za-z0-9. e.g. you set a password with } or @ in it, then can't log back in again.

Ebay wouldn't let me paste a password into the password field recently, I had to type it out, and the keepassx "autotype" feature was thwarted by their focus-altering javascript code on the form. I also think they silently dropped special characters - I know it took me 4 or 5 password reset emails to get the new stored pw to stick.

Paypal requires that you enter a credit card number to change the password, so rotating it is tricky if you don't have the card on hand. I'm undecided if this is good or bad, since this sort of 2 factor makes it harder for someone to hijack your account.

There are a lot of ways that sites try and make life hard if you are doing things the right way and using a pw manager. It feels like there's this big conspiracy driving us to use the same "Monkey123" password everywhere.

rquirk··on Banned for Life
The only thing that seems odd here is that Google appear to be proactively defending other companies' trademarks. Shouldn't the Khan Academy or Vice have been the ones to send the takedown notices? Or perhaps they did behind the scenes and this manifested itself in the app bans.
rquirk··on Ubuntu Mate
Focus follows mouse is buggy in 14.04 Xubuntu. There's no fast user switch (you can lock the screen and switch as a good-enough workaround). Suspend and restart causes the screen to not restore on occasions. Thunar doesn't have split mode (nautilus's F3). As you say the default theme is not great, I didn't like that focused and unfocused windows looked pretty much the same.

I don't know if it is better than gnome2 was but it pisses all over anything gnome3. The xfce panel is better and easier to tweak than the gnome equivalent (e.g adding a new item does not require finding a gap on the panel to right click), the places panel shortcut is really handy, xfce-terminal seems faster and less resource hungry when scrolling text than gnome-terminal, and I like the whisker menu. I just wish they had gone with the solid Xfce 4.10 for the LTS instead of the beta 4.11.

rquirk··on µg: Open-source replacements of Google Apps and API on Android
I commend your efforts, but a small rant: One thing that really puts me off xda is that the posts say "open source" but there is no link to anything like how to build the distribution yourself. Just a frickin' binary zip download. And that's served over http from a random site, with no checksums and unsigned.

Only Replicant seem to be doing things the right way, but they are going so slow, and are so unwilling to use proprietary blobs anywhere that there's a space for something like you have here - blobs for hardware features only, no proprietary apps, strongly anti-Google, including F-droid by default - but it needs a bit of proper open source-style organization.

Sigh. The whole ROM scene is a big mess :(

rquirk··on Defensive Bash programming
You can use the pipe | as a continuation at the end of a line. No need to use the backslash escape then. i.e. you never should need to use | \ at the end of a line.
rquirk··on Using the wrong dictionary
If I did not know what sport meant, and looked it up and saw "diversion of field", I'd still have no idea what it meant. I'd think maybe sport had something to do with electromagnetism.
rquirk··on FSF condemns partnership between Mozilla and Adobe to support DRM
Joe and Tilly should stop subscribing to Netflix. That would be the correct solution.
rquirk··on DuckDuckGo Goodies
You can use them without javascript too, if you know the shortcut. e.g. https://duckduckgo.com/html/?q=qrcode%20http%3A%2F%2Fddg.gg%...
rquirk··on The Sorry State of Peer-to-Peer iOS-to-Android connectivity
Android doesn't resolve names like machinename.local though. At least not for me - I hit this problem on a Nexus 7 just this weekend. I ended up putting the IP address in. Perhaps it is application specific, though name resolution seems like something that'd be baked in at a lower level than that. Anyway I tried in Firefox where it attempted to resolve www.machinename.local, and also a VNC application which just timed out.
rquirk··on New 3DS Emulator
What are the demos that this is running? Is it possible for anyone to write 3DS code, compile it with GCC + friends, and run it on an off-the-shelf 3DS? I was under the impression that Nintendo had got security right this time and the device remained uncracked.
rquirk··on Facebook's git repo is 54GB
I bet they check in (or have checked in at some point) 3rd party libraries, jar files, generated files, etc. I battle this every day at $dayjob and we have a multi GB subversion repository with a separate one for the 3rd party binaries. Svn handles this a bit better than the DVCSes, so just checking out the HEAD is smaller than the full history you get in git/hg, and you can clean up some crud a bit. It just lives on the central server, not in everyone's working copy.
rquirk··on My Heart Bleeds for OpenSSL
Well until Google breaks this feature you can see most blogger sites without Javascript using the RSS feed (in Firefox at least):

http://coderinaworldofcode.blogspot.com/feeds/posts/default?...

In other browsers it might not render the RSS XML feed as a page, Chrome just shows the raw XML. I use this bookmarklet for the process:

    javascript:window.location=window.location.protocol+"//"+window.location.host+"/feeds/posts/default?alt=rss&path="+window.location.pathname;
← PreviousPage 2 of 6Next →