HNHacker News
TopNewBestAskShowJobs

tshadwell

798 karma · joined April 17, 2012

Infosec @Twitch twitter.com/zemnmez

I can be contacted at my gmail: thomas.shadwell

submissionscomments
tshadwell··on Wikipedia fails as an encyclopedia, to science’s detriment
I'm inclined to agree with you, but instead I agree with the author's sentiment as represented here -- not specifically on Ka/s however. I spend a considerable portion of my time reading Wikipedia articles and very much enjoy it, however:

despite a strong background in science and engineering I can't make much of the considerable majority of mathematics-heavy articles. Many articles as the author no doubt notes define concepts in mathematical symbols which are left undefined, whose meaning is utterly lost on someone without the relevant academic background. For the rest, I find myself lost in a nigh recursive maze of definition upon definition.

Imagine, for example trying to understand: https://en.wikipedia.org/wiki/Camera_matrix with little mathematical background

tshadwell··on When coding style survives compilation: De-anonymizing programmers from binaries
I write almost exclusively Go these days, and I think most of the people I work with could tell you if I wrote a Go program
tshadwell··on Fairphone 2: world's first modular phone goes on sale
I also recently upgraded the GPU in my ~4 year old PC, it cost me only the price of the new GPU and it's one of the only upgrades I've needed to make in that time.

It sounds like you're kind of an outlier in the build your own PC market -- it's pretty impressive you managed to find a motherboard supporting only the old DDR2 ram and having to replace the CPU fan. You also seem to have had to replace the motherboard to support your (likely PCI-E) GPU. Even before I built my first computer PCI-E was long supported by even cheap pre-built PCs.

There's a sweet spot around $600 for a PC, if you buy in this range you'll save money because you won't need to upgrade the majority of components in many years. I often recommend logicalincrements.com as it has PC prices per-component in tiers.

$150 is insanely cheap for a gaming PC and I don't think $150 has ever been "super expensive" by PC standards.

tshadwell··on Creating the perfect GPG keypair
Some time ago I too resolved to do this properly and with my limited bash-fu wrote a script to automate the process of installing GPG to a master USB key you can physically secure which can be used to drop a subkey on a PC. Most of the stuff you see in GPG tutorials can be done with a short gpg --batch.

Here's the (67 Lines of Code) script: http://pastie.org/10631164 It's not really prepared for public release so forgive some ungainly code.

tshadwell··on Show HN: Golongpoll – Go HTTP longpolling library
There's also EventSource, which I've had some luck with. It's more REST-y, I find.
tshadwell··on 2016 Emerging Cyber Threats Report
You could use something like YubiKey and regularly check for its presence.
tshadwell··on Cutting Back Sugar Improves Obese Children's Health in Just 10 Days
It would be great if you could back up your statements with citations so the burden of proof wasn't on me doing research in Google Scholar.
tshadwell··on YouPronounceIt: Search for a word, get videos of YouTube speakers pronouncing it
heyoh http://youpronounce.it/search.jsp?q=i0php8i94%22%3C/script%3...
tshadwell··on Death in the city: what happens when all our cemeteries are full?
If Cities: Skylines has taught me anything, I can answer this question without reading the article.

First, dead bodies start to build up in various buildings, especially well-trafficked buildings such as high density commercial buildings and offices.

The presence of the bodies dramatically decreases land value and happiness resulting in an exodus from the city.

As people leave the city, demand for new development rapidly decreases, along with revenues.

The city quickly digs itself into deep debt as it quickly becomes a ghost town, thousands of buildings become derelict, further decreasing the land value. Nobody wants to live here any more. Chirpy wheezes his last tweet as the last person complains they no longer want to live in this city and leaves.

(though, in cities skylines this usually happens because you have so many garbage trucks and hearses trying to collect the dead people & garbage that they all get stuck)

tshadwell··on A New Design for Cryptography’s Black Box
I remember pretty clearly reading a comment by the author of the paper about the 'unbreakable obfuscation' in which he said that the paper was greatly misrepresented in that it had made a proof in a specific problem domain that wasn't so applicable to real software.

I'm pretty sure it was posted on HN at some point. I don't remember the term IO being used, so it may have been a different kind of obfuscation. There were some allusions made to an unsolvable jigsaw puzzle.

