HNHacker News
TopNewBestAskShowJobs

johnthedebs

1,656 karma · joined October 9, 2009

Software engineer & gardener, among other things

johnthedebs@gmail.com

submissionscomments
johnthedebs··on New MacBook Pro outsold every competing laptop in just five days
Just to offer a somewhat contrarian opinion: I'm a professional developer who is very excited about these new MacBook Pros.

I routinely run multiple VMs, Vim is my primary text editor, and I picked up a DSLR this year and have been getting into photography as a hobby. After some initial skepticism and consideration, I'm mostly happy with the design tradeoffs that they made. Of course I'll have to use one for a while to know for sure.

The price increase is obviously unwelcome, but it isn't new as far as their laptop redesigns go and I expect the price will fall back to "normal" over the next year or two.

johnthedebs··on Apple’s announcement on artificial intelligence is a big shift for the company
Gotcha, well that's a great point but it's lost in your original post. I agree with most of your examples, except about Apple in regards to both their new AI work and the iPad Pro.

As far as AI work, I personally really appreciate their emphasis on privacy, and that kind of work seems like it would be a lot harder (or nearly impossible) if they were collaborating with another company. I'd rather have a subpar experience and my privacy than a great experience and my data being sold, mined, subpoenaed, or otherwise being made accessible to systems/organizations that I'm not aware of and don't consent to.

As far as the iPad Pro, I don't own one but when I replace my aging iPad I plan on getting a Pro with the pencil and keyboard because 1) these are features I wanted and I don't mind if someone else implemented them first and 2) all the reviews I've seen about them say they nailed it with their own implementation. I don't think they could've done that in collaboration with MS.

johnthedebs··on Steps to Turn Off the Nagging Self-Doubt in Your Head
I've listened to Sam Harris' stuff too not long ago and I'm not sure if it changed my life, but it definitely blew my mind and is part of a broader interest in this type of stuff that is changing my life. I don't agree with all his opinions, but his interview with Tim Ferriss and his book Waking Up are both fantastic.

Tim Ferriss Interview: http://fourhourworkweek.com/2014/06/18/sam-harris/

Waking Up (narrated by Sam himself, which I prefer): http://www.audible.com/pd/Religion-Spirituality/Waking-Up-Au...

johnthedebs··on Apple’s announcement on artificial intelligence is a big shift for the company
Besides the fact that I disagree with some of your observations, it's not really clear what your point is. Are you saying these companies shouldn't try to compete if it isn't in an area where they've already been successful?
johnthedebs··on Brain scans reveal how LSD affects consciousness
As someone that's done it (a dozen or so times), I always read these threads and feel confused about whether I should recommend it to other people. I usually do recommend it, though, with plenty of caveats.

It can be an incredible experience if only for the shift in perception that it causes. It makes you see that the way your mind operates day-to-day (through highs, lows, and in-betweens) does not even come close to the range of experience that's possible.

