Better HN
topnewbestaskshowjobs
Log inSign up

fogleman

3,899 karma · joined Apr 5, 2013 (13y ago) · 349 submissions

Submissions

comment 5y ago · link · parent

Can they load an STL?

comment 5y ago · link · parent

I absolutely prefer "boring" tech.

Thanks for the kind words.

comment 5y ago · link · parent

Let me know if you do anything cool with it!

I just got text working, which is very exciting. It was surprisingly easy, too.

1) Render text to a high resolution 1-bit array using PIL 2) Compute the distance transform using scipy 3) Do some index fiddling to map it into world space, and it's done!

Even works with unicode: https://twitter.com/FogleBird/status/1361523405821005824

comment 5y ago · link · parent

Yes, I'm well aware of libfive!

I'm not doing anything special for sharp geometry. For now you just need to use sufficient resolution until it looks "good enough." Normals are just based on the triangle normals.

comment 5y ago · link · parent

Hi HN.

Well, I wanted to make a 3D model and 3D print it, but I just didn't want to use OpenSCAD. So I ended up making a whole new 3D modeling library based on signed distance functions. I'm pretty happy with how it turned out so far, so I thought I would write a nice README and share it here.

It's certainly complete enough that you could try it out and make your own 3D models - let me know if you make anything interesting!

66.

Show HN: 3D Meshes of Signed Distance Functions in Python(github.com ↗)

157 points · by fogleman · 5y ago · 51 comments

comment 5y ago · link · parent

BigQuery has a sample table, natality, that has all recorded births in the US from 1969 to 2008. It includes apgar_1min and apgar_5min fields.

https://cloud.google.com/bigquery/public-data

(Fun fact: I was actually able to find myself in the table based on my birthday, my birth state, my parent's ages and their birth states.)

comment 5y ago · link · parent

Dijkstra's well-known argument for zero-indexing. (Hint: it's not about pointers in C)

https://www.cs.utexas.edu/users/EWD/transcriptions/EWD08xx/E...

comment 6y ago · link · parent

How will this get into the hands of those who could use it?

comment 6y ago · link · parent

Wow, even with definitions! That looks like a better version of a game I made years ago where you have to pick out the real word from four options. The three "non-words" are generated by Markov chains:

https://www.michaelfogleman.com/wug/

comment 6y ago · link · parent

The emissions test study is interesting to me because in college I had a shitty car that overheated during inspection. The inspector seemed to go out of his way to help (fiddling with the radiator) and the inspection passed.

comment 6y ago · link · parent

https://www.michaelfogleman.com/

Less of a blog and more of a software portfolio, but some of you might enjoy taking a look.

comment 6y ago · link · parent

You should explain what kinds of fractals these are (are they L-systems?) and how you go about crossing them.

comment 6y ago · link · parent

To be fair, the # of infected never died off completely (the simulation didn't run long enough)

comment 6y ago · link · parent

It also doesn't consider that many of the infected are asymptomatic, so they won't be "revealed" within the 11 day period.

comment 6y ago · link · parent

A little weird that you didn't mention Go, which seems to fall exactly in the category of "a simple, modern, well-designed C"

comment 7y ago · link · parent

It'd be nice to be able to "unlock" this heightened awareness after you've become dulled - any ideas how to do that?

78.

Show HN: Heightmap Meshing(github.com ↗)

4 points · by fogleman · 7y ago · discuss

comment 7y ago · link · parent

And Go put a lot of effort into the standard library by the looks of it.

comment 7y ago · link · parent

We are animals.

comment 7y ago · link · parent

Funnily enough, I'm getting a "Service Unavailable" right now (on the front page).

comment 7y ago · link · parent

Higher resolution images are coming, and some will have better shadows that will reveal more detail.

comment 7y ago · link · parent

Thank you!

comment 7y ago · link · parent

Haha, fair enough. There's certainly a balance to be made.

comment 7y ago · link · parent

In an alternate reality, I made the solutions more performant and you criticized them for being too verbose.

comment 7y ago · link · parent

OP here. I really enjoyed reading through Peter Norvig's AoC solutions a while back: https://github.com/norvig/pytudes/blob/master/ipynb/Advent%2...

I'm no Norvig, but I thought I'd try my hand at walking the reader through my own solutions this year. This is what I've come up with so far!

I'm currently 9th on the global leaderboard: https://adventofcode.com/2018/leaderboard

87.

Advent of Code Python Solutions, Explained(michaelfogleman.com ↗)

134 points · by fogleman · 7y ago · 17 comments

88.

Advent of Code 2018 Solutions(michaelfogleman.com ↗)

3 points · by fogleman · 7y ago · discuss

comment 8y ago · link · parent

Indeed. I mentioned that in the README: https://github.com/fogleman/primitive#inspiration
12345
12