HNHacker News
TopNewBestAskShowJobs

lscharen

522 karma · joined July 16, 2010

submissionscomments
lscharen··on How to Survive as a Solo Dev for Like a Decade or So
I totally get it; I also need a separate space to switch mindsets.

Your setup reminds me of an article I read many years ago on these sorts of "tricks" to stay disciplined when working from home. One of the tips an individual used was to

  1. Walk out his front door
  2. Lock it
  3. Walk around the block
  4. Re-enter the house
And he was now in "work mode". At the end of the day, he reversed the process by walking around the block in the opposite direction in order to "get home".

Seemed quite brilliant to me at the time.

edit: Just noticed that enraged_camel engages this exact technique below.

lscharen··on Tesla semi truck announced
You are correct re the Powerwall and Powerpack confusion. I had gotten the information off of the Wikipedia article and accidentally combined information from the two tables.

That definitely changes the cost/weight/power equations.

lscharen··on Tesla semi truck announced
Well, a class 8 trucks has a gross weight of over 33,000 pounds. Let's pretend that Musk gets that 1MWh by slapping some Powerwall 2 units on a truck frame.

The Powerwall 2 has a capacity of 200 kWh, costs $5,500 and weighs ~3,500 pounds. So we're looking at 17,500 pounds and $27,500 for that 1 MWh of batteries.

That's about half the minimum gross weight of the truck at a fairly reasonable price compared to the vehicle cost as a whole.

I'm sure there would some significant weight savings using a electric drive versus the large diesel engine + drivetrain. How much savings? I have no idea, but it should significantly cut into the battery weight penalty.

Edit: Looks like a typical heavy duty engine (Cummings ISX15) is only about 3,000 pounds, dry weight. The Model S electric motors are only 70 pounds, so let's say at least one Powerwall is "free" weight-wise.

Also, the ISX15 looks to be >$20,000 for rebuilt engine, so the battery costs look approximately comparable to a traditional engine price.

lscharen··on What CSS minifiers also leave behind
The dojo build system (as clunky as it is) has supported dead code elimination at the module level though dependency analysis for a long time.
lscharen··on JavaScript once had a JSX-like syntax called E4X
I share that sentiment. The complete decoupling of UI presentation and logic all the way up to and through asset deployment via Flex Skins was interesting and had a lot of potential.
lscharen··on Lead Bullets (2011)
PaaS is called Investment Banking.

I hear Goldman Sachs does pretty well at it.

lscharen··on Ask HN: Cheap living and fast internet and cold climate?
Central Minnesota -- cheap house rentals (very few apartments at all) and Fiber optic internet in my city. I've got the low speed plan and I get 5ms ping and 20 up/20 down for speeds.
lscharen··on The McMansion Scale, Explained
Well, if you skipped the dormers, the Heathwood doesn't seem too terrible.
lscharen··on Physicists Create World’s First Time Crystal
The core idea is not too strange, actually.

A "normal" crystal has a repeating structure in space; a time crystal is a construct with a repeating temporal structure.

lscharen··on Ask HN: Strange bug workarounds?
Not a "real" problem on a running system, but back in my first year of undergrad I had a computer science assignment that kept faulting with an "Illegal instruction" error on our Solaris systems.

I had a C compiler on my personal computer and the same program ran and compiled fine there, but we had to submit our solution in source code form on the Department's shared system to plug into the class' automated build and test scripts.

Eventually, I discovered that adding an extra space to a comment fixed the error. I wasn't experienced enough to at the time to know how to use GDB to disassemble and debug binaries, but, looking back, I think I must have triggered a compiler bug that misaligned an instruction (Sparcs were 4-byte aligned, IIRC) and adding the extra space somehow fixed the alignment of the generated code.

lscharen··on New Tesla Model S Now the Quickest Production Car
Probably because the batteries are not discharged to zero, so there is a "floor".

If the floor is X kWh, then we can solve for X based on these two ranges assuming the kWh / mile consumed is the same ratio, r.

    r * (90 - X)  = 270
    r * (100 - X) = 315
Solving these two equations gives me X = 30 kWh as a fixed reserve in the battery packs assuming r = 4.5 mi / kWh.
lscharen··on Answer: How many center-pivot irrigation systems do you see?
I built a Machine Learning algorithm about a decade ago for doing this kind of feature extraction. It was targeted for finding samples on a tissue microarray, but it's basically the same problem (find approximately circular features on an approximate grid).

The research was never published and it was a kind of a hack (an EM-style algorithm that added a step to update grid parameters after the M-step of the centroid fitting).

It worked well enough, but would not be able to handle the heterogeneous circle sizes (1 mile + 1/2 mile) that are demonstrated in the post. Something like this is so well constrained (1 or 2 circle sizes) that running a hand-tuned mix of segmentation algorithms is a pretty good approach.

lscharen··on The Inner Json Effect
Reminds me of the feeling I got when a coworker professed that his favorite PHP feature was variable variables.

Two WTFs for the price of one!

lscharen··on Git for Windows accidentally creates NTFS alternate data streams
Also from the Apple lineage, GS/OS allowed either slashes or colons as valid path separators.

See the last paragraph on page 109 of the GS/OS Internals manual. http://www.brutaldeluxe.fr/documentation/gsos/Apple_IIgs_GSO...

lscharen··on Don't force people to understand how the Internet works
I am going to echo the sentiment of a lot of other comments here, but, while well-intentioned, trying to interpret errors and present them in a "user friendly" format is extremely situation dependent.

As an example, I had delivered an internal application for a client that interfaced with a third-party system that was also deployed internally and maintained by the client's technical staff. My application was primarily used by other, non-technical staff.

