Jump to content

Popcorn Sutton

Senior Members
  • Posts

    989
  • Joined

  • Last visited

Everything posted by Popcorn Sutton

  1. Lol! Here, I think it may have been johncuthber, we discovered that, mathematically, 0^n always equals 1. It may just be a fluke in math, but there is evidence to support it. It's like space is boiling.
  2. When it works on my PC there is a bit of an encoding issue but I don't think that that is the problem. I've tried using different quotes as well but at this point I'm thinking that it's an os issue which is unfortunate
  3. Yay! I'm going to bring this thread back. Once again, I'm having a Lawrence Krauss day (hey buddy ). My voice has been heard. In this video, he brings up space and traveling faster than the speed of light. Once again I am choking on irony. at approximately 1 hour and 40 seconds in, he says that travelling faster than the speed of light is allowed. "[because of expansion, eventually all the galaxies will be traveling away from us faster than the speed of light (it's allowed). What we've been teaching is that nothing can travel faster than the speed of light (and you have to parse this correctly). What we mean is that nothing can travel through space faster than the speed of light, but space can do whatever the hell it wants.]" Mind. Blown.
  4. >>> r = api.request('search/tweets', {'q':'pizza'}) >>> for item in r.get_iterator(): print (item['text'] if 'text' in item else item) IF YOU FOLLOW ME I'LL BRING YOU PIZZA OK #AlfieWantsFood 18 Awkward missing the guy delivering pizza to the flat because we were having a planking competition @butch_1983 yeah Pizza Hut RT @Michael5SOS: "excuse me can I have a photo?" lol @Harry_Styles http://t.co/ljfU7uH7lU RT @stephshuley_22: Boys aren't worth crying over honestly hey just eat some pizza and you'll be good @PointlessBlog You followed dominos pizza lol #AlfieWantsFood pizza pizza pizza RT @bucaloubaby: Pizza is in the shape of the food pyramid so can I just eat it all the time? @dkf__ come over and let's go to pizza King Me comi una pizza, mexicana, hawaiana y de peperoni, estaba mas buena RT @Alyssamcdonald5: Craving pizza 24/7 @ilooklloyd pizza Someone give me a pizza @PointlessBlog #AlfieWantsFood @Dominos_UK could you slip a pizza to alfie? @PointlessBlogTv preferably tuna&sweetcorn stuffed crust :Dxxx “@ChloeDeCuyper01: Ik wil dat ge nu bij mij zijt en dat we samen pizza eten terwijl we een film zien ” @LiseLecocq RT @feloquence: En pizza skulle sitta fint The search works, but streaming from our location returns the error. I am absolutely stumped on this one. It works just fine on my own PC but not on the server.
  5. The server is windows, and thanks for pointing out the firewall issue, that may actually be the solution. I'll check into it >>> import json >>> print json.dumps('\\') "\\" >>> json.loads('\\') Traceback (most recent call last): File "<pyshell#2>", line 1, in <module> json.loads('\\') File "C:\Python27\lib\json\__init__.py", line 338, in loads return _default_decoder.decode(s) File "C:\Python27\lib\json\decoder.py", line 365, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "C:\Python27\lib\json\decoder.py", line 383, in raw_decode raise ValueError("No JSON object could be decoded") ValueError: No JSON object could be decoded >>> json.loads('"\\"foo\\bar"') u'"foo\x08ar' The firewall is not the solution, at least not on my end.
  6. I don't understand why this is happening. On my own PC, my program works flawlessly. It's using the TwitterAPI to find data specifically useful for my industry. Like I said, it works fine on my own PC, but I'm trying to set it up on the server right now and I keep getting this message- Traceback (most recent call last): File "<pyshell#2>", line 1, in <module> Tweeter() File "C:\Python27\lib\site-packages\Tweeter.py", line 16, in Tweeter for item in s.get_iterator(): File "C:\Python27\lib\site-packages\TwitterAPI\TwitterAPI.py", line 198, in __iter__ yield json.loads(item.decode('utf-8')) File "C:\Python27\lib\json\__init__.py", line 338, in loads return _default_decoder.decode(s) File "C:\Python27\lib\json\decoder.py", line 365, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "C:\Python27\lib\json\decoder.py", line 383, in raw_decode raise ValueError("No JSON object could be decoded") ValueError: No JSON object could be decoded I've tried looking into it already, and I've probably spent 2 hours now trying to fix the issue, but I'm running out of resources because the ones I am seeing aren't coherent to me.
  7. I don't think that I was mad until I turned 23. I wasn't always speculating, and, up to the age of 23, I took the questions and answers of science with a grain of salt. Science has been my favorite thing to discuss since I was about 13. There weren't many peers of mine that were willing to discuss, let alone able to comprehend, the discoveries of the scientists before our time. I have never been happier than when I was 17 and asked what I consider to be the ultimate question. The single biggest question of my life (and the lives of many others). For me, that question was "what does it take to make a computer able to learn any language?" At the age of 17, I came up with the answer. The answer was pattern recognition. Once I had the answer, I set it aside for another 6 years before I began to openly discuss it. I chose Linguistics as my major because there was nothing more fascinating to me than Science and Language, but to combine the two into the field of Linguistics, I was sold. So, at the age of 23 I lost every single one of my closest friends because they had either went away to college or got into drugs and alcohol. I have to admit that I had my encounters with that scene, and, ultimately, I realized that I didn't want to see the people that were also involved in that type of activity, I'd much rather keep my distance. But, as I said, I lost literally all of my friends and I was scared as hell of being alone. The strange thing that I came to realize is that I've never been happier than when I was alone. I was outcasted, aand there wasn't a single person that I wanted to hang out with. At that time, there was only one person who wanted to hang out with me, but he was NO WHERE NEAR smart enough to satisfy my desire to contemplate the big questions. So, as I said, I began to discuss my ideas with others over fora like this one, and, sure enough, there was opposition. The strange thing was that the opposition had (seemingly overnight) concluded that I was right. I was right about pattern recognition, and there was literally no plausible refutation to that very basic premise. Since there was an opposition, which was really just a resistance to adopt a new paradigm, I got mad. I got mad as hell at all of my ex friends, and I guarantee you that I could not separate my madness from any other situation where I had to be social. There was not a single person who was satisfied with who I was. Luckily, by this time, I've grown out of that madness and entered the world of work, getting paid for something that I love doing. While I'm still pretty poor, and I'm occasionally mad, I can look back at my time alone and safely say that I would willingly have a period like that again because there was nothing more satisfying IMO. Madness, yes. We're very mad (but not all the time) lol.
  8. Fathers be good to your daughters

    1. physica

      physica

      ...... i'd say people be good to people

  9. Ya I was just reading a locked thread about the guy who keeps combusting spontaneously. He had pride about a documentary that he did and I think he was using it as leverage to keep him around. It didn't work. I was thinking of solutions to the problem, but I haven't come up with anything yet. It's stuff like that where I think that I may come up with a solution out of the box but that one is a little tricky. I wonder what causes it and I used to read books about it back while I was in elementary school. It's a very strange type of occurrence.
  10. I don't care who all you guys are, I'm going to be here for a little while. #if it's ok with the mods/admin
  11. I was thinking about how cool it would be to have a single music station that reflects your input, but then I was wondering if it already exists- Pandora shuffle If it doesn't exist, then computational linguistics could help make it happen. I may get into code if I end up thinking about this often.
  12. Also, in order to get streaming data from the 'firehose', TwitterAPI is your best bet. in the command line type this- pip install TwitterAPI This API is by far the easiest and most useful. If you monitor your target location, you will get the stream of data. This is not entirely explanatory on how to use the API, but it's sufficient to get you started.
  13. Tonight is one of those nights where I feel like if someone killed me they would be doing me a favor. Don't kill me tho

  14. You can remove this post if you like. I asked how to get the coordinates of a particular location, what I found was to search the coordinates, and since I had an example of New York City's coordinates, I went off that template. https://www.google.com/search?q=new+york+citys+coordinates&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a&channel=sb Here you will see that it's approximately 40,74. In the twitter API, you put {'locations':'-74,40,-73,41'} and as you can see, the coordinates are reverse.
  15. This is probably one of the few jobs where I can look at porn and schedule meetings with hookers during work lolll

    1. Show previous comments  1 more
    2. arc

      arc

      He must be Bill Clinton's personal assistant! :)

    3. Sato

      Sato

      +1 arc lemme rep a random post of yours

    4. Popcorn Sutton

      Popcorn Sutton

      Fugitive recovery

  16. I figured it out by using exceptions and preventing the computer from restarting.
  17. That's a good question because the only way I know how to do it computationally is through statistics. But if we're talking about the brain then I assume, I could be wrong though, that it's done mechanically, not numerically. Classical physics mostly, but quantum physics as well. The brain is an analogue processor, but the mind can be simulated with statistics.
  18. I did check those out but me and my boss both came to the conclusion that I shouldn't spend any more time researching it because the documentation is not thorough enough to point me in the right direction.
  19. Observation in itself explains every system in he universe, but that's too simple of an answer. The reason I say that is because if you can pinpoint every single precise location of every aspect of this universe and sequentialize it observationally, then there's no need for math. By precise location, I mean, computationally, pixels.
  20. I need to set up a MySQL database and I'm not finding much help on the internet. At this point, I do not have any information that is worth stealing (IMO). I've spent over an hour and a half on this already and I need to get it done ASAP because I don't want to waste too much of my time on this project. I have a few questions. First, can I set it up solely through Python 2.7? Second, can I automatically retrieve lists from the server without having to convert them (if not, I don't think it will be much of an issue to convert the data to python objects)? Once again, thank you guys for your help.
  21. You're talking about quantum computing right? Or are you talking about the brain?
  22. It's extremely complicated. I feel like this task was wayyyy underestimated I pulled it off. I'm not quite done making it pretty yet, but I pulled it off. If anyone else is looking for help, here is the code and here is where I got the answer. import twitter from twitter import * from HTMLParser import HTMLParser class MLStripper(HTMLParser): def __init__(self): self.reset() self.fed = [] def handle_data(self, d): self.fed.append(d) def get_data(self): return ''.join(self.fed) def strip_tags(html): s = MLStripper() s.feed(html) return s.get_data() t = Twitter( auth = OAuth(OAUTH_TOKEN, OAUTH_SECRET, CONSUMER_KEY, CONSUMER_SECRET) ) makealist = t.search.tweets(q="#put your search hashtag here") makeitastring = str(makealist) strip_tags(makeitastring) makingalist = makeitastring.split(',')
  23. I'm trying to get access to Twitter feed about bail bond information. We want to get all the info we possibly can by scraping the "firehose" as they call it. My boss told me that this should be a pretty simple project and take a day to work out at most. I've already spent 3 and a half hours working on it, so I'm wondering if anyone else knows anything about this that may help me finish this project. Thanks in advance
  24. I hate to get back to this subject because I've already completed a working program, but I need to know if there's any way I can make it more efficient. Right now, the code is epic. It does what we need it to do, but it takes approximately 6 hours to run through the entire thing. What I'm wondering is if there is a way that we can just access the data directly as opposed to using the actual website and AI to do the scraping.
×
×
  • 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.