News for hackers. Stuff that matters.

Killswitch

Re:Dear GitHub on Thursday January 14, 2016 @08:10PM (#10906323)
Problem with them open sourcing their platform is that the platform base is used in enterprise and how the bulk of their revenue is made... Who wants to buy milk when the cow is being given away?
Re:Lodash 4.0.0 is out on Tuesday January 12, 2016 @09:56PM (#10892060)
Bower doesn't do anything npm doesn't already do, except horrible version management.

    bower install lodash => bower_components/lodash/dist/lodash.min.js

     npm install lodash => node_modules/lodash/dist/lodash.min.js
Only difference there is you use `node_modules` instead of `bower_components` for root directory.
Re:Summon Your Tesla from Your Phone on Monday January 11, 2016 @03:36PM (#10883290)
The article states that it will soon be able to come pick you up from long distances and even stop and charge itself. I'm pretty sure you wouldn't have to do that stuff.
Re:Running costs for running a web app on Sunday January 10, 2016 @05:39PM (#10877575)
To be completely honest with you, Heroku isn't your problem, yeah SSL is pretty high, but that's okay... The fonts is your killer.
Nice write up, Justin! I was one of the first engineers at a competitor of TeeSpring's, and we tackled the same problems. We used Fabric.js in our second iteration (first was jQuery).
Re:How I Built a Side Project on Friday January 08, 2016 @09:39AM (#10865114)
I really dig the idea behind the site. I am not a UX developer, but I am improving and the service would be invaluable. What can we do to help get the iteration back in place?

I assume the reason for not going with DO, Linode or AWS was you're not a devOps guy, which is understandable. We can help you with that.

Re:CodeReddit: Cover UI for Reddit at Work on Wednesday January 06, 2016 @08:54PM (#10855441)
Also skin it to look like an editor, and then have the user go full screen, because who codes in a browser window?
Great response. Too many people criticize someone's work comparing it to similar stuff that's been around since just before the dinosaurs went extinct with responses like "what makes yours better?"

It doesn't. It's just something you made. Use it or not. Nobody cares.

So what you're saying is if I don't go to the doctor for 10 years, but pay $350/mo over the course of that 10 years for an insurance plan, the insurance company uses the money to fund college education for nurses and doctors?

Doubt it.

Re:How to deploy your node app on Linux, 2016 edition on Tuesday January 05, 2016 @09:24AM (#10843349)
Dokku is great if you want to host all apps on a single server. I had used it for a while.

Switched to using github to push to, which fires off a build on a ci server, which fires off a push to docker registry and my server pulls that and rolls the versions.

This setup allows me to have everything on a single server until an app starts needing it's own, then I deploy a new CoreOS server and transfer the fire system to that one.

I'm 30 years old and haven't been to a doctor in about 10 years outside of simple things that I paid out of my own pocket. Nothing that a year of healthcare would cover, and considerably lower than it'd cost.

I'd have paid in tens of thousands of dollars over the course of that time, and for what? What ifs?

Re:Inside Automattic's Remote Hiring Process on Monday January 04, 2016 @01:06PM (#10837198)
> Once I fire off a contract, I’ll post a comment on our internal hiring P2 to give HR a heads up that a trial contract will be incoming shortly.

> NOTE: P2 is a WordPress theme that makes threaded discussions incredibly simple. We use P2 for a large portion of our internal communication.

> I’ll then create a new private WordPress.com blog and invite the applicant to be an editor. This is where I’ll post the project brief. This is also where I’ll move the conversation for the remainder of the trial.

I understand WordPress is their business, but I feel that using WordPress for internal chat and interview board is kind of weird.

Re:Flat Tree Dependency Resolution in Npm v3 on Thursday December 31, 2015 @12:21PM (#10818525)
While I can understand the want for that, there's too much issues. The only reason npm does it this way is because the module that depends on B v1.3 and a module that depends on B v2.1 could be introducing some really bad bugs or breakage if you force all modules to use B v2.1.

That's one of the reason bower is losing out.

Re:Flat Tree Dependency Resolution in Npm v3 on Thursday December 31, 2015 @12:17PM (#10818511)
If depend on A and B and both A and B depend on the same version range as C, C is now a top-level dependency.

Your node_modules will look like this:

    - Package_A
    - Package_B
    - Package_C
It's only when A and B depend on different versions of C that cannot be resolved via semver as safe.

    - Package_A
    -- node_modules
    --- Package_C
    - Package_B
    -- node_modules
    --- Package_C
I am pretty certain that monkey patching your dependencies is frowned upon in the Node world. It's best to fork the repo make your changes, and then depend on that.
Koa is the successor of Express, written by Express creator, TJ. I like it because generator workflow makes writing apps better since we can yield promises. Code is much cleaner.

  app.get('/', function * () {
    this.body = yield User.all()
  })
vs

  app.get('/', function (req, res) {
    User.all(function (err, users) {
      if (err) throw err
      res.end(users)
    })
  })
Swift and Go would be the two things I learned. Or I'd work on a side project for residual income.
What if the data is wrong? What if it prefilled in a username I didn't want to choose?
Best feature suggestion ever. But what would be cool is to do that, but instead of pre-fill in their password, notify them that they are using a password that is known to have been a previously leaked password of theirs.
Re:A Docker-inspired Heroku clone in 100 lines of PHP on Monday December 21, 2015 @04:52PM (#10773795)
But it's not requiring Symfony.
Re:A Docker-inspired Heroku clone in 100 lines of PHP on Monday December 21, 2015 @04:52PM (#10773794)
But it's not 100 LOC if you don't reinvent the wheel! /s
I do similar, but mainly by looking at comment count. Typically higher posts have large comments, and I just don't have the energy to read all those comments.
Re:Show HN: Josh.ai, an AI for the home on Saturday December 19, 2015 @10:53AM (#10763866)
Cortana is the name of an AI in Halo series. That's why Microsoft chose it.
Re:Show HN: Josh.ai, an AI for the home on Friday December 18, 2015 @12:15PM (#10759528)
2 things.

- My name is Josh, I like the name.

- I've been looking for a nice short domain. Thanks for taking a cool one. :P

Re:Show HN: A fireplace for Emacs on Friday December 18, 2015 @09:42AM (#10758663)
My text editor is written in JavaScript. Which theoretically means anything can be in my editor. Even your puny fire place!

BRB, going to play GTA clone in my editor.

Tablets are computers.
Re:Slack Platform Launch on Wednesday December 16, 2015 @09:11AM (#10744320)
> Real world friendships have ended because of how emoji are rendered differently on different phones.

What's sad is that's so true. I overheard the other day my 13 year old niece saying she didn't like a certain girl hanging out with them anymore, because she's the only one "with green chat bubble".

Yes. They excluded a girl from their group, because she didn't have a blue chat bubble. (Essentially an iPhone).

Re:Show HN: FuckFuckAdblock on Monday December 14, 2015 @10:41AM (#10731581)
Meaning, a paywall everywhere is not a smart thing to do. Yes I know content is independent of ISP, that's why I accept ads. Because that's how content producers afford to give you content without charging you.

Older »