Occationally, my application would get an error message from the other system and we would report an error with content like, "A problem occurred with <other server> while trying to <action>. Please report to <technical staff>. Error: <insert error message>".

The problem is that the non-technical staff complained that the error message was "too hard to understand" and my PM initially asked me to, essentially, reinterpret the errors from the third-party server to make them more understandable.

I pointed out that the errors in the third party system were not documented, had no error code attached to them, and would put us in the position of perpetual maintainance as the long-tail of previously-unseen errors poped up over time. Not to mention the fact that error messages could radically change as the third-party server was updated over time.

Fortunately, my argument was convincing and we avoided stepping into an unbounded tar pit of uncompensated development time, all in the name of making things "easier" for the end user.

lscharen··on Bad USB-C cable destroys laptop
I'll see your 40 pin parallel and raise you an 80-pin SCA connector.

https://en.m.wikipedia.org/wiki/Single_Connector_Attachment

lscharen··on A nanophotonic comeback for incandescent bulbs?
That's true for air heat pumps, but many people (myself included) have ground water heat pump systems; either open- or closed-loop.

My unit is fairly old (mid 1980 Tetco) and provide all of our heating and cooling. It uses the most electricity in January/February for heating and July/August for cooling, but my total electric bill is usually never more than $200/mo and that included all of the home's "normal" electricity use.

lscharen··on C.S. Lewis' Greatest Fiction: Convincing Kids That They'd Like Turkish Delight
Hey, even small, remote Hackensack, MN (pop. 308) has a Thai restaurant. So it's not exactly mission impossible to find (Americanized) ethnic food in the Midwest.

https://www.zomato.com/hackensack-mn/udoms-thai-restaurant-h...

lscharen··on In Nigeria, Solar-Powered Fridges at Outdoor Markets Save Food from Spoiling
Interesting that the article specifically mentions that the solar panels feed and inverter first, and then power the refrigerator. There are refrigerators designed to work directly off of 24V DC, which would seem to be a more logical choice.

http://m.alibaba.com/showroom/24v-refrigerator-compressor.ht...

These are less common, though. Maybe cheaper commodity prices for AC-powered compressors offsets the additional inverter cost and efficiency losses?

lscharen··on Intel Skylake sample breaks 6.5GHz mark on LN2
The fact that we're at a point where millimeter distances from one side of a CPU die to the other is starting to be considered "long distance communication" is bemusing and awesome at the same time.
lscharen··on 8088 MPH: We Break All Your Emulators
Exactly!

I did extend it to use a full-screen foreground mask that implemented this sort of clipping. I was able to make the mask scrollable which allowed the compiled sprites to appear "behind" fences and other complex shapes with per-pixel accuracy.

It could even be used to mask out individual pixel bits that allowed for fake "lighting" changes with a carefully chosen palette.

lscharen··on 8088 MPH: We Break All Your Emulators
In my game engine I wrote for the Apple IIgs a long time ago, I used compiled sprites and maintained a 1-scanline-wide mask that I used to clip the compiled sprite to the screen edge.

This only cost one extra AND instruction and allowed the sprites to be clipped to any size rectangular playfield while still maintaining almost all of the speed benefits.

lscharen··on It’s Time to Get Over That Stored Procedure Aversion You Have
This just seems to be a very ranty way of saying that identifying the boundary where separation of concerns takes place is difficult.

It seems almost a tautology to me that of course you want to put all the data-related functionality in the database and of course you want the application business logic to be as small as possible and not enforce data integrity at the application level.

But a lot of this perspective comes from the long tail of hard-won experience and is not obvious to a lot of developers.

lscharen··on History, Sugar and Sex: Why Mixed Drinks Were Terrible for 30 Years
Somewhat off-topic, but I've really enjoyed the "Bartender" manga over the years and its historical digressing into various mixed drinks.

I can't vouch for accuracy, but it's an entertaining read.

http://www.mangahere.co/manga/bartender/

lscharen··on A Brief Overview of Deep Learning
The point of drawing comparisons to the human brain is that we know how quickly humans can perform visual recognition tasks and speed of signal propagation between neurons. Combining these two properties implies that the human brain is able to solve these tasks without feedback, i.e. no loops. Thus, a DNN should be able to perform similar tasks if it can be trained (which it can).

Recurrent neural nets add feedback and are are whole different kettle of fish.

lscharen··on Applying NASA coding standards to JavaScript
Totally agree on this point.

My feeling is that Rule 9 roughly maps to following the Law of Demeter in that you shouldn't chase properties down more than one level, e.g.

Good:

   var something = obj.property;
Bad:

   var something = obj.property1.property2.property3;
lscharen··on The Nth Fibonacci Number in O(log N)
This brings back some memories. I remember talking about the different ways of calculating the Fibonacci numbers in an old comp.lang.java usenet thread about recursion, memoization and dynamic programming from 2007,

http://coding.derkeiler.com/Archive/Java/comp.lang.java.prog...

The thread discusses the exponential, linear and logarithmic algorithms.

lscharen··on NASA, SpaceX Share Data on Supersonic Retropropulsion
"The two midwave IR sensors—mounted in a nose pod on the WB-57 and internally on the P-3—were about 60 nm from the rocket when it reignited its engines for supersonic retropropulsion."

They clearly mean Nautical Miles (nm) here, but I did a double-take on my first read through.

lscharen··on Ask HN: U.S. workers, how much vacation do you get yearly?
I started with 2 weeks and bumped up to 3 weeks after 5 years.
lscharen··on What's the most ridiculous job title at a startup?
Everybody at the Nerdery is "co-president"

http://nerdery.com/copresident

...but it comes from a good place in memorandum of the tragic loss of one of the co-founders of the company.

← PreviousPage 4 of 5Next →