HNHacker News
TopNewBestAskShowJobs

jcoby

420 karma · joined February 27, 2009

Owner, http://getdpd.com
submissionscomments
jcoby··on GM accused of installing devices in diesel trucks to beat emissions tests
> Oh the stomping on the accelerator indicates an emergency so we go with maximum performance rather than emission compliance

FWIW, that's common on gas engines so there is some precedent. It's called power enrichment and can be adjusted in GM computers. When it kicks in depends on the car/truck it's installed in. But it uses a combination of manifold pressure and throttle position and rpm to decide whether or not to command extra fuel. You can see the params HP Tuners uses to configure the PE circuit here: https://www.hptuners.com/help/vcm_editor_parameters_gm_eng_f...

jcoby··on Django 1.11 Released
I'm in your same situation and I think it really depends on your use case. Are you creating an API that's read-only and only for you or a small internal team? You could pretty easily write that in just about any framework (or even no framework at all).

Once you start adding on features like allowing writes, authentication+authorization, rate limiting, API discovery, client library generation, OAuth support, etc then something like DRF really makes sense.

DRF is pretty darn flexible and it uses Django so you get a lot of functionality for free, including the Django admin if you want a way to explore your data. DRF in no way forces you to use the Django models (or even any models at all).

jcoby··on Decommissioning Otto
> Have you considered starting your own stack from the ground up?

Yes. I'm actually in the middle of trying that now.

I want to set up a vpc, a few web servers (1-10) with an autoscaling policy behind the vpc along with a bastion server and a cron server, a code deploy setup to work with autoscaling, cloudwatch logging and monitoring, a load balancer, an elasticache instance, and an rds instance. I've been working on this off an on for months. If you or anyone else can point me in a direction to simplify this I'd be grateful.

The core of the problem I had with terraform (outside of the ECS issue) is that there is one AWS service that gets soft deleted. I can't remember what it is right now but it really threw tf for a loop. So I'd setup the stack, do some testing, decide to shut everything down for the day with a `terraform destroy` and the next day i couldn't resume because tf thinks the resource exists but aws doesn't think it does.

jcoby··on Decommissioning Otto
I really, really want to like Terraform. I tried it on a medium project by starting with and modifying the Segment stack. I ran into constant problems with it not being able to deal with errors and not being able to modify the stack in a way that would work. I ran into several situations where I would have to change names and labels just so it could work around itself while I was trying to iterate on the stack and bring it to a workable state.

To give you an idea of how many problems I had I currently have 4 different tfstate files from 4 days of testing. I had to go into AWS and manually delete resources because it couldn't recover from the errors it created.

One example: I was using the ECS option and changed the container source for a service. Seems easy enough and something that should work. Terraform wedged itself after applying the change so badly that I had to blow away the entire setup to get it reset to where it could even run `plan` without erroring.

Otto looked nice but it had fundamental, basic issues and it seems like nobody was actually working on it. I +1'd a bug with the PHP implementation where it didn't give you the option to change the web root and never got an update. This is something that every single decent PHP framework out there REQUIRES and wasn't supported. Otto PHP seemed like it was designed simply to work with Wordpress.

jcoby··on Austin Startup Sees a Big Future for Little Homes
The latest house on This Old House [1] is being built in the same way as the Sears houses were from a company called Connor Homes [2]. They even talk about the Sears homes in the first episode.

1. http://www.thisoldhouse.com/toh/tv/house-project/overview/0,... 2. http://connorbuilding.com

