Better HN
topnewbestaskshowjobs
Log inSign up

dtech

8,715 karma · joined Feb 25, 2014 (12y ago) · 2,256 submissions

Submissions

comment 12y ago · link · parent

Do you have examples? Most modern Java libraries I know (e.g. Guava) implement interfaces and heavily use composition.

The "inheritance based" things mostly got deprecated/replaced when Java 1.5 introduced generics and most libraries needed to be heavily changed anyways.

comment 12y ago · link · parent

I agree, but it is a well written article with interesting (simplified) real-life examples, so might be good to show the concept to an unaware or beginner programmer.

And everyone likes to read stuff that reinforces their own belief :)

comment 12y ago · link · parent

The quoted law is Austrian, so this doesn't apply to the whole of Europe.

But yes, even running a package delivery service is now illegal because it can be used to transport drugs or firearms and such.

comment 12y ago · link · parent

But this initiative (however good) will also not provide a no-barrier approach. You need to be a member of the coop (with associated fees) to request certificates.

Which is logical. Running a CA and getting the root certificate into the right places is not cheap. Unless someone with money (e.g. Google, as they do with their CDN) decides to provide this service for free some money needs to be earned.

comment 12y ago · link · parent

StartSSL/Startcom already does not charge for individual (wildcard) certificates, you can request unlimited numbers.

You do pay a $60 fee for identity validation, which is valid for 2 years. You can also have automated validation, but they don't allow wildcard certificates (which I sort-of understand, they do need to make money some way right)

So you get unlimited free non-wildcard certificates or unlimited wildcard certificates for $30/year. Not a bad deal.

comment 12y ago · link · parent

If that is cropping then Notepad supports code formatting

comment 12y ago · link · parent

Plus Paint.NET occupies a sweet spot: it is simple enough to easily do easy tasks like cropping, while complex enough to do so slightly more advanced things.

I find it to be especially popular among IT professionals as they usually don't need to do photo-manipulation ("photoshopping"), but need to process images every so often.

comment 12y ago · link · parent

JIT'ed bytecode only carries a ~10% performance overhead versus well-optimized compiled native code, so the argument that a .NET program would be slower is bogus nonetheless.

In this case, GIMP is fully POSIX and GTK based so it needs to translate all POSIX stuff for Windows + rely on a subpar implementation of GTK for the Windows platform.

A good example of how native vs managed usually impacts performance much less than the application structure.

comment 12y ago · link · parent

The major improvement for everyone is decreased startup time thanks to Multicore JIT. That was one of my few irritations with Paint.NET.

Paint.NET should perform better overal thanks to GPU acceleration and multithreaded rendering. I've personally used the alpha's and beta's for a while now and it just feels zippier.

2200.

Paint.Net 4.0 is now available(blog.getpaint.net ↗)

295 points · by dtech · 12y ago · 169 comments

comment 12y ago · link · parent

This is missing a (2010) tag.

Unexpected problem coming from a naïve "optimization". Shows that sometimes it's better to just leave code as simple as possible rather than implementing "clever" optimizations.

Especially in something so fundamental as the base class for all Sets in the collections framework.

2202.

Wordpress demands $10,000 for DMCA Takedown Censorship(torrentfreak.com ↗)

20 points · by dtech · 12y ago · 2 comments

comment 12y ago · link · parent

Now while my intuition would certainly say that autocorrelation is a good candidate property to be used in (lossless) audio compression, I remain sceptical.

It is certainly not a recently discovered or difficult concept to grasp, so if it was that useful I would think that it was already included in things like FLAC...

comment 12y ago · link · parent

That's not really a fundamental coincidence, but a result of the mechanics of factorial and our time system.

10! = (10 * 9 * 8 * 5) * (4 3 2) * (7 * 6) = 3600 * 24 * 42

3600 = 1 hour in seconds

24 = 1 day in hours

Waaay less a "coincidence" than strange (approximate) relationships between the fundamental constants of mathematics

comment 12y ago · link · parent

