Better HN
topnewbestaskshowjobs
Log inSign up

HardyLeung

1,758 karma · joined Sep 5, 2010 (16y ago) · 303 submissions

Hardy Leung is the creator of Tagxedo (http://www.tagxedo.com) Twitter: @tagxedo
Submissions

1.

Tip of the Iceberg: More on the Sunnyvale House Sold for $782,000 Over Asking(mercurynews.com ↗)

2 points · by HardyLeung · 9y ago · discuss

2.

Yellow-Light Crusader Fined for Doing Math Without a License(nytimes.com ↗)

1 points · by HardyLeung · 9y ago · discuss

comment 10y ago · link · parent

The USAMO winner list is here:

http://www.maa.org/sites/default/files/USAMO_Winners_2016_1....

Apparently the final team was not chosen strictly from the top 12 (Michael Kural and Ashwin Sah were Honorable Mentions).

4.

That sinking feeling: Beijing dropping by up to 4 inches a year, study shows(cnn.com ↗)

2 points · by HardyLeung · 10y ago · discuss

comment 10y ago · link · parent

Lee Sedol winning, and keeping his cool and not make any mistakes. AlphaGo, on the other hand, went bonker especially towards the end but it got into bad territory not because of silly mistakes but brilliant play by Lee Sedol.

Could it possibly be that both of the mistakes were bugs? Perhaps it suggested a non-sensical position such as (25.23, 13.15), and it was snapped to (19, 13) :D

6.

Dotcloud Is Shutting Down on February 29(venturebeat.com ↗)

97 points · by HardyLeung · 10y ago · 15 comments

comment 10y ago · link · parent

This is interesting. I wrote Tagxedo http://www.tagxedo.com which is another kind of constrained packing problem and there is a bit of similarity in the approaches. This is the first time I've heard of CNC packing and part nesting... May I ask what kind of software and how much they are selling for?

8.

Beautiful Use of Drone in Real Estate(vimeo.com ↗)

3 points · by HardyLeung · 11y ago · discuss

9.

L.A. Unified to get $6.4M in settlement over iPad software(latimes.com ↗)

2 points · by HardyLeung · 11y ago · discuss

10.

Real-Time Noise-Aware Tone Mapping(itn.liu.se ↗)

33 points · by HardyLeung · 11y ago · 1 comment

comment 11y ago · link · parent

Nice. One improvement would be to throw in letters in frequencies proportional to the likelihood of appearance in actual text. For example:

http://www.math.cornell.edu/~mec/2003-2004/cryptography/subs...

Though this is a simple problem, if you are picky there are actually other considerations... how well do the words intersect (do you prefer more of a sparse tree-like structure, or maximal mesh-like intersection). What is the optimal dimension of a puzzle given the input. How the order of words (random vs. longest word first) affect the quality of the puzzle. etc. I have a half-done word search puzzle app (with a twist) so this piques my interest.

But I like this one nice and clean.

12.

Scanning and Printing a 3D Portrait of President Barack Obama(gl.ict.usc.edu ↗)

1 points · by HardyLeung · 11y ago · discuss

comment 11y ago · link · parent

I tried out the zooming capability (nice) but it seems like your stroke width does not change in response to the zoom level (at least not in lock step)? So the redness in the lady's dress changes as you zoom. Isn't that a problem?

comment 11y ago · link · parent

It seems to be the case.

comment 11y ago · link · parent

It is a balance between playability and automation. Even minesweeper does that (auto deduce that a large region can be opened up). What I described is only the first-order "convenience" checking to avoid the pain of going way back because of a miscounting.

Regarding the hint button. I don't want to use it precisely because I don't want to "win" by repeatedly getting hints.

comment 11y ago · link · parent

Another feature request... if a tile is already illegal (too many committed blue in line of sight, or no way to commit more blue to satisfy requirement), flag it already. I think the biggest pain is the counting. Otherwise, a nice game!

comment 11y ago · link · parent

I see that this is very similar to Paper by 53 in several aspects... Is that what you are trying to compete with? In that case, I wonder the logic of an upfront price instead of Paper's strategy which is to give you something to try out... At $4.99 a pop, it is much harder for someone to take the plunge.

comment 12y ago · link · parent

Yes, linear gradient within each triangle. It has a non-gradient mode but not turned on. The difference is minor though: Gradient = more "silky" and less triangular. No gradient = a bit more flat.

comment 12y ago · link · parent

Neat. I have a related project called Polygonian -- http://www.polygonian.com -- runs on browser and requires Chrome Native Client that does something similar. Here's the output of a Lincoln portrait using similar point count:

http://imgur.com/lpKVILV

20.

Jacobi's Method Gets a Makeover and Yields Answers Up to 200 Times Faster(releases.jhu.edu ↗)

8 points · by HardyLeung · 12y ago · 2 comments

comment 12y ago · link · parent

This is indeed an interesting problem. I don't know what the runtime breakdown is, most likely in the sorting routine, but if that's the case the problem can be solved much faster but not resorting to generic stable_sort().

I summarize the author's algorithm as follows: take an array of R^3 vectors, and for each element in the vector, perform the [+,-,-], [-,+,-], and [-,-,+] transform. So N numbers become 3N numbers, which is followed by a duplicate removal process faciliated by the sorting.

The improvement is that the duplicate removal can be accomplished without sorting.

Let's say you have an array of R^3 already sorted. Then say you create 3 arrays each of which is created by "shifting" the array in each of the 3 directions. Call the original A, and the derived B0, B1, B2. Note that B0, B1, and B2 are each sorted since element within each array is adjusted in the same direction. Then all you need to do is to do a 3-way merge, which takes linear time.

I bet by doing this, the runtime could be significantly reduced. My guess is that it runs in the range of 10-30 seconds (instead of 335 seconds).

comment 13y ago · link · parent

As a long-time C++ developer I wish people don't use any commenting tricks such as this, and I wish people don't use /* * / to comment their code, even if you develop in C. Instead, use // in modern C/C++.

The reason is that we often need to comment OUT code during development. In C++, the 4 choices are: (1) #ifdef, (2) bool dothis = false; if (dothis) { ... }, (3) /* * /, (4) // ...

Among them, I would say the best and least-confusing way to comment out a block of code is /* * /. #ifdef's are very confusing especially if you have multiple of them; // needs to be applied to every line so only works in small scale; if (dothis) doesn't work across multiple functions, and at a glance it is harder to discern whether this is a "comment-out", or a legit condition.

However, by using /* * / in your comments, you eliminate the possibility of commenting out blocks of code that contains /* * / comments. The problem, of course, is due to how the opening and closing symbols are matched.

comment 13y ago · link · parent

Steve Jobs killed Silverlight (and Flash). Not by providing a strictly superior technology, but by declaring that the category (rich web client) is unimportant. I'm unhappy that Silverlight is dead but not because of Microsoft.

24.

Polygonian - Triangle Art (Require Google Native Client)(polygonian.com ↗)

1 points · by HardyLeung · 13y ago · discuss

comment 13y ago · link · parent

Gotta watch this: http://www.youtube.com/watch?v=MvgN5gCuLac

26.

What's New in Windows Phone 8(developer.nokia.com ↗)

4 points · by HardyLeung · 14y ago · discuss

comment 14y ago · link · parent

Despite all the criticism in this thread, I thank you for writing this, and I hope you are right.

comment 14y ago · link · parent

That's right! Thanks!

comment 14y ago · link · parent

Yes now I can getting use to this. I agree this is not bad way to start.

comment 14y ago · link · parent

> One other subtle thing I miss from Windows 7 is that shortcuts to apps like Notepad will start multiple instances of the app. For some unfathomable reason, the Windows 8 start screen always goes to the first instance of the app if you try to start Notepad or the like multiple times. That would be OK but I can't find any way to override it and easily start multiple instances. Start8 brings back the old behavior here.

You can do that by right clicking the icon on the bottom taskbar and click the app to start. It did drive me crazy until I figured this out.

12345
11