Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
m1el
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
23 ms
·
181.
▲
by
m1el
11y ago
https://lists.gnu.org/archive/html/coreutils/2014-08/msg0001... A similar story, with `cp` doing "nice" cleanup on exit.
182.
▲
by
m1el
11y ago
That's cool. As far as I can tell, you are approximating bezier curves with line segments. It is a valid solution in many cases, but I would not use this technique for anything but aestetics. Have you seen this paper: http:/
183.
▲
by
m1el
11y ago
This reminds me the shortest proof of irrationality of e I know. http://i.imgur.com/uEXJkF7.png
184.
▲
by
m1el
11y ago
You're very welcome.
185.
▲
by
m1el
11y ago
I am planning to do a writeup on the core algorithm myself. But in a few words: linear algebra and integrals. *Edit
186.
▲
by
m1el
11y ago
It should work in Firefox, there is a workaround specifically for that.
187.
▲
by
m1el
11y ago
You don't have webgl, duh.
188.
▲
by
m1el
11y ago
Maybe I'll try doing that this weekend.
189.
▲
Show HN: WebGL-powered oscilloscope emulator
(m1el.github.io)
42 points
by
m1el
11y ago
|
16 comments
190.
▲
by
m1el
11y ago
python code to generate this thing: def graytree(n): for row in range(n, 0, -1): d = 2**(row-1) yield ''.join(str(((i+d)>>row)%2) for i in range(2**n)) for r in graytree(6): print(r)
191.
▲
by
m1el
11y ago
That's so cool. When I was a kid, I had a panel with a ton of switches. I've been thinking about the way to cycle through all of the possible switch combinations (I already knew combinatorics and binary), and I invented Gray codes
192.
▲
by
m1el
11y ago
> Has this proof been contested by some parts of the scientist working on the field? Here's a story I find interesting. Einstein got his nobel prize for discovering the law of photoelectric effect [1]. This discovery influenced the
193.
▲
by
m1el
11y ago
https://www.youtube.com/watch?v=yvl6TBGEoO0 https://www.youtube.com/watch?v=xjdbbnWsdis https://www.youtube.com/watch?v=FF25Lwt73fg https://www.youtube.com/watch?v=BtK6FdTg9
194.
▲
by
m1el
11y ago
There is another bug I think we must get rid of: generating HTML using printf techniques. Not only we should have verified parser, but also verified serializers. http://m1el.github.io/printf-antipattern/ (EDIT: I know
195.
▲
by
m1el
11y ago
Maybe it would be better to create a streaming message passing API. e.g. send an object in smaller parts instead of passing JSON and then sending it to the worker and fetch it in parts.
196.
▲
by
m1el
11y ago
You are right, list comprehension are cool and I often use them. However, in this particular case, IMO, it would make things worse because I would have to write a multi-line list comprehension. Multi-line list comprehensions have bad readab
197.
▲
by
m1el
11y ago
Every time I see people using printf to generate structured data formats, a part of me dies inside. Here's how I would do it, using libgit2 and proper JSON output: https://gist.github.com/m1el/42472327b4be382b02eb
198.
▲
by
m1el
11y ago
I did a similar thing to a Mischief decompression algorithm. http://m1el.github.io/mischief/part-2.html
199.
▲
by
m1el
11y ago
Once you have partial evaluation, it's really easy. I've done this (and with jsfuck too!) http://m1el.github.io/jsdeobfuscate/
200.
▲
by
m1el
12y ago
Recent example of a coulomb explosion with sodium: https://www.youtube.com/watch?v=LmlAYnFF_s8
201.
▲
by
m1el
12y ago
Quoting this comment by atoponce from /r/netsec: http://www.reddit.com/r/netsec/comments/2xlruv/ubuntu_cloud_... : >"Starting with Ubuntu 14.04 LTS, Ubuntu cloud images include the Polli
202.
▲
by
m1el
12y ago
I see that they're using display:flex for layout, for all elements, which makes things like inline styles impossible or extremely inconvenient. http://jsfiddle.net/u8wd8kdL/5/ If I am wrong, please provide