tshadwell··on Exploiting CSRF against search with Lucene
This is incorrect. As I believe the author notes, Same Origin Policy prevents you accessing the results of endpoints you can CSRF with at least one exception (JSONP). The author uses the timing of the forged response to determine if the value was cached. Again, the attacker cannot access any information from a cross-site forged request in this case other than timing data.
tshadwell··on How to Find the Wi-Fi Password of Your Current Network
Depends on what is controlling your WiFi, with netctl, most all the profiles have plain passwords in them, unless you configured otherwise.

These profiles are located in /etc/netctl, so cat-ing the correct file under sudo will give you it.

This will be a concat-d list of all profiles in a pager: `sudo cat /etc/netctl/* | less`.

tshadwell··on Securing Go web applications
It's a nice list of items, but I don't feel like it's informed from actual penetration tests on Go apps. Bad Content-Type headers and DNS rebinding affect almost every Go web application out there.

Any naked Go server is usually vulnerable to DNS rebinding because it doesn't test the Host header.

Edit: see also: http://0xdabbad00.com/2015/04/12/looking_for_security_troubl...

tshadwell··on Why feminists are so annoying
Where's the sexism in e-sports? I don't really have a position here, I just wanted to know.

My gut feeling is that there will be a very high percentage of e-sports players who are men because the majority of competitive video game players are men.

tshadwell··on Get your Google calendar into tmux
Your bash looks like something that can be fixed by a well-placed sed one-liner :)
tshadwell··on Abstractions my Deep Learning word2vec model made
When I see things like this, it makes me wonder how much data forms each of these vectors; if a single article were to say things about Obama, or humans and animals, would it produce these results?
tshadwell··on US hit by 'massive data breach'
There's likely a couple of factors which could include these:

* A breach to internal database level would, in the majority of systems mean the attacker already has all the keys to use the database system

* A database cannot perform a lot of its functionality (e.g. JOINs) without access to the data & if the encryption keys were usable at the database level to perform such functionality it would make the encryption redundant.

A working 'encrypted database' system would likely need to use Hardware Security Modules (HSMs) to prevent key exfiltration, you would distribute these to people who need to use the database, who would need to decrypt it in mostly its entirety to use it.

It's possible by reworking entirely how modern databases work (fully homomorphic encryption is probably useful here) you could create a system where the database doesn't have to already be fully decrypted for you to use it, but as far as I know it doesn't exist (startup idea?).

tshadwell··on Braid is undecidable (2014) [pdf]
Make sure you collected all the secret stars and got the second ending. It's pretty hard to do, though.
tshadwell··on The Unreasonable Effectiveness of Recurrent Neural Networks
I'm not sure how "unreasonable" the effectiveness of RNNs are if the corpus output at 2000 iterations isn't significantly better than a simple prefix based markov chain implementation [1] (and for the regular languages, with some extra bracket-checking), but I found the evolution visualizations really interesting.

[1] http://thinkzone.wlonk.com/Gibber/GibGen.htm

tshadwell··on Go: A Surprising Edge Case Concerning Append and Slice Aliasing
This isn't about aliasing, as the specification notes "If the capacity of s is not large enough to fit the additional values, append allocates a new, sufficiently large underlying array that fits both the existing slice elements and the additional values. Otherwise, append re-uses the underlying array." [1].

I encourage anyone who writes Go to read the specification. I found it very digestible and my code has improved a lot as a result. In this case, for example I can do things like pre-allocate a slice of given and then append to it several times without re-allocations which I sometimes find more semantic when dealing with binary data -- and the reference to the slice doesn't need to change.

[1] http://golang.org/ref/spec#Appending_and_copying_slices

tshadwell··on Go: A Surprising Edge Case Concerning Append and Slice Aliasing
Your understanding is incorrect, too. append() only returns a new slice when "the capacity of s is not large enough to fit the additional values", in which case "append allocates a new, sufficiently large underlying array that fits both the existing slice elements and the additional values. Otherwise, append re-uses the underlying array."

[-] http://golang.org/ref/spec#Appending_and_copying_slices

tshadwell··on Memes are a myth
But memetics isn't comparable to the Higgs particle. Richard Dawkins didn't make an assertion which he then tried to prove about the composition of anything, or indeed how the spread of ideas worked -- he simply made the observation that ideas can spread and change over time in a naturally selective way.

In its original and vague context Dawkins isn't so much proposing a mechanism of idea evolution and transfer but simply a different way of looking at what we already know about ideas along the lines of 'in some cases, ideas can change like genetic code' rather than the response author's 'culture evolves according to analogous laws to genetic natural selection.'. Serious interpretation and extrapolation of what is essentially a cute analogy across the whole of culture is inevitably going to be ridiculous without proper evidence.