Other than him having been employed by MS and making major contributions to .NET like LINQ and Reactive extensions?

Yeah I wouldn't know why he would want to have to do anything with MSDN

comment 12y ago · link · parent

> 72

The point was "industry standard", and to be pedantic USB is a serial protocol. Also USB wasn't "championed" by Apple, in fact they weren't even in the original group of designers (IBM, Intel and Microsoft were though). It had broad industry support from the start.

comment 12y ago · link · parent

CSV

comment 12y ago · link · parent

Some people say that the advice is stupid, but there is actually a lot of sensible things that they did at some point or another, some even being distinctly Apple-y:

> 10. Get a great image campaign

> 14. Do something creative with the design of the box and separate yourselves from the pack.

> 18. Stop being buttoned-down corporate and appeal to the fanatic feeling that still exists for the Mac

> 23. Create a new logo

> 25. Portables, portables, portables.

> 31. Build a PDA for less than $250 that actually does something

people usually pay less than $250 upfront for an iPhone

> 34. Port the OS to the Intel platform

(Identical to 76)

> 37. Take advantage of NeXT's easy and powerful OpenStep programming tools to entice a new generation of Mac software developers

Especially true for iOS

> 39. Build a laptop that weighs 2 pounds

> 50. Give Steve Jobs as much authority as he wants in new product development

> 51. Speak to the consumer.

> 54. Sell off the laser printer business

> 70. Simplify your PC product line

> 72. Try the industry-standard serial port plug.

Apple switched to USB pretty quickly if I remember correctly

> 101. Don't worry. You'll survive

comment 12y ago · link · parent

In the whole of Europe (or at least the Netherlands) where there are not a lot of Apple stores they are very actively doing this. Some large electronic chains usually have an Apple section in their stores, often with an Apple salesperson on busy days.

comment 12y ago · link · parent

To get behind the paywall, simply Google the title.

I still don't get how Google doesn't nuke the websites that do this into oblivion...

comment 12y ago · link · parent

I know Justin.tv and Twitch.tv are related, does anyone know if this policy will also reflect twitch?

comment 12y ago · link · parent

Why is a Javascript implementation of some very basic algorithms interesting or noteworthy?...

comment 12y ago · link · parent

But it does require the user to be vigilant and not give every app all permissions (i.e. the root access aptitude et. co require). Do you really think that is reasonable to expect from every mobile phone user?

comment 12y ago · link · parent

Couldn't these results be skewed because Nginx is often used as a reverse proxy?

If there is Apache or something custom behind Nginx it will show up as Nginx I guess. I do not see this issue adressed and it might cause significant skew if you look at the top websites (since they will more often deploy these kinds of tricks)

comment 12y ago · link · parent

> To some people 'embedded' means 'within the same process or thread as the core application'

Only that definition is silly here, since SQLite is by its serverless nature always embedded inside another program.

comment 12y ago · link · parent

It is fairly common, even necessary, for justice to go after the key figures of businesses that engage in criminal behavior (e.g. Maffia, money laundering companies). Otherwise it would be a type of behavior for which no-one can be held (individually) accountable.

comment 12y ago · link · parent

I'm not very familiar with networks at this level, but it seems logical: Level3 wants to push more traffic through the ISP's pipe than the ISP's pipe can handle (because the ISP's customers want those packets).

The only solution for Level3 is dropping or queueing packets, and I'm assuming queueing is not feasible.

comment 12y ago · link · parent

I'm not familiar with the Wikipedia cite policy, but wouldn't this problem be relatively easy to solve by requiring citations from before the fact was added?

Granted, there might be some edge cases (like when a Wikipedian was very fast in adding the fact after it became known) but that would seem to stop the feedback loop dead in its tracks.

comment 12y ago · link · parent

He has a problem with the transfer of IP. He quotes a ToS clause from another company with grants a perpetual free license to your idea, which he has no problem with.

With the "transfer-style" clause you could submit an idea, an then be sued if you use your own idea yourself. That indeed seems strange.

1
7273747576