HNHacker News
TopNewBestAskShowJobs

deckiedan

1,083 karma · joined August 12, 2012

submissionscomments
deckiedan··on Android devices can be fatally hacked by malicious Wi-Fi networks
No! It's not about "compared to the alternatives", it should be, "compared to what it could be, without hideous restrictions to the end user". And in this regard, I think it probably does count as abysmal.
deckiedan··on Django 1.11 Released
Is there anywhere django docs on how to actually use the brin/gin indexes? All I can find is that they exist...
deckiedan··on Vivaldi browser v1.8 released, with calendar-style browsing history
Could you share those links, please?
deckiedan··on Containers vs. Zones vs. Jails vs. VMs
They make shared folders and individual files a lot easier than VMs, also process monitoring from the "host".
deckiedan··on 8 CSS gotchas to start your morning off right (satire)
I knew it was not intended as serious before point 1. The technical stuff /code was so general and lacking specifics that it was very clear.
deckiedan··on Modern C++ and Lisp Programming Style
http://stackoverflow.com/questions/39215103/ghc-overlapping-...
deckiedan··on Ask HN: I am depressed, No job
I think its the best way to depersonalise it, and make it easier to cope with.
deckiedan··on Modern C++ and Lisp Programming Style
Haskell:

    add1 = (+1)

    > add1 23
    24

    > add1 2.01
    3.01

    > add1 "0"
    No instance found...
But that error is at compile time.
deckiedan··on Ask HN: I am depressed, No job
Go find some local charities, children's theatre companies, dance groups, churches, mosques, artisan coffee shops etc, and offer to make free? Or payment in kind (free coffee?) Sites for them to build a portfolio.

Find arty people who are doing what they do because they believe in it and don't have a ton of resources. hang out for a couple days, help out, see what they do, be inspired.

Depression sucks. I was on medication myself for quite a while over the last few years. My counselor said the meds and everything is about breaking out of the cycle. Your behaviour changing will change your body will change your emotions...

If you do get thoughts about death or hurting yourself, go see a doctor. Call the Samaritans. During depression your mind is swapping to disk everything else as the depression process keeps demanding resources. If you get healthy processes going, which may need help from medics (it may be something as simple as some vitamin deficiency!) Or hanging out with inspiring people, Then the brain can deprioritise it and re assign the resources.

Don't give up.

deckiedan··on Most Electronics Being Banned on Certain US-Bound Flights
My mum noticed that if she sets her kindle to 2 or so sizes larger text, she doesn't get motion sick any more.
deckiedan··on U.K. to Trigger Brexit March 29, Starting Two Years of Talks
The EU has many many problems. Of course. Many of the critcisms you level at it would be equally valid of any single political party without a competant opposition.

Currently the EU only really has visible 'opposition' in the form of (IMHO) petty nationalists who want their respective countries to leave, rather than from people who are quite happy to be part of the EU, but want it radically reformed, or changed in specific ways.