In that sense I agree with the author. Nobody knows if this works beyond being a toy idea, but "memes are a myth"? I'd disagree -- 'memes' offer a worthwhile analogy and a useful contribution to our lexicon, especially in the internet age where ideas are freer than ever. Sure, I couldn't say 'X is an idea that acts exactly by the mechanism of memetics', but I can say 'X seems to act like a meme' and I think that's useful.

tshadwell··on Show HN: I made a command-line Slack chat client
I'd agree with you, but somehow arcanist manages to be written in PHP.
tshadwell··on Why Is Mayonnaise Loved and Hated So Deeply?
Google Chrome Version 42.0.2311.135. When I middle click to open this link in a new tab, or use "open in new tab" or "open in new window", no tab or window seems to open.

If I press the middle mouse on the link rapidly the tabs to the left jump as though a new tab is being created and then immediately closed. The link works if I left-click it. Is anyone else experiencing this? This seems to be the only link doing this.

Is anyone else experiencing this?

Oh, looks like the popup blocker is blocking it?

tshadwell··on Simple JavaScript Exploit That Nukes Google’s Password Alert
Anything that adds to the DOM or uses the rebindable Javascript APIs is going to be detectable, anything more on Google's part is just security through obfuscation.
tshadwell··on Sprint – A high-performance, DOM library for modern browsers
Or, you know, use the Javascript DOM APIs? They're really not at all that bad.

  var d = document.createElement("div");
  d.className = "new";
  d.innerHTML = "<p>Hi Sprint</p>";
Skimming through the code I'm not sure the authors really grok Javascript anyway, which might explain why they need a (pretty thin) custom API for the standard APIs. toArray should be simply this:

function toArray(o) { return Array.prototype.slice.call(o) }

Instead it's:

  var toArray = function(obj) {
    var arr = []
    var i = obj.length
    while (i--) {
      arr[i] = obj[i]
    }
    return arr
  }
This is just silly:

    prepend: function() {
      insertHTML.call(this, "afterbegin", arguments)
      return this
    },

  var insertHTML = function(position, args) {
    var argsLen = args.length
    var contents = args
[...]

  var domMethods = {
    afterbegin: function(el) {
      this.insertBefore(el, this.firstChild)
    },
Perhaps this isn't so constructive and I should fork the library and annotate every method with its vanilla Javascript equivalent. I'm sure this post is non-constructive in some respects but I like Javascript, I just wish people would learn how to work with the language it instead of replacing the API wholesale.
tshadwell··on Brain Bleeding JavaScript Obfuscation
Almost all Javascipt obfuscation schemes that I've come across in the wild can be defeated by Closure Compiler with advanced optimizations and pretty print turned on & if necessary a little extra manual intervention. It just optimizes out all the cruft. I'd like to see what it does to this code but the author hasn't provided a raw file.

Online closure compiler: http://closure-compiler.appspot.com

tshadwell··on Japan to open first hotel entirely operated by robots
Though this might be possible, I've not seen it in practice and I very much doubt that this is what the hotel is planning to do.
tshadwell··on The eeriness of the English countryside
I read 2/3 or so of this article, and skimmed the rest. I'm not really sure what the article is meant to mean. I'm English, half of my life was spent in Cornwall and Devon on-and-off with my family, so I was expecting the article to reveal something I hadn't noticed about the English country landscape that suddenly allows it to be framed as eerie.

Instead, the article begins with a novel that overwrites the landscape with binoculars to superimpose an eerie subscript, then appears to meander for the entire length of the article on works and commentaries on some structures in England that could be said to be Eerie and some people who found the countryside eerie, usually for their own reasons.

The primary thrust, halfway through the article appears to be that there are a body of works that paint the English landscape as eerie, but it fails to really explain at all /why/ the English landscape should be more eerie than other landscapes.

As I see it, great horror takes something that is known well and withers it into something that crescendos to the macabre, but this article fails to justify why the English countryside should be any more a target for this than any other landscape; English people will write horror stories in the world they inhabit. The Scarecrows[1] is a great example I read when I was younger of an eerie psychological ghost story set in the English countryside.

I'd like to know what others saw in this article.

[1] https://en.wikipedia.org/wiki/The_Scarecrows

tshadwell··on Basscss – Low-level CSS toolkit
"low level" CSS? It's a sad day when a collection of CSS classes is referred to as "low level". Lower level than bootstrap, I assume?
← PreviousPage 2 of 6Next →