HNHacker News
TopNewBestAskShowJobs

philo23

862 karma · joined February 15, 2011

submissionscomments
philo23··on PHP 7 at Tumblr
Yes, but more or less everything you know about PHP 5 is still true and will work just fine in PHP 7.

https://wiki.php.net/rfc/php6#historical_context

http://php.net/manual/en/migration70.incompatible.php

philo23··on If your code accepts URIs as input, filter out “file://”
Ah yes, you're right. Totally mis-read the code.

It'd still leave access to any files in the same (or sub) directory starting with http, which realistically would probably be none but still something to bear in mind.

philo23··on If your code accepts URIs as input, filter out “file://”
If thats the only validation on calls to file_get_contents, that could very easily be bypassed. Entering something like just "/etc/passwd" for example.
philo23··on Wire open-sourced
From memory, the easiest way to have the "top" of a table view at the bottom of the screen (like in Messages, so the latest message bubble appears at the bottom) is to flip the table view upside down using an affineTransform and then also flip each cell in the table view upside down as well (so the cell is the right way up again).

This means you can insert new rows (message bubbles) at index 0 and they'll appear at the bottom, which makes it considerably easiest to add new messages.

philo23··on A Third of Valve Is Now Working on VR
Valve's Chet Faliszek has said pretty clearly in the past that Half Life 3 won't be a VR game, and I think that's pretty realistic. First person action based shooters don't translate well into VR. Any kind of locomotion that isn't walking around your room-scale space or teleporting just feels incredibly jarring, and it very quickly makes you feel motion sick.

So it'd be a pretty significant change to what we've come to expect from the Half Life games if they made it a VR title.

