Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

7 Neutral

About FragmentedCurve

  • Rank

Profile Information

  • Location
    New York
  • Favorite Area of Science
    Mathematics & Physics

Recent Profile Visitors

909 profile views
  1. I get the feeling you'd be interested in the recent work of Stephen Wolfram and his crew if you haven't already been looking at it. He builds up geometry from just nodes and edges (graph theory) with the goal of deriving what we know about physics already. https://www.wolframphysics.org/technical-introduction/basic-form-of-models/ From what I understand, when he published his big book NKS approximately 20 years ago, he knew cellular automata (and graphs) was too limiting for his purposes because it imposed structure. In recent years, a colleague of his Jonathan Gorard put together th
  2. The top protocol might be useful to you. It's p2p and encrypted. It's intended as a instant messaging protocol but there's nothing stopping you from building an application on top of it instead. https://tox.chat/ Also, you might find it useful to play around with tox using the ratox client. https://ratox.2f30.org/
  3. Let's be a little more rigorous. It's not entirely accurate to say findComputerMove is not returning values. The problem is it's not returning a tuple and is instead returning the None type. Python is strongly typed. Let's go back and rewrite a previous code snippet: # Original code # a, b, c = self.findComputerMove(foo, bar, something) result = self.findComputerMove(foo, bar, something) a, b, c = result The first assignment is just a normal variable value assignment. At this moment, Python doesn't assert that the type returned by findComputerMove be a specific type. It will accept an
  4. In your OP, findComputerMove is defined as: def findComputerMove(self, row, column, pieceStr): print("Inside find Computer Move") I don't see 3 values being returned. I don't see anything being returned. When you write a line of code like the following: a, b, c = self.findComputerMove(foo, bar, something) the assumption is that findComputerMove returns a tuple of length 3. Is that clear?
  5. import numpy as np class Board: # ... def findComputerMove(self, row, column, pieceStr): print("Inside find Computer Move") def computerModule(self, pieceStr): n = 8 row = -1 column = -1 pName = "" row, column, pName = self.findComputerMove(row, column, pieceStr) # This is the problem return True def main(self): # ... if __name__ == "__main__": objBoard = Board(8) objBoard.main() In computerModule you're calling findComputerMove. What does findComputerMove return? (Your code has more problems
  6. If that's true, do we know why they'd prefer one species over another? And what would make them prefer one host over another within the same species?
  7. No. It was an impromptu hike into the woods behind my house -- a nature walk. We didn't have any kind of bug repellent. However, I don't know if he was wearing deodorant or cologne. The reason we did the experiment was because I've had so many anecdotal experiences like this with ticks, I wanted a real measurement. Especially with this particular friend. We'd walk the same path through tall grass or in the woods and I'd come out with ticks on me while he'd have none. On that day, I took the opportunity to have a somewhat controlled experiment, since I had the living tick. I should po
  8. I see where the miscommunication is -- how I got the tick. In this particular case, my friend saw it on my neck/shoulder area before it bit me. I just picked it up. The result could've been a coincidence. We only did 11 "trials". I thought it was enough to suggest that something is going on with how a tick finds a body.
  9. It wasn't latched. And no... I don't smoke anything... I'm not here for ethics (despite my avatar).
  10. Why would it be animal cruelty? Are you saying it's like dangling a treat in front of a dog but never giving it to him?
  11. While browsing around "Amateur Science" topics, I was reminded of an experiment I did a while ago. Whenever I'd go hiking with friends, especially one particular friend, I'd come out of the woods and he'd never have a single tick on him. I often wondered if ticks somehow choose a preferred host. So, one day after hiking, we took the tick that was on me and did a small experiment. We sat between two to three feet apart on a wood floor and placed the tick in the center of us. We would then wait to see who the tick would walk to. After he within a couple inches of our body, we would change
  12. fun_list3 = [lambda e: e + i for i in range(5)] The variable i is outside the scope of the lambda function. Let's rewrite the above to make this clearer. fun_list3 = [] for i in range(5): fun_list3.append(lambda e: e + i) This will produce the same list you wrote but is more explicit about what's going on. The variable i in your lambda function is referencing the i variable from the for loop. It's not doing what you think, which is inserting the value of i over each iteration. The i in your lambda function and the i in the for loop are pointing to the same place in memory. You ca
  13. As Strange pointed out, understanding the concepts of algorithms, data structures, and design patterns is far more important than learning a specific language. However, I'd like to append the following to that. I'm assuming you want to learn how to program because of some curiosity drive deep down and not purely for filling out a job application. Whatever kind of software has caught your passion at the moment, look at what the developers use to build it. For example, if you're daydreaming about building kernels and bootloaders, look at what languages and tools the developers of Linux, FreeBSD,
  14. I never did this so why not now. You can just call me by my username. Back in the day (before stack overflow), I was very active on technical forums; mostly about programming. I kinda miss engaging on lively forums.
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.