HNHacker News
TopNewBestAskShowJobs

cnahr

778 karma · joined November 8, 2012

news.kynosarges.org
submissionscomments
cnahr··on Vertical Swing Labels
And a quick follow-up post on Swing hyperlink labels (i.e. customized buttons). I’m using both in my own projects, pretty simple classes but they work as intended. https://news.kynosarges.org/2019/09/17/swing-hyperlink-label...
cnahr··on Jack Dorsey Is Gwyneth Paltrow for Silicon Valley
Yes, of course. I don’t disagree with that at all.
cnahr··on Jack Dorsey Is Gwyneth Paltrow for Silicon Valley
Are you for real? This is ridiculous. Obesity is a serious proven health risk.
cnahr··on Jack Dorsey Is Gwyneth Paltrow for Silicon Valley
Okay, now tell me what’s wrong about not being fat and diabetic. Note I certainly don’t endorse veganism where you’re missing out on essential fats and proteins.
cnahr··on Jack Dorsey Is Gwyneth Paltrow for Silicon Valley
While Dorsey is rather extreme, his lifestyle is a lot healthier than the average American’s or most everyone’s in the developed world. Eating junk food around the clock is really bad for you. Note that Dorsey isn’t fat and diabetic like so many people these days.
cnahr··on Samurai Helmets
I’m not aware of any such relationship in Japan. The exhibition didn’t mention it, and I haven’t heard of it elsewhere either. I think it’s just decorative here.
cnahr··on Samurai Helmets
They may have seen battle but if so as commanders from the rear where visibility to the troops was paramount. If they had seen actual close combat those elaborate decorations probably would not have survived. Also, there were many plainer helmets at the exhibition. I think a samurai expecting real combat would have chosen one of those.
cnahr··on Samurai Helmets
That was the first and only one I had seen, too. I suppose there may be a few more but they certainly seem to be rare. This exhibition had no other examples. The helmet with a flame-engulfed dragon that was shown mounted on an armor suit comes closest.
cnahr··on Tektosyne 6.3 for Swing Released
This is honestly a very inconsequential release as far as the project is concerned. But after JavaFX got split off from the general Java SE distribution following Java 11, it’s simply no longer acceptable for some small GUI application like the demo suite here to require JavaFX. Require tens of MB from a third-party site to run the demo app, or rewrite in Swing? Unfortunately, despite Swing’s relative inferiority the choice is clear.
cnahr··on Intermittent fasting: No advantage over conventional weight loss diets
Yes, due to upregulated authophagy, another point the study ignored.
cnahr··on Intermittent fasting: No advantage over conventional weight loss diets
Completely missing the point. Of course calorie reduction works as long as it is followed. But people have a very strong desire to regularly eat their fill. With intermittent fasting this is part of the diet by design. With daily calorie restriction it’s impossible. Compliance with daily calorie restriction always lapses over time for this reason, so people return to their former fatness. Intermittent fasting is possible to maintain for the rest of your life, daily calorie restriction usually is not.
cnahr··on Oracle removed JRE 10.0.2 download and released a broken Java 10.0.99 update
I just saw the update notice myself (on Windows) but the numbering was bizarre and I couldn't find any official announcement or download, so I just killed and deleted the Java Update Scheduler instead. Useless as of JDK 11 anyway due to changed licensing. Did Oracle get hacked?
cnahr··on Dell XPS 15 9560 Review
I've had serious reliability issues with every Dell or Alienware product I've bought. Yes, the specifications look great and they seem to work fine at first, but quality is simply ridiculously bad for such expensive products.

Case reports: http://news.kynosarges.org/2017/04/23/dell-alienware-reliabi...

cnahr··on Ask HN: Do you still use UML?
Indeed, I only use UML for documentation of existing code. Having a standard allows for consistent reverse-engineering, and a class diagram is still the best way to visualize an OOP class hierarchy.

Keeping them up to date with the code is an issue, as with all documentation. I actually wrote my own Java class diagrammer [1] for that purpose so I can just re-run a project file to create updated diagrams of the current code base, with little or no editing required.

[1] http://kynosarges.org/Diagrammer.html

cnahr··on Java 8 Method Reference Evaluation
Sorry for the downtime, took me a while to correct the post. It's now up again.

As some commenters have pointed out I had a stupid bug in my sample code where I misused the static object creation counter as an object instance identifier. Hence some very strange results I couldn't explain. With that bug fixed, method references now behave as expected (which is still notably different from lambda expressions).