philo23··on Spotify moves its back end to Google Cloud
Quite a while ago. Not sure on the exact time, but judging from this article, I'd guess sometime in 2014 https://torrentfreak.com/spotify-starts-shutting-down-its-ma...
philo23··on Sideloading f.lux on iOS with Xcode 7
Thanks for the explanation, that makes sense.
philo23··on Sideloading f.lux on iOS with Xcode 7
Installed this earlier today, only thing thats worrying me so far is that it seems to wake up my phone (to the point it asks for the passcode) every now and then. Not really a fan of that happening all the time as I can see it draining the battery pretty quick. From what I remember reading through the GammaThingy source code it has something to do with needing to wake up the display to change the gamma (https://github.com/thomasfinch/GammaThingy/blob/2b504461c4f1...) but it seems to be doing quite a lot more even once the max temperature has been reached...

Edit: also probably worth mentioning, unlike GammaThingy the implementation of f.lux is hidden inside of a compiled nib.

philo23··on Should you use interface builder?
I've never really grasped how to use Interface Builder, I've tried a few times and its just never worked right the first time or felt like the right way to do it. So I've always just taken the approach to pragmatically build my views.

The only issue I've ever had doing it this way was the new Launch Screen to support the newer iPhones, luckily centring a few images isn't too hard to do in Interface Builder. That and writing out constraints can be quite verbose in code.

philo23··on Block and Unsubscribe
It's worth noting on top of what others have said, Gmail (and assume most others too) will only display the unsubscribe button from whitelisted mail servers, as far as I'm aware.

The reasoning being that it could be used by spammers to confirm an email address is real/valid after a user attempts to unsubscribe at which point they could sign them up to more spam. So don't expect your own emails to show the button by just adding the List-Unsubscribe header, unless you're using something like Amazon SES.

philo23··on Apple TV Markup Language
This should be theoretically compatible with React right? I wonder if Netflix are using this + React for their Apple TV app or if they're doing something entirely different... There is a <divTemplate> option so perhaps its through that?
philo23··on Play GTA V in your Browser, Sort of
I imagine the network latency would be more than enough to induce motion sickness as the display would not keep up with your movements.
philo23··on Fred Dibnah – Steeplejack (1979) [video]
Absolutely loved watching Fred growing up. Interesting seeing it on HN, but I'm just glad it means a few more people can appreciate this amazing man.
philo23··on Auditing GitHub users’ SSH key quality
There's probably a better way of doing it, but this should check all your public keys if you use more than one, assuming they're in ~/.ssh

  for file in $(ls ~/.ssh/*.pub); do ssh-keygen -lf $file; done
philo23··on Squirrel – A high-level, light-weight scripting language
This is one of the scripting languages used in the Source Engine. I believe the first game that supported it was Left 4 Dead 2, it was certainly the first time I heard of it.

https://developer.valvesoftware.com/wiki/VScript

philo23··on Web typography for non-designers
I believe that's just how the font is stylised.
philo23··on Show HN: Health Scout – An app I wrote for a mother traveling with a sick child
Not sure if it'll be much help, but you might be able to find and scrape data from here: http://data.gov.uk/data/search to do something similar for the UK, I can't seem to find it though.
philo23··on Inside a British Bank-Bombing Spree
Very interesting read, what's even more interesting to me is that the place this article focused on is only around 10/15 minutes from where I live and I had absolutely no idea this had ever happened!
philo23··on Emacs Is My New Window Manager
Minor nitpick, but isn't that Firefox, not Chromium in the screenshot of the web browser overlaying emacs, right after mentioning that he uses Chromium instead of Firefox because it requires a "real" window manager?

Regardless though it's an interesting setup, I've always wanted to try a minimal window manager.

philo23··on Somebody’s Already Using Verizon’s ID to Track Users
What if it had a different case? Eg x-uidh:

I remember for a while the only way to change the User Agent header for iOS UIWebViews was to set the user agent header in lowercase, as long as it's after the actual header, PHP will uppercase both and the later one will win (for $_SERVER atleast, obviously this is PHP specific.)

philo23··on Letter to Amazon Board from Fired Ad Exec
I believe it used to be quite useful when your only option to read PDFs was Acrobat which was slow and would often lock up your browser while the plugin loaded.

Now that both Firefox and Chrome include built in PDF readers and we've also got other options like SumatraPDF, I see little value in Scribd any more.

philo23··on Firefox Developer Edition
Fantastic, I'll try it out.
philo23··on Firefox Developer Edition
I managed to get this when downloading Firefox Aurora over the weekend while reinstalling my OS. I wasn't expecting the dark UI when I opened it. I personally found it a little garish and I couldn't immediately see a way to turn it off. Anyone know if there's a way to switch it back?
philo23··on Robot will beam live Moon pictures to Oculus users
Exactly this. It's a really great idea but a delay of just a few hundred milliseconds is enough to make even someone who uses the oculus rift frequently feel motion sick. Viewing static images in (for example: loading screens in games) are enough to make me personally feel nauseous, so I can't imagine what the delay would be between earth and the moon (a second or two?) would make this feel like.
philo23··on Drupal 7 SQL Injection Vulnerability
It appears to be a pretty serious issue. The SQL injection alone is bad but the ability to run basically any PHP code through callbacks makes the problem that much worse.
philo23··on EBay under pressure as hacks continue
I was just about to comment that sandboxed iframes aren't really well supported but it seems like I'm completely wrong, they're much better supported than I expected http://caniuse.com/#feat=iframe-sandbox

Still it would leave a fair chunk of users with IE 9 or older no better than they are right now.

philo23··on Dash – Beautiful instant offline docs for almost everything
Bought this a while back and was very impressed, definitely a worthwhile purchase if you ever spend some time without much internet access. The integration with Alfred + the fuzzy searching is just the icing on the cake.

Also as a little side note, I thought the way it handled the UI for tabs was interesting, though it does leave little room to grab the window and drag when you've got a few open.

philo23··on Fat JSON
That sort of syntax reminds me of Objective C's key paths.

  [object valueForKeyPath:@"them.public_keys.primary.bundle"];
which is part of the larger, more in depth, Key-Value coding interface. It was definitely something I missed going back to PHP, Javascript and other languages after using Objective C.
philo23··on OS X Beta Seed Program
Got a feeling the "backup your mac with Time Machine" step is a good sign of how you'll have to uninstall it.
philo23··on Amazon Preparing to Release Smartphone
I'd really love for Amazon to make a phone that uses the same eink screen as the kindle paperwhite. Just a basic, no frills phone with a similar long lasting battery life to the paperwhite.

No doubt if they are planning a smart phone though it'll be more similar to their Kindle Fire tablets which is fair enough, but hey I can dream..

← PreviousPage 5 of 6Next →