HackerTrans
TopNewTrendsCommentsPastAskShowJobs

emadehsan

no profile record

Submissions

Deaths by Horsekick in the Prussian Army – Poisson Distribution

associationofanaesthetists-publications.onlinelibrary.wiley.com
3 points·by emadehsan·3 ปีที่แล้ว·0 comments

Thoughts on Flash – Steve Jobs [pdf]

newslang.ch
3 points·by emadehsan·3 ปีที่แล้ว·0 comments

The Maze

maze.emadehsan.com
1 points·by emadehsan·3 ปีที่แล้ว·0 comments

Avoid Running Faster Only to Stay in the Same Place

fs.blog
1 points·by emadehsan·4 ปีที่แล้ว·0 comments

Cutting Stock Problem 1D

github.com
1 points·by emadehsan·4 ปีที่แล้ว·0 comments

Show HN: Create a Triangular Maze [video]

youtube.com
2 points·by emadehsan·4 ปีที่แล้ว·0 comments

Ask HN: Tools for Code Typing Simulation?

2 points·by emadehsan·4 ปีที่แล้ว·7 comments

Creating a Maze in Python with no dependencies [video]

youtube.com
1 points·by emadehsan·4 ปีที่แล้ว·0 comments

DALL-E Chess in Jungle and Dunes

imgur.com
45 points·by emadehsan·4 ปีที่แล้ว·55 comments

Creating a Circular Maze [video]

youtube.com
3 points·by emadehsan·4 ปีที่แล้ว·1 comments

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

14 points·by emadehsan·4 ปีที่แล้ว·43 comments

Ask HN: What real innovation in CS can be attributed to Bitcoin?

3 points·by emadehsan·4 ปีที่แล้ว·5 comments

The Competitive Programming Debate

redgreencode.com
7 points·by emadehsan·4 ปีที่แล้ว·0 comments

comments

emadehsan
·3 ปีที่แล้ว·discuss
Slingshot analogy animation: https://en.m.wikipedia.org/wiki/Chandrayaan-3#/media/File:An...
emadehsan
·3 ปีที่แล้ว·discuss
I'm part of the rest of the 4 billion. The ones you mentioned only take their own citizens (probably except UAE).
emadehsan
·3 ปีที่แล้ว·discuss
Wish there were opportunities for non-European & non-American people to work in these inspiring and endeavoring organizations
emadehsan
·3 ปีที่แล้ว·discuss
> 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?
emadehsan
·4 ปีที่แล้ว·discuss
Thank you for sharing, Tony!
emadehsan
·4 ปีที่แล้ว·discuss
Found a VS Code extension that does what I need. Auto typing the code https://marketplace.visualstudio.com/items?itemName=eeecompu...
emadehsan
·4 ปีที่แล้ว·discuss
I'm trying to avoid that if I could automate that typing process and just do voice over to explain the code.
emadehsan
·4 ปีที่แล้ว·discuss
This is a good idea. Thank you for mentioning
emadehsan
·4 ปีที่แล้ว·discuss
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.
emadehsan
·4 ปีที่แล้ว·discuss
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.
emadehsan
·4 ปีที่แล้ว·discuss
You are right. It is possible that branches (pipes) cut from one Spanning Tree might be re-arrangeable into a different Spanning Tree.
emadehsan
·4 ปีที่แล้ว·discuss
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.
emadehsan
·4 ปีที่แล้ว·discuss
I see. Amazing work you have done! This game is enticing.
emadehsan
·4 ปีที่แล้ว·discuss
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.
emadehsan
·4 ปีที่แล้ว·discuss
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....
emadehsan
·4 ปีที่แล้ว·discuss
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
emadehsan
·4 ปีที่แล้ว·discuss
Built using Python turtle & without any dependencies. Try it yourself: https://github.com/emadehsan/maze
emadehsan
·4 ปีที่แล้ว·discuss
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?
emadehsan
·4 ปีที่แล้ว·discuss
Very interesting. I'm curious that what software did you build or maintain? :)
emadehsan
·4 ปีที่แล้ว·discuss
there's this video amazing of Terry demonstrating HolyC https://www.youtube.com/watch?v=BUrbyfzm6i0