Better HN
topnewbestaskshowjobs
Log inSign up

emadehsan

211 karma · joined Mar 18, 2016 (10y ago) · 87 submissions

Submissions

comment 3y ago · link · parent

Slingshot analogy animation: https://en.m.wikipedia.org/wiki/Chandrayaan-3#/media/File:An...

2.

Deaths by Horsekick in the Prussian Army – Poisson Distribution(associationofanaesthetists-publications.onlinelibrary.wiley.com ↗)

3 points · by emadehsan · 3y ago · discuss

comment 3y ago · link · parent

I'm part of the rest of the 4 billion. The ones you mentioned only take their own citizens (probably except UAE).

comment 3y ago · link · parent

Wish there were opportunities for non-European & non-American people to work in these inspiring and endeavoring organizations

5.

Thoughts on Flash – Steve Jobs [pdf](newslang.ch ↗)

3 points · by emadehsan · 3y ago · discuss

comment 3y ago · link · parent

> The farmers saved a percentage of the seeds and sowed them again the next spring. However, this is not a lucrative model for profit-oriented multinational companies, since the seed breeders only earn a profit during the first sale and not again every year.

Was the "inability of the produced seeds to be sowed again and turn into a crop" intentionally baked into the seeds sold by these companies, purely for profits?

Or was there a genuine biological / physical limiting factor? E.g. crop will be more susceptible to pests?

7.

The Maze(maze.emadehsan.com ↗)

1 points · by emadehsan · 3y ago · discuss

8.

Avoid Running Faster Only to Stay in the Same Place(fs.blog ↗)

1 points · by emadehsan · 4y ago · discuss

9.

Cutting Stock Problem 1D(github.com ↗)

1 points · by emadehsan · 4y ago · discuss

10.

Show HN: Create a Triangular Maze [video](youtube.com ↗)

2 points · by emadehsan · 4y ago · discuss

comment 4y ago · link · parent

Thank you for sharing, Tony!

comment 4y ago · link · parent

Found a VS Code extension that does what I need. Auto typing the code https://marketplace.visualstudio.com/items?itemName=eeecompu...

comment 4y ago · link · parent

I'm trying to avoid that if I could automate that typing process and just do voice over to explain the code.

comment 4y ago · link · parent

This is a good idea. Thank you for mentioning

15.

Ask HN: Tools for Code Typing Simulation?

2 points · by emadehsan · 4y ago · 7 comments

comment 4y ago · link · parent

On a side note, Observable is stupendous. Interactive Network Graphs, Charts, Maps, Animations. Not sure why we don't see it used enough.

Mike Bostock himself is constantly adding latest work https://observablehq.com/@mbostock. Great learning resource.

17.

Creating a Maze in Python with no dependencies [video](youtube.com ↗)

1 points · by emadehsan · 4y ago · discuss

comment 4y ago · link · parent

Most inputs were a combination from these:

"Painting/Digital Art/3D Render] of [Animals/Foxes/Monkeys] playing Chess in [Jungle/Dune/Desert]"

Some inputs were specific: "Capaybara vs Groundhog Chess match" or "Llama vs Panda/Red Panda in chess match"

I almost used all the credits OpenAI gave me for DALL-E. This set consists of about 50-60% of all the images I generated.

19.

DALL-E Chess in Jungle and Dunes(imgur.com ↗)

45 points · by emadehsan · 4y ago · 55 comments

comment 4y ago · link · parent

You are right. It is possible that branches (pipes) cut from one Spanning Tree might be re-arrangeable into a different Spanning Tree.

comment 4y ago · link · parent

My understanding is that since the game mentions:

"Rotate the tiles so that all pipes are connected with no loops."

These is exactly what a Spanning Tree is. So, any spanning tree generation algorithm would do. You just generate a random ST each time and cut this tree where the hexagon borders intersect with it (to get pipe pieces) and randomize their orientation.

These algorithms are not going to disappoint you in terms of performance.

I made tutorials on the topic as well. Might help me clear my point: https://youtu.be/d5yzKkG1n1U?t=36

Apologies for spamming. Sorry, if I'm suggesting premature optimization.

comment 4y ago · link · parent

I see. Amazing work you have done! This game is enticing.

comment 4y ago · link · parent

if the pipes are cut from a Spanning Tree connecting all the hexagons (like the one you witness once you have solved), then yes, for those give pipe pieces, there should be only one solution.

comment 4y ago · link · parent

Captivating! So, while generating the puzzle, you are essentially creating a random Spanning Tree for the given nodes (hexagon) arrangement? Then you randomize each pipe piece's direction within a hexagon?

What algorithm are you using for it Spanning Tree?

I have been working on Maze Generation[0] and found randomized Prim's, Kruskal's to be useful for Spanning Tree creation but the good old Depth First Search increases the difficulty of solving a Maze.

[0] https://github.com/emadehsan/maze/blob/main/media/hexagonal....

comment 4y ago · link · parent

Sports are not regarded as intellectually fulfilling but these channels would change your perspective on how much Technique and Game Planning is involved at the highest level:

The Modern Martial Artist: https://www.youtube.com/c/TheModernMartialArtist

Adam Ondra (Olympian Climber): https://www.youtube.com/c/AdamOndra

Wylie’s Art and Science of Boxing: https://www.youtube.com/c/LeeWylie1

Also, I see no one mentioning Real Engineering: https://www.youtube.com/c/RealEngineering

Would also like to highlight Terra Mater (animal extinction & habitat): https://www.youtube.com/c/TerraMaterOfficial

comment 4y ago · link · parent

Built using Python turtle & without any dependencies. Try it yourself: https://github.com/emadehsan/maze

27.

Creating a Circular Maze [video](youtube.com ↗)

3 points · by emadehsan · 4y ago · 1 comment

comment 4y ago · link · parent

web is so saturated, it is hard to turn off the internet if you want to put some distraction free hours of coding. There will be something you don't know

My guess is that OS programming (Linux etc) has not been affected that much form this overflow of redundent tools and you can stay productive offline?

comment 4y ago · link · parent

Very interesting. I'm curious that what software did you build or maintain? :)

30.

Ask HN: How far could you get Coding without Google?

14 points · by emadehsan · 4y ago · 43 comments

123