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

994 profile views
  1. This was actually very helpful. It lead me to some real world examples I can look at.
  2. I haven't seen this before. This looks interesting. Free is always good but I'm looking for either of them. I own a license for Mathematica; so add-ons for Mathematica (or sagemath) are welcomed. I was trying to cast a wide net. Anything that is applicable to the physics and molecular construction of materials is desirable. Also, software for simulating the mechanics of materials is good. For example, I had an idea about canceling out wave propagation across a series of rigid structures of different material. In this situation, I'd hook up some sensors to a r
  3. I'm an outsider to the physical sciences. My only real skill sets to date are math (of the pure kind) and CS. But I seem to have an undying desire to pursue goals and ideas in the physical sciences. (I say "physical sciences" because I don't want to limit myself to physics, chemistry, or material science.) Many of my goals sit at the intersection of research and invention. Nobody is going to give me a lab and I don't have the means to build my own. Because I lack the means, I started gravitating towards existing hackerspaces (and possibly starting my own). COVID has put using hackerspaces
  4. 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
  5. 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/
  6. 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
  7. 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?
  8. 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
  9. 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?
  10. 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
  11. 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.
  12. It wasn't latched. And no... I don't smoke anything... I'm not here for ethics (despite my avatar).
  13. 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?
  14. 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
  15. 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
  • 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.