I was saddened that the UK voted to leave (I'm British, live in the UK, but grew up in Cyprus). And horrified by how the 'Brexit meanx Brexit' group are now pushing it through with very little discussion about what that could mean, or how Euroskepticsm could be rechanneled into something positive.

The idea of Europe-wide cooperation, freedom of travel/work, etc. isn't going away any time soon, and currently the vehicle it's embodied in is the EU. I deeply wish the UK government had said, "Right. So the referendum proves that enough of the country is very very unhappy with the status quo. Would leaving the EU fix that? Or is there a way we can change the EU, or our status in the EU, in such a way that the situation is better?"

Post Brexit, the UK has no voice into the EU governance, and it's very unlikely that the people with influence in the EU will lean in helpful directions to what the UK government(s) would like it to be.

I hope you're right, that we will return to much more ad-hoc co-operation, deals and many individual treaties and so on. I really really hope you're right.

But while the EU remains like it currently is, I suspect it's simply going to be awful for the UK for a very long time.

I guess it slightly depends on how grown up and generous the EU negotiators and leaders are. If they genuinely will look out for the British public (technially their citizens...) and their interests in this, then it may not be so bad. But the UK government is certainly perceived as being remarkably selfish and self-centered in the whole affair, which doesn't really fill me with confidence about the future of the UK.

deckiedan··on Laptop security: Apple vs. [Insert name here]
Full Disk Encryption is the answer for you.

A side question (sorry):

So if you ever buy any mac device, will wiping it (reinstall from USB disk) remove it from the Find My Phone system, or does the previous owner (if they set it up) keep the option of locking the device remotely and holding it to ransom?

deckiedan··on W3 Total Cache Nginx – Root Escalation
Ouch.

Does SElinux mitigate this? App armour? Dockerised WP and NGiNX?

deckiedan··on Ask HN: Developers with kids, how do you skill up?
Well, I think many of us on HN would not mind too much spending 8 hours a day writing code, but actually end up maybe if we're lucky spending 2 hours a day maximum writing code, and the rest is meetings, rebooting computers, trying to reproduce ill-written bug reports, reviewing others' code, reading docs, watching a test suite run flawlessly and then cursing because it's not catching a bug we know is there, installing software updates, reading some awful wordpress plugin code that the boss installed on the team blog to figure out why it broke on firefox but not IE8...

Coding is quite fun. A lot of the related guff that is part of software engineering in 'the real world' is quite frustrating.

deckiedan··on Problems with RESTful APIs (2015)
> Sadly the person you respond to is an idiot,

"Somewhat misguided" is a lot less harsh and confrontational, FWIW. HN civility guidelines and all.

deckiedan··on WordPress on .NET
I was replying to

> show me if security is improved! > (which for Wordpress can't be that hard)

that is, to say that the concept of 'WordPress Security' isn't a single simple thing to 'improve'. Unfortunately. If you wrote a set of 10 jillion tests and proved that wordpress core has no possible security vulnerabilities (humour me), that still would not fix 'WordPress Security'.

From a theoretical point of view, you're absolutely right, and I agree with you.

From a practical point of view, WordPress is often 'good enough', and 'works well enough', and has 'few enough security issues', for many people.

Improving security is great, but it's a complex, perhaps impossible problem.

deckiedan··on WordPress on .NET
WordPress security is complex.

The core code is OK, security wise. Comparible to similar projects, I guess.

The two major issues are that typically PHP runs with permission to modify the WordPress directory, which is useful for automatic upgrades, but means any exploit in any plugin, theme, etc. instantly becomes, "can replace WordPress".

The other is that all themes and plugins are completely unsandboxed, and the quality is extremely variable.

The permissions thing can be fixed, by running a very stripped down wp-php user with only read access to the code, and only write access to wp-contents/uploads (and a logging dir). Then you do automatic upgrades with wp-cli and (real) cron from a user with write access.

The quality of plugins and themes is not easily fixed.

The API for writing plugins and themes doesn't help. It's archaic, spaghetti, and doesn't have any kind of coherenc. Global functions like wp_is_home(), the_loop(), get_sitename(), etc.

I've come across themes which bundle joomla inside them as they're really joomla themes with a shim.

deckiedan··on Monzo’s Response to Cloudbleed
Great that they respond so clearly and quickly.

One question - does anyone else feel that having NGINX as the only link in the summary kind of suggests that it's an nginx problem? I could imagine my previous boss reading the article, and 3 months later saying, "Wait what, we're using nginx??? Isn't that that shit that made cloudbleed happen?"

deckiedan··on Cloudflare Reverse Proxies Are Dumping Uninitialized Memory
What would make sense (to me, not a business/marketing guy, nor a lawyer, at all) would be a t-shirt and free subscription as the offered thing, something which costs the company nothing.

Then for anything like this, give publically a bonus gift which makes it worth people reporting to them and not blackmarket selling it. Once it's gone through the legal dept. and so on.

Then they can be very quick with handing out tshirts and so on to any and every microissue report, without the people running triage having to care about amounts or tax or whatever.

Having any kind of publically offered payment for service (beyond a tshirt bounty or services in kind) is just begging for legal issues, right?

deckiedan··on Python past, present, and future with Guido van Rossum [audio]
Oh absolutely. There's a few linux distros starting to ship python3 by default, which is great. It's happening far too slowly.

Speaking of speed, I hear 3.7 should finally be able to beat 2.7 for most benchmarks, which is pretty sweet.

deckiedan··on Python past, present, and future with Guido van Rossum [audio]
On most OSes, open a terminal and type 'python', and you get a python2 REPL. That's reason enough to write a lot of scripty admin / automation stuff in python2. And then if you need to extend that, it's easy to just continue on in python2. It's there, it works, it's stable, you don't have to maintain versions in case of security issues, the OS package does it for you.
deckiedan··on Want an energy efficient datacenter? Build it underwater
I worked on a 120m old passenger ship for a while. During dry-dock each year we'd put 8 or so 2kg (ish) zinc anodes around the hull, a welded bracket around each one.

The trouble was that they're pretty expensive, and zinc has a great resale value - so we had to do extra watches around the lower decks with rigged firehoses to try and stop local divers stealing them who knew we'd just come out of drydock. (This was in the Philippines). We lost several that way.

deckiedan··on Websites can now fingerprint a device when multiple browser instances are used
I imagine you could have a browser plugin that randomized the values that javascript sees for those, except for sites where they matter? (Very few, I'd guess).
deckiedan··on Is the Linux Desktop less secure than Windows 10? [pdf]
Oh yes, SElinux tooling is an abomination.

I feel like there should be a way to write a new set of simplified tooling on top of the kernel API.

I've been running fedora at home an on my laptop for about a year now, and don't need to turn SElinux off. I only needed to add one custom role myself too, when trying to mount certain host directories as volumes in docker. Which is fair enough.

deckiedan··on Ask HN: What could disrupt email?
I've just been setting up a new web server this last week, a shared host for a few friends and family, personal websites, a couple of side projects, etc.

The bit which drives me the most crazy is setting up email on it. All the sites need to be able to send occasional notification emails (WordPress, so password resets, etc). I hoped dragonfly mail daemon would be enough,. But we also need virtual host forwarding - if you email some addresses at one of the hosts, it should forward on to the right persons Gmail, or whatever. So we ended up with postfix. Which is reasonable easy - a hell of a lot easier to configure than sendmail or exim, but even still... I wish so much for a mail daemon with all the correct options for SRS, DKIM, SPF, SSL, TLS, greylisting, etc. Turned on by default, and yaml/toml configuration... I'm at the point of reading golang and python SMTP code and wanting to write one. Something like caddy for email.

Email is complex, there are so many edge cases and options. It's insane. Reading documentation is awful, as all daemon docs assume you know what all the acronyms mean, and that you understand all the various RFCs.

deckiedan··on Is the Linux Desktop less secure than Windows 10? [pdf]
Fedora comes with SELinux enabled by default, and is working towards more interesting sandboxing stuff for the future too.
deckiedan··on “Health benefits” of moderate drinking disappear when controlling for wealth
Many many religious people don't do alcohol at all. In the USA, especially the south, many Christians don't drink. In most of Europe most do, "in moderation".
deckiedan··on “Health benefits” of moderate drinking disappear when controlling for wealth
As a home brewer, I'd dispute "doesn't have sugar in it".

The wort is stuffed with maltose, dextrose before fermentation.

The yeast turns most of the fermentable sugars into alcohol, true, but some are left, and some are required.

The yeast cannot work above a certain level of alcohol (%ABV), so any sugars added above that will not be fermented.

Some styles have added non fermentables (lactose) to add sweetness.

Also in cold weather, a mulled ale is amazing. :-)

deckiedan··on Orthogonality and CSS in JS
I think the specific problem of CSS & JS (rather than the more interesting 'separation of concerns' conversation) is partly due to CSS itself not being fully separatable.

It's used for style & design, but also for functionality. In some ways, ideally, function related CSS would be stored with the module, but site-level design CSS would be separate.

Additionally, CSS by design has greedy selectors. If I put in a:

   a { text-decoration: none; border-bottom: 1px solid pink;}
in my site.css, it will muck up any components which use an <a> tag, but don't specifically re-write the border.

Are there good solutions to this?

I kind of feel in some ways, with SPAs and web apps being a thing rather than simple pages, we need a new way of defining styling, which then compiles to CSS, figuring out the correct over-rides along the way.

deckiedan··on Inkscape Version 0.92 is Released
If you're using it on OSX with the X11 layer it's kind of awful. But on Linux, or even on Windows I've found it reasonably decent. I found it less annoying to spin up a fedora virtualbox to run it on OSX than to use the X11 layer.

Its also not great on small screen resolutions.

← PreviousPage 5 of 14Next →