It can be euphoric, and it can be scary, and depending on your predispositions it can probably improve your life significantly (given that you integrate insights from your experience into "normal" life), or really mess with your head (esp. if you have latent schizophrenia or similar - I'm admittedly pretty ignorant about this so obviously do your own research).

Anyway, my recommendation to people using it for the first time is to start with a low dose (you often won't even realize it's having any effect until after the trip is over – I didn't believe it my first time), make sure you are in a safe place where you can be left alone to relax if you need to, and ideally make sure to have someone with experience & that you trust to spend time with you and guide the trip.

Also, here's some recommended listening: http://fourhourworkweek.com/2015/03/21/james-fadiman/

johnthedebs··on Mass recall of Apple AC Wall Plug Adapters 2003-2015 due to shock hazard
This failed on me recently (a couple weeks ago) and I was very surprised when it happened. It was a US 10-watt(?) adapter that came with a 3rd-gen iPad I bought a while back.

The adapter is two pieces that fit together (like Apple's macbook adapters), and the piece that inserts into the outlet broke into two pieces when I tried pulling it out one day. The way it split, half was stuck in the wall and half was still connected to the little power brick in my hand. The piece that was still in the outlet had two bits of exposed metal that were clearly just extensions of the prongs in the socket. I removed it very carefully realizing what would happen if I touched the bits of metal and threw it out.

That said, it looks like they don't list the US as affected on that page :-/.

johnthedebs··on Ansible Vagrant Examples
They don't solve the same problem; Ansible (as you must know) is for configuration management and remote execution while Vagrant is a set of tools around VMs to help with development.

I use them together for almost every project I work on, Vagrant spins up the virtual machine and Ansible sets everything up on it (as well as taking care of provisioning servers when I'm ready to deploy).

Small plug for my personal open source project using these two technologies (and many others): https://github.com/johnthedebs/basicproject

johnthedebs··on Building a cross-platform desktop app with NW.js, React and Flux
Yeah, I should have been more clear.

Regular JS in the renderer processes showed errors in the console as usual. However, if I tried using one of the NW.js APIs incorrectly in the renderer, or there was any error at all in the main process (which doesn't have devtools) it would just crash.

johnthedebs··on Building a cross-platform desktop app with NW.js, React and Flux
I'm not OP, but I've also used both and recently switched a production app from NW.js to Electron. I'm extremely happy with the decision to switch.

Benefits of Electron:

* Much more active development, more frequent releases, more quickly addressed bugs (this is huge)

* More active ecosystem

* Lower level API that requires you to perhaps do a bit more work to achieve the same cross-platform behavior but gives more control and fewer weird issues

* Much better documentation

* Much better error reporting. It may have just been me, but when I had a JS error in NW.js, the process would simply crash with no feedback whatsoever (which as you can imagine is infuriating). I opened a couple issues about it and never got any help or feedback. Electron pops up a dialog with a stack trace.

Edit:

* Another major difference is that NW.js uses a shared global object for communicating between the main process and renderer (BrowserWindow) processes. Electron uses evented message passing using an `ipc` (inter-process communication) module that makes for more robust code.

* Besides being lower-level, the API is just (IMO) a lot better/more powerful in general

johnthedebs··on Study: people who eat and exercise the same as people 20 years ago are fatter
How carefully were you tracking calorie intake? It's notoriously difficult and I simply don't believe you ate 1500-2000 calories at 340lbs and didn't lose weight (not that you need to convince me).

In any case, congrats on the achievement!

johnthedebs··on Forcing suspects to reveal phone passwords is unconstitutional, court says
I'd argue that it's much more important to maintain strong privacy rights than it is to convict the minority of criminals that would be caught by indiscriminately searching their phones.

Keep in mind, almost all this data lives elsewhere too. If it's important enough they can still get it.

johnthedebs··on Nietzsche on Solitude
Well sometimes I go crazy when I'm alone, and other times I go crazy when I'm with a group. The reason I don't buy the dichotomy is that if these two things can be true for the same person, is there any value in making the distinction? They seem to describe moods (that some people have more often than others) rather than personalities.
johnthedebs··on Nietzsche on Solitude
I'm the same way, and I've heard that repeated a few times now.

I have to wonder though, does anyone actually "recharge" when they're with a group of people or do they just have a higher tolerance for spending time with others before they need to be alone?

If you can't tell, I don't really buy the introvert/extrovert distinction and I haven't seen any evidence that anyone can spend unlimited amounts of time with others without recharging alone. From my own experience it seems like there's a continuum from "needs lots of alone time" to "doesn't need all that much alone time".

johnthedebs··on iOS 8 length bug breaks jQuery and Underscore object iteration
I ran into this bug myself, and I spent an afternoon or so debugging it.

A simple library upgrade (Underscore 1.7.0 -> 1.8.2) broke a key feature of a site I was working on, but only on my iPhone. It worked just fine on my iPad running the same exact version of iOS.

I ended up using git bisect to narrow down the commit, which consisted of several minor updates to various packages. Of those packages, it was my 3rd or 4th guess as to which would have caused that failure (it wasn't clear since I was having trouble connecting the Safari debugger).

johnthedebs··on Django REST framework 3.1 released
In case you didn't know, you can have Django auto-generate models from existing databases. I've used it a couple times and it worked very well.

Relevant docs: https://docs.djangoproject.com/en/1.7/howto/legacy-databases...

johnthedebs··on Ask HN: I'm a first time freelancer with some questions?
Hey. I've been freelancing for about 5 years more or less. (Disclaimer: I did recently accept a job as an employee, but not for any reason that should discourage you. I think freelancing is awesome and expect to do it again at some point in my life.)

Copyright - Maybe a lawyer can speak to this issue, but my understanding is that you own the copyright to any work you produce until you indicate otherwise. In the context of freelancing, that means that you should have a clause in your contracts that gives your client the copyright to the work once you're paid in full. No explicit transfer needs to be made and nothing needs to be filed (unlike trademarks and patents).

Value of time - You should value your time according to the value you can produce and what you will be happy with. This is tricky, and others have written a lot about this (and have said it better than I could) so search Google for "hn increase freelance rates" and you'll get enough material to keep you busy for a while. Just one warning to add: Don't undervalue yourself! It'll kill your motivation and put you in a vicious cycle of unproductivity. Chances are the lessons you learn here will be learned the hard way (speaking from experience).

Contract - Rather than thinking of this as a legally binding document, you should think of it as an outline of the process you're about to enter into with your client. Use it beforehand to make sure you're on the same page about your relationship, rather than afterwards to try to protect your ass. How/how much/when will you be paid? What are you expect to deliver, and when? How are you going to handle disagreements or unforeseen problems with your client? How much availability should the client expect of you, and vice versa (just as important!). The answer to all of these questions should minimize the risks to both parties and set you up for success. (https://news.ycombinator.com/item?id=8976924 is on the front page as I write this and should get you started).

I could write about this for days, but I'll stop there for now :). If you have any other questions though I'd be glad to answer as well as I can.

johnthedebs··on What we give away when we log on to a public Wi-Fi network
You would have it stored from a prior connection to the network. Of course, it's trivial to spoof that too so the additional check doesn't do any good.
johnthedebs··on From Backbone to React: Our Experience Scaling a Web Application
I spent the time to learn Marionette, and while it improved my Backbone code enormously, I found there was a pretty steep learning curve to using it correctly. And even so, I found doing certain things was often overly difficult or confusing.

Recently, I switched a small project from Backbone/Marionette to React and I haven't looked back. The learning curve for React is tiny compared to Backbone/Marionette, and it is so much easier to 1. reason about and 2. recompose. Not to mention much better performance!

It's clearly still maturing, but to me React feels like a big leap ahead of Backbone/Marionette.

johnthedebs··on Atom
Yup, saw it and looking forward to trying it (haven't yet). But just reading through the description made it clear it wasn't quite ready yet.
johnthedebs··on Atom
Yeah, Vintage mode was okay. I liked the Vintageous plugin a bit better but even that left me wishing for Vim some of the time (more time to adapt might've helped).

Other than that, it seems like an incredibly well-designed editor. Really looking forward to seeing what happens to it now that it's out in the open.

johnthedebs··on Atom
I signed up for an invite less than 1 min after I saw the first mention of it on twitter (https://twitter.com/defunkt/status/438789450147979264) and received the invite maybe 15 minutes or so after that.

I was given 3 invites, I gave away 2 but I'll give the third to the first person to email me. (EDIT: gave away the last one)

Doesn't seem like they're keeping too tight of a lid on it, but I guess we'll see. It seems like it can be freely passed around; I think they're just trying to gauge interest since it won't be free after the beta period.

johnthedebs··on Atom
I've been playing with it for a few minutes now, and it's definitely the case that it's easier to tweak. Not because of the underlying language, but because they expose so much of what's available through a GUI.

I'm blown away by how cool this is. I'm just really hoping for good Vim keybindings and I will pay good money for this once it's out of beta.

johnthedebs··on 129 Cars
I listened to this podcast the other day and it was one of the more compelling This American Life episodes I've listened to recently. I say that as a pretty big fan of TAL.

They spend the episode interviewing car salespeople and managers at one particular dealership over the course of a week (IIRC), where the salespeople are trying to rack up a certain number of sales to qualify for a bonus payout that means the difference between being in the red vs being in the black. They clear up some myths about car sales and generally get to the heart of what it's like to be a salesperson.

The things that were interesting to me were the various mindsets and tactics the salespeople use to sell a car, especially when they're desperate. The way the salespeople negotiate between two different parties – on one side with the customer, on the other side with their manager – was also something I hadn't thought about.

That's about the gist of it: a week in sales during a somewhat desperate situation from a car dealership's perspective. As a semi-regular podcast listener who really likes TAL but feels like they have some hits and some misses, this one is definitely a hit.

johnthedebs··on Poll: What OS do you prefer for Web Development?
I voted "Others" because I prefer to use a combination of OSes, namely OS X and a Linux distro (I use Ubuntu).

My desktop runs OS X and I use it mainly for my visual tools. Anything having to do with image manipulation, all my browsers, and a variety of other tools run just as well, better, or exclusively on OS X. Some examples: Pixelmator, Illustrator, xScope, ImageOptim, Dash, LiveReload, MacVim etc. There's lots more software and many more reasons, but that's the gist of it.

My (non-javascript) code all runs on Ubuntu, though, and I've got a Vagrant VM running any time I'm doing dev work. I used to run my dev environment in OS X but that was a huge pain in the ass because it's so extremely inefficient in so many ways. Since switching to Vagrant & VirtualBox (& Chef, but I'm looking to switch away from that) I haven't looked back, even for solo or weekend projects.

I do use Windows, but only occasionally and grudgingly so I wouldn't count it in this case. I make sure the sites I build work in IE and that's pretty much it.

johnthedebs··on Why Your Dog Can Get Vaccinated Against Lyme Disease And You Can’t
While mice spread the bacteria to a new generation of ticks, reducing deer populations apparently does have a dramatic effect on their ability to spread the disease. I'm on a mobile device, so the best I can do right now is http://en.wikipedia.org/wiki/Lyme_disease#Management_of_host...
johnthedebs··on Django 1.5 released
Note that with this latest release, the tutorial from the official docs has been revamped and expanded.
johnthedebs··on If You're Too Busy to Meditate, Read This
The subject of meditation isn't all that important, the focus is. Breathing just happens to be a great subject: it's simple and repetitive, it's always with you, it's something you can feel (you're supposed to pay attention to the sensation), etc.

I recently read Mindfulness in Plain English and really enjoyed it. If you're looking for an explanation and how-to (but not necessarily data to back it up), it's a great book.

Edit: Regarding cats specifically, breathing does not demand your attention (the way cats do) and it does not leave on a whim once it has received your attention (the way cats do). It's up to you, and only you, to focus and continue focusing.

johnthedebs··on If You're Too Busy to Meditate, Read This
I think when most people say 'meditation' what they mean is 'mindfulness meditation' (and that seems to be the case here). During mindfulness meditation, yes, resisting urges is part of what you're supposed to do.

The basic process goes something like:

1) Sit down in a comfortable position that you can stay in without moving.

2) Take deep breaths through your nose and focus your attention on the sensation of air moving over your nasal passages and into/out of your lungs.

3) When other thoughts come into your head or you find yourself thinking about anything other than your breathing, gently direct your attention back to your breathing.

johnthedebs··on Korea jury reaches split decision, Apple guilty of infringing 2 Samsung patents
I downvoted you, and so I feel compelled to explain.

To your first point: On the desktop there are three ways to scroll: the scrollbar, the mousewheel, the trackpad. Of those three, only the scrollbar makes it obvious when you've reached the end of a document. Also, it's not all that different – Apple has brought the same bounce-back behavior to the desktop when scrolling with a trackpad.

To your second point: Some real world things bounce. Balls bounce, and rubber bands do in a sense too. Documents don't. They aren't emulating real-world behavior at all.

Whether the patents are good/valid is up to a whole other set of (apparently very arbitrary) rules. But the points you make to refute taligent's are very weak.

johnthedebs··on The power of intermittent fasting
Thanks for posting this! I've had this problem for a while and was convinced I was hypoglycemic but when I measured my blood sugar level, even at the peak of the symptoms, it was always perfectly normal. I had the blood glucose meter (and paranoia) because my sister is diabetic and I was afraid I might be too. It's somehow very comforting to be able to put a label on this and to know that it's not uncommon and (presumably) not dangerous.
← PreviousPage 3 of 7Next →