HackerTrans
トップ新着トレンドコメント過去質問紹介求人

emadehsan

no profile record

投稿

Deaths by Horsekick in the Prussian Army – Poisson Distribution

associationofanaesthetists-publications.onlinelibrary.wiley.com
3 ポイント·投稿者 emadehsan·3 年前·0 コメント

Thoughts on Flash – Steve Jobs [pdf]

newslang.ch
3 ポイント·投稿者 emadehsan·3 年前·0 コメント

The Maze

maze.emadehsan.com
1 ポイント·投稿者 emadehsan·3 年前·0 コメント

Avoid Running Faster Only to Stay in the Same Place

fs.blog
1 ポイント·投稿者 emadehsan·4 年前·0 コメント

Cutting Stock Problem 1D

github.com
1 ポイント·投稿者 emadehsan·4 年前·0 コメント

Show HN: Create a Triangular Maze [video]

youtube.com
2 ポイント·投稿者 emadehsan·4 年前·0 コメント

Ask HN: Tools for Code Typing Simulation?

2 ポイント·投稿者 emadehsan·4 年前·7 コメント

Creating a Maze in Python with no dependencies [video]

youtube.com
1 ポイント·投稿者 emadehsan·4 年前·0 コメント

DALL-E Chess in Jungle and Dunes

imgur.com
45 ポイント·投稿者 emadehsan·4 年前·55 コメント

Creating a Circular Maze [video]

youtube.com
3 ポイント·投稿者 emadehsan·4 年前·1 コメント

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

14 ポイント·投稿者 emadehsan·4 年前·43 コメント

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

3 ポイント·投稿者 emadehsan·4 年前·5 コメント

The Competitive Programming Debate

redgreencode.com
7 ポイント·投稿者 emadehsan·4 年前·0 コメント

コメント

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