jcoby··on How do Win 3.1 applications work in Wine?
That's not even the full Win32/16 style. That first line should be:

    static LRESULT WINAPI MCIWndProc16(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
And even then MS couldn't decide whether to use message (MSG struct), Msg (SendMessage), uMsg (WindowProc) for the second variable name. Sometimes they would use hwnd as well. I remember it all being very, very confusing when I was learning to program because it was inconsistent in so many ways.

In a semi-related note, Raymond Chen's blog (1) is great for diving into the history of the Windows API and its many quirks and gotchas.

[1] https://blogs.msdn.microsoft.com/oldnewthing/

jcoby··on Turbochargers Will Keep Getting Better
The F-series outsells any other single car by at least double. 65192 units in November vs 30945 Camrys [1]. And trucks/SUVs/minivans/crossovers (all "light-duty trucks") as a whole outsell cars by about a 50% margin. But if you just compare pickup trucks to cars, it's ~200k trucks vs ~500k cars.

So, you can skew the stats however you want depending on how you want to look at it. Overall cars are actually the lesser-selling segment in the US.

1. http://online.wsj.com/mdc/public/page/2_3022-autosales.html#...

jcoby··on Leaving the Mac App Store
For some reason Xcode updates are shown in Launchpad (both the dock icon and if you can manage to find the app in Launchpad itself) and then sync'd back to the App Store after some delay. The delay seems to be completely random.

I think for some class of updates that includes Xcode and OS the App Store uses a separate tool to download and run the update so it has to use some sort of (very) delayed IPC mechanism. Regular apps update through the App Store itself so it shows progress immediately.

jcoby··on Fallout 4 Service Discovery and Relay
You can mark ingredients for search in the crafting menu (press 'T' on the pc version I think) and any item that has those ingredients will have a spyglass next to the item name when you look at the item. I have gears, springs, adhesive, and aluminum all marked.

I think they tried to force you to learn how to use this system when you need a circuit board to build a sentry for your settlement and the closest one is in the red rocket in a phone. I just got mad and used the internet. It wasn't until about 20 hours into the game when I wanted to start building mods for the guns that I noticed it.

jcoby··on DRM in TIG welders
Have you seen the AHP AlphaTIG 200X? It's a 200A AC/DC tig/stick welder with nearly all the features of the PowerTig for $700. The only real difference I can see is that it only goes to 200Hz on pulse vs 500Hz for the PowerTig. Comes with everything for TIG and stick, including a flex head torch and a ball flow meter and dual 120/240 voltage. Supposedly it uses high quality components internally and it has an American company supporting it. It gets great reviews from everyone who tries it.

I've thought about buying one just to try it. I've only welded TIG on an ancient transformer 400A L-TEC. I really want to see what it's like to use one of these modern inverter machines.

I know someone who just got the Eastwood TIG and it looks like an older version of the AHP without pulse and AC freq adjustment. I'm hoping to try it out soon.

I can see why Miller is getting scared and trying to lock in businesses using DRM with these Chinese coming in at 1/4-1/3 the price and getting cheaper every year. The Chinese welders really got a bad name from Harbor Freight, and for good reason. But these new inverter machines are really starting to hold their own.

jcoby··on Show HN: Twitch Installs Arch Linux – A cooperative text-based horror game
The stream is offline (it starts tomorrow) so livestreamer won't find it now.

I'm not on Linux ATM but Twitch moved to HTML5 video a while ago [1]. You should be able to watch it in Chrome. Firefox seems to show a black window for all streams because of a JS error apparently.

I uninstalled Flash a while ago (and turned it off in Chrome) and have been watching Twitch with no issues.

1. http://blog.twitch.tv/2015/07/video-player-controls-now-in-h...

jcoby··on A Little Gear That Could Reshape the Jet Engine
There really isn't a good way to rate turbines to hp. I did find this article [1] that says a 747 uses some 87000 hp in cruise across all 4 engines. That's approx 20000 hp per. It also says that's only 1/4 of the rated thrust it's capable of. I have no idea if you can say each of those engines is capable of 87000 hp or not since it's entirely dependent on speed.

If you watch agentjayz on YouTube he rebuilds turbojets that have been converted to become gas generators for power plants and some of those are easily capable of generating 30000 hp using tech from the 60s.

It really is phenomenal how much power turbine engines can make. There is a thread on the Concorde [2] that goes through a q&a session with the people who operated it. In that thread it says that the engines at idle consumed some 5 metric tons of fuel per hour per engine.

1: http://www.aerospaceweb.org/question/propulsion/q0195.shtml

2: http://www.pprune.org/tech-log/423988-concorde-question.html

jcoby··on A Little Gear That Could Reshape the Jet Engine
I think you are off by 3 orders of magnitude unless you are planning on putting 1000 motors on each wing. I said 15000 kW. That's 15 MW. 300v @ 50A is only 15000 W or roughly 20 HP (actually a bit less when you consider the power factor).
jcoby··on A Little Gear That Could Reshape the Jet Engine
I think the issue would be weight. You'd need an alternator capable of absorbing some 20000+ HP (~15000 kW). And then the electric motors and associated fans and housings and mount points. And then the cabling to handle distributing the current. And if you're going to cross route you'd need the switches and associated stuff to drive it.
jcoby··on League of Legends Chat Service Architecture
Yeah, that's crazy. I don't have time for that.

I played 2 games of Dota last night. One 35 min (ranked) and one 43 min game (unranked). It took less than 5 minutes to find each game. I had one game fail to start due to fail to two players failing to load. Reborn has been having some server issues so it's not unheard of. Total time in game was like 1:30.

The ranked game was a complete stomp - 59-14 in 35 min but the losing team stuck it out for the entire game. We could have ended it 10 min earlier but we didn't for whatever reason.

No rage quits or gg ff calls or intentional feeding. I'm not highly ranked (no clue what the equivalent is in LoL; I'm just at or slightly above average) but it's rare to get RQs in ranked at my level.

