News for hackers. Stuff that matters.

emadehsan

I'm part of the rest of the 4 billion. The ones you mentioned only take their own citizens (probably except UAE).
Wish there were opportunities for non-European & non-American people to work in these inspiring and endeavoring organizations
Re:“Open Source” Seeds Loosen Big Ag’s Grip on Farmers on Friday February 10, 2023 @11:26AM (#34741805)
> 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?

Re:Ask HN: Tools for Code Typing Simulation? on Sunday August 14, 2022 @06:44PM (#32463802)
Thank you for sharing, Tony!
Re:Ask HN: Tools for Code Typing Simulation? on Saturday August 13, 2022 @11:35AM (#32450836)
Found a VS Code extension that does what I need. Auto typing the code https://marketplace.visualstudio.com/items?itemName=eeecompu...
Re:Ask HN: Tools for Code Typing Simulation? on Saturday August 13, 2022 @11:20AM (#32450680)
I'm trying to avoid that if I could automate that typing process and just do voice over to explain the code.
Re:Ask HN: Tools for Code Typing Simulation? on Saturday August 13, 2022 @11:19AM (#32450676)
This is a good idea. Thank you for mentioning

Ask HN: Tools for Code Typing Simulation?

I'm looking for a tool that could mimic Code Typing but do it smoothly. I need it for recording tutorials but I don't want to record myself typing the code as that is not always smooth and is time consuming.Something like TypeIt[0] but with Code Highlighting.This is what I'm talking about: https://youtu.be/U4ogK0MIzqk?t=9[0] https://github.com/alexmacarthur/typeit

( Read More... | 7 comments | 2 points | on HN )
Re:SQLite-HTTP: A SQLite extension for making HTTP requests on Wednesday August 10, 2022 @04:40PM (#32418105)
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.

Re:DALL-E Chess in Jungle and Dunes on Saturday July 30, 2022 @11:05PM (#32292774)
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.

You are right. It is possible that branches (pipes) cut from one Spanning Tree might be re-arrangeable into a different Spanning Tree.
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.

I see. Amazing work you have done! This game is enticing.
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.
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....

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

Re:Creating a Circular Maze [video] on Saturday July 23, 2022 @04:38AM (#32201509)
Built using Python turtle & without any dependencies. Try it yourself: https://github.com/emadehsan/maze
Re:Ask HN: How far could you get Coding without Google? on Thursday July 21, 2022 @09:45AM (#32179321)
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?

Re:Ask HN: How far could you get Coding without Google? on Thursday July 21, 2022 @09:21AM (#32179009)
Very interesting. I'm curious that what software did you build or maintain? :)

Older »