cnahr··on Minadax and Polaroid Telephoto
It's something of an article of faith that front-mounted teleconverters are worthless. Well, they really aren't... assuming you are ready to spend enough money and accept some vignetting. Also, you might want to use a tripod!
cnahr··on Google Analytics Down for Majority of Users
Does not appear to have affected data gathering, though. The hourly page view graph for my site is continuous throughout the downtime.
cnahr··on Is WPF dead: the present and future of WPF
Is that for server-client or fat client applications? For the latter, Java today offers the WebView class (part of JavaFX) that's simply an integrated Webkit browser. You can build your UI for HTML5 and easily hookup with the main Java program. I wrote a brief overview last year, along with other options for fat client HTML5 frontends: http://news.kynosarges.org/2013/12/29/webview-the-other-java...
cnahr··on Technicalities: interactive scientific computing #1 of 2, pythonic parts
That's a great article, and the sequel on "Goldilocks" languages like Lisp & Julia appeared last week as well: http://graydon2.dreamwidth.org/189377.html

An overview with excerpts also just appeared on LtU: http://lambda-the-ultimate.org/node/4990

cnahr··on Truecrypt warrant canary confirmed?
The original headline ends in a question mark, cites one person from Twitter who claims a 2004 (?) conversion, and still provides no explanation why any government might possibly want to serve TrueCrypt a warrant, given that they don't store user data (unlike Lavabit) and all their source code was open anyway.
cnahr··on Light Field Photography
My use of the term "holographic" was taken directly from Ng's dissertation, near the end of section 3.7: "...Camahart showed that holographic stereograms can be synthesized from light fields." Whether he's strictly correct with his use of the term I don't know.

Ng also mentions working with Zebra Imaging on printing such "holograms" [sic], so that's certainly a possible application. I'm not sure a lot of consumers would be interested in that, though, compared to simply showing pictures.

cnahr··on US Republicans' belief in evolution plummets, poll reveals
More surprising to me is that a stable third of Democrats and independents don't believe in evolution, either.
cnahr··on My Experience with the Surface Pro 2 as a Software Developer
So does the 2x scaling of Mac OS-X with any app that isn't retina-enabled...
cnahr··on My Experience with the Surface Pro 2 as a Software Developer
Further clarification: The manifest is the same you'd use for native applications. Microsoft automatically enables DPI awareness for WPF because that framework scales all coordinates automatically with DPI settings. WinForms doesn't do that. It requires extra code for proper DPI scaling, hence you need to manually apply the manifest if you have done that extra work. (Auto-generated Visual Studio projects might automatically provide both the necessary rigging and manifest, not sure.)
cnahr··on My Experience with the Surface Pro 2 as a Software Developer
Windows has offered 200% scaling since Windows 7, and made the option more obvious with a new radio button in Windows 8.1.
cnahr··on My Experience with the Surface Pro 2 as a Software Developer
Microsoft has addressed it since WinForms 1.0, except that it's unfortunately not automatic. You need to include a simple application manifest that enables the dpiAware flag, as described here: http://msdn.microsoft.com/en-us/library/dd464660%28v=VS.85%2...

That article stops short of Windows 8.1 which provides new multi-monitor options. Here's the latest manifest overview: http://blogs.msdn.com/b/chuckw/archive/2013/09/10/manifest-m...

cnahr··on Why are Amazon, Facebook and Yahoo copying Microsoft's stack ranking system?
It seems to me that stack ranking can only work for companies that are so attractive for new talent that any new hires are likely to be more valuable than the lowest-ranked current employees. Once a company is no longer so attractive, as seems to be the case with Microsoft today, you're actually pushing out better talent in exchange for worse.
cnahr··on Leaked documents point to cooperative European surveillance program
Here's the original Guardian report: http://www.theguardian.com/uk-news/2013/nov/01/gchq-europe-s...

Completely unsurprising, except for the sheer amount of hypocrisy of European governments who pretended to be shocked at the American reveals.

cnahr··on If Steve Ballmer Ran Apple
I'm thinking of what the article said, "doing a good job for Microsoft's shareholders" as Ballmer claimed. He did in fact not do that. Please look up the share price, it has been flat below $40 during his entire reign. And MS isn't issuing some amazing dividend either.
cnahr··on If Steve Ballmer Ran Apple
The premise is wrong. Ballmer grew Microsoft profits but he did not maximize profits for Microsoft shareholders. In fact MS share price was famously flat for far too long, and jumped 8% when Ballmer announced his resignation. It's Apple and not Microsoft which delivered amazing shareholder profits. Some basic fact checking before writing an article would be nice.
Page 1 of 2Next →