jcoby··on League of Legends Chat Service Architecture
In Dota 2 if you AFK for more than 5 minutes (no xp) you get an abandon and the game is safe to leave for all players. In ranked your MMR (roughly your Elo) gets updated win or lose if the game goes past first blood. The abandoner gets a loss regardless of outcome.

If you abandon 2 ranked games you get put into the low priority queue and have to play a certain number (at least 5 I think) of all-random games that don't record anything.

If you get reported for communications abuse enough you get a communications ban and can only use the chat wheel and rate-limited pings. Other reports get turned into low-priority queue time (supposedly).

If you dodge a game (even if you don't ready up) you get progressively harsher queue timeouts. It goes something like 4 min, 10 min, 30 min, 1 hour, etc.

There is also rumor of a hidden queue pool of toxic players. Kinda like a shadow ban but it lumps all the ragers and dodgers and AFKers and feeders together to play with each other.

Honestly, LoL never appealed to me. Every champ is about the same with about the same skillset and every game has the same laning. Riot seems to not really be able to make changes and their community management is bad.

If you can get past the turn rate and inability to spam spells in Dota you might enjoy Dota more.

jcoby··on League of Legends Chat Service Architecture
I have ~1k games in Dota 2 and have run across less than a dozen ragers in voice. A quick report+mute and they're taken care of. Usually getting a chat ban in the process.

If anything it makes the game better when people start using voice. I've had games that I've given up on and people started using voice to ask for things like shared unit control for dominated creeps to stack ancients and actually communicate where they're going instead of trying to guess what's going on in four silent teammates' minds.

OTOH, I had one game on EU W where two Russians were talking (nicely) to each other and some British guy comes in and just says "I can't stand Russians. Good bye." and leaves.

And I've had my fair share of LAN cafe players with an open mic blaring music and their friends conversations. Mute and move on.

I really do wish we could mute the mic and not chat and vice-versa.

jcoby··on Destroying Apple’s Legacy
Try turning on button shapes. It's been a major help for me. It may not be as clean as the stock setup but it's far more usable for me.

Settings -> General -> Accessibility -> Button Shapes.

jcoby··on DMCA Takedown – Popular PHP Barcode Removed
github is pretty accommodating to DMCA notifications [1]. They give the infringing repo 24 hours to comply with the terms of the notice.

1. https://help.github.com/articles/dmca-takedown-policy/

jcoby··on Lost C64 Games: Daffy Duck – 1992 Hi-Tec
In vice: load the daffy-duck-ds1.d64 to device 8 (file->attach disk image->unit #8). Then run:

    LOAD "DAFFYDUCK",8
    RUN
Edit: for debug controls you rename the "OFF" file to "ON":

    OPEN 1,8,15,"R:ON=OFF":CLOSE 1
Verify that you did it right with:

    LOAD "$",8
    LIST
You should see an entry that says "ON" at the bottom of the list. Then you can run the game as above and will be given an option to have infinite energy and to skip the level with space bar. It also has a nice little banner at the beginning that you don't get with it off.
jcoby··on Don’t Build a Billion-Dollar Business
Your comment reminded me about Timothy Dexter (http://priceonomics.com/the-strange-life-of-lord-timothy-dex...).

This is an uneducated man who could barely write but managed to make a fortune through, luck, tenacity, delusions of grandeur, and a series of truly idiotic or brilliant decisions depending on how you look at it.

jcoby··on PayPal.Me
It happens with cookies as well. It's especially bad on the developer sandbox. If you ever have trouble using the sandbox it's either because your cookie is too big or it's broken for the 11th time this week.
jcoby··on Sqitch - Sane database change management
That's a great idea. I never would have considered that.

Do you create a full rails project to handle migrations or what? How do you integrate that in with your other code?

jcoby··on Sqitch - Sane database change management
It's been my experience that simpler is better. At least when it comes to teams up to around 12-15 people. After that politics will dictate how you migrate.

Adopting three rules has pretty much made migrations a non issue: 1. migrations should be timestamped, tracked, and applied in time order (rails-style migrations; this allows for the migrator to determine which migrations have not been applied regardless of when they get added to the run list) 2. migrations should be committed separate from logic changes (this way you can bring in migration a if migration b depends on it even when feature a isn't ready to be merged) 3) migrations are always forward. It's great to be able to revert during development but production is always forward. If a migration fails it always requires investigation; there is no automatic recovery.

Using the above rules you can put together a migration system in any language in about an hour by simply storing files that issue DDL/SQL directly. With a few hours more work you can abstract it out and be cross-database but that's rarely worth it.

I've tried sequentially versioned migrations and they are a major bear to work with when branching and multiple developers are involved. You end up having one guy be the "database migration guy" and responsible for keeping everything in order.

The intelligent migrators that do diffs of the schema vs the db always have issues plus the very real potential to lose data.

jcoby··on Microsoft quietly rewrites its activation rules for Windows 10
FWIW I upgraded to windows 10 on my bootcamp partition 100% through vmware fusion using the official win10 iso.

I got the same error you linked until the latest rollup fix (which put my install into a boot loop due to nvidia geforce creating a phantom user but that's a whole different problem).

Once I installed the rollup it gave a different error and then took a day or two for the activation servers to finally work and activate the install. I only run windows natively to play games so it only runs for 2-3 hours at a time.

It took until yesterday to get it all sorted out. I installed win10 within a few hours of the iso going up.

jcoby··on Safari is the new IE
Oh the pain of having to use nested tables, various css parsing hacks, browser sniffing, two different box models, and changing significant-insignificant whitespace to support IE 5, 5.5, and 6. All with zero debugging tools.
jcoby··on Crossing the US in an open-air, two-seat aeroplane
You can use airnav.com to find small airports near you and make a visit and ask for recommendations on who to talk to about getting a demo flight. They're usually 30 min or so and run about $100. You'll find out pretty quickly if this is for you or not.

Airplane people are either very helpful or old curmudgeons; but mostly the former. Most are really happy to help someone get started. General aviation can use all the help it can get.

jcoby··on Is It Finally Game Over for Ethanol?
That's what the octane rating is for. Ethanol even has a higher octane rating than gasoline. All modern (~'96 or later) engines have anti-knock sensors and can adjust timing. 89 octane gasoline vs 89 octane E10 will perform the same.

It just isn't possible to lose 42% from running E10. You won't even lose that much efficiency from running low octane fuel in an engine that requires high octane.

Are you getting E10 confused with E85? E85 is a whole different beast and will ruin a car not designed to run on it.

jcoby··on Is It Finally Game Over for Ethanol?
It's around. They even sell testing kits to make sure.

If you can find it, run the 100% pure stuff in your lawn equipment unless it specifically says it can run on E10. The E10 absolutely destroys the old rubber lines and clogs up carburetors.

jcoby··on Is It Finally Game Over for Ethanol?
> The same mechanic told me that some 6-cyl Toyota engines lose 42% of efficiency on 10% ethanol.

He's off by a magnitude. E10 has about 97% energy density as 100% gasoline (http://www.afdc.energy.gov/fuels/fuel_comparison_chart.pdf)

A 42% loss would be huge. A 30 MPG Toyota would get about 18-19 MPG.

← PreviousPage 2 of 5Next →