workspace
stringclasses 1
value | channel
stringclasses 1
value | sentences
stringlengths 1
3.93k
| ts
stringlengths 26
26
| user
stringlengths 2
11
| sentence_id
stringlengths 44
53
| timestamp
float64 1.5B
1.56B
| __index_level_0__
int64 0
106k
|
---|---|---|---|---|---|---|---|
pythondev | help | l = [3, 1, 4, 1, 5, 9] | 2017-07-15T09:45:29.240147 | Madaline | pythondev_help_Madaline_2017-07-15T09:45:29.240147 | 1,500,111,929.240147 | 85,403 |
pythondev | help | Large numbers will have a LOT of permutations. So it's probably best to load them lazily rather than making a set | 2017-07-15T09:46:39.245700 | Signe | pythondev_help_Signe_2017-07-15T09:46:39.245700 | 1,500,111,999.2457 | 85,404 |
pythondev | help | it could be a memory error.. they don't specially say.. | 2017-07-15T09:47:04.247654 | Madaline | pythondev_help_Madaline_2017-07-15T09:47:04.247654 | 1,500,112,024.247654 | 85,405 |
pythondev | help | It could also be an issue with string sorting vs number sorting :) | 2017-07-15T09:47:39.250526 | Signe | pythondev_help_Signe_2017-07-15T09:47:39.250526 | 1,500,112,059.250526 | 85,406 |
pythondev | help | when I created one big set for all permutations that's when i got the memory error. but this code runs it just fails test 4 and I get no error | 2017-07-15T09:47:40.250601 | Madaline | pythondev_help_Madaline_2017-07-15T09:47:40.250601 | 1,500,112,060.250601 | 85,407 |
pythondev | help | You might want to try converting every sting into an int before sorting | 2017-07-15T09:47:58.252127 | Signe | pythondev_help_Signe_2017-07-15T09:47:58.252127 | 1,500,112,078.252127 | 85,408 |
pythondev | help | That makes sense. | 2017-07-15T09:48:20.253789 | Madaline | pythondev_help_Madaline_2017-07-15T09:48:20.253789 | 1,500,112,100.253789 | 85,409 |
pythondev | help | data_set = map(int, data_set)
should take of that? | 2017-07-15T09:49:16.258199 | Madaline | pythondev_help_Madaline_2017-07-15T09:49:16.258199 | 1,500,112,156.258199 | 85,410 |
pythondev | help | Ya, i think so | 2017-07-15T09:50:06.262028 | Signe | pythondev_help_Signe_2017-07-15T09:50:06.262028 | 1,500,112,206.262028 | 85,411 |
pythondev | help | thanks i really appreciate you talking me through the problem. | 2017-07-15T09:51:34.268625 | Madaline | pythondev_help_Madaline_2017-07-15T09:51:34.268625 | 1,500,112,294.268625 | 85,412 |
pythondev | help | I'm a product manger.. it's been a loooooong time since I had to worry about code challenges. :smile: | 2017-07-15T09:52:03.270718 | Madaline | pythondev_help_Madaline_2017-07-15T09:52:03.270718 | 1,500,112,323.270718 | 85,413 |
pythondev | help | I prefer to be explicit in the code but I don't want to look like a Jr. Do you think there is a better approach? | 2017-07-15T09:53:20.276704 | Madaline | pythondev_help_Madaline_2017-07-15T09:53:20.276704 | 1,500,112,400.276704 | 85,414 |
pythondev | help | for one it doesn't look like your code handles the condition: `If it is not possible to make such a number, return 0 as the answer` | 2017-07-15T12:35:54.127549 | Minerva | pythondev_help_Minerva_2017-07-15T12:35:54.127549 | 1,500,122,154.127549 | 85,415 |
pythondev | help | This code also timed out.. | 2017-07-15T12:36:22.129942 | Madaline | pythondev_help_Madaline_2017-07-15T12:36:22.129942 | 1,500,122,182.129942 | 85,416 |
pythondev | help | two, i like nhumrich's idea to lazily evaluate, which you could do with generators | 2017-07-15T12:36:27.130316 | Minerva | pythondev_help_Minerva_2017-07-15T12:36:27.130316 | 1,500,122,187.130316 | 85,417 |
pythondev | help | Correction.. I'm trying it with iterator on the permutation and that timed out | 2017-07-15T12:37:01.133316 | Madaline | pythondev_help_Madaline_2017-07-15T12:37:01.133316 | 1,500,122,221.133316 | 85,418 |
pythondev | help | I think building the list and then sorting it is the problem. | 2017-07-15T12:38:04.138792 | Madaline | pythondev_help_Madaline_2017-07-15T12:38:04.138792 | 1,500,122,284.138792 | 85,419 |
pythondev | help | returning 0 is something I missed. I'll try that too | 2017-07-15T12:41:41.157715 | Madaline | pythondev_help_Madaline_2017-07-15T12:41:41.157715 | 1,500,122,501.157715 | 85,420 |
pythondev | help | <@Madaline> why are you using set in line 10? | 2017-07-15T12:43:35.167762 | Cleta | pythondev_help_Cleta_2017-07-15T12:43:35.167762 | 1,500,122,615.167762 | 85,421 |
pythondev | help | what about something like (note: you'd have to re-write to get it to work with a list of numbers as input)
```
from itertools import permutations
def permutation_gen(x):
for r in sorted([i for i in range(len(str(x)) + 1)], reverse=True):
for p in permutations([i for i in sorted([i for i in str(x)], reverse=True)], r=r):
s = sum([int(i) for i in p])
if s % 3 == 0:
yield(int(''.join(p)))
def get_largest_3_modulo(x):
try:
y = next(permutation_gen(x))
except StopIteration:
y = 0
return y
get_largest_3_modulo(954311)
``` | 2017-07-15T12:44:03.170166 | Minerva | pythondev_help_Minerva_2017-07-15T12:44:03.170166 | 1,500,122,643.170166 | 85,422 |
pythondev | help | I had started with a similar approach but their verification tool was not reporting errors properly. | 2017-07-15T12:47:16.187951 | Madaline | pythondev_help_Madaline_2017-07-15T12:47:16.187951 | 1,500,122,836.187951 | 85,423 |
pythondev | help | <@Madaline> sorry, didnt see the new one. | 2017-07-15T12:48:18.193357 | Cleta | pythondev_help_Cleta_2017-07-15T12:48:18.193357 | 1,500,122,898.193357 | 85,424 |
pythondev | help | code that ran perfectly in my Jupyter was failing.. So split it up and simplified it . | 2017-07-15T12:48:31.194499 | Madaline | pythondev_help_Madaline_2017-07-15T12:48:31.194499 | 1,500,122,911.194499 | 85,425 |
pythondev | help | This approach looks much better then what I was doing. | 2017-07-15T12:49:41.200815 | Madaline | pythondev_help_Madaline_2017-07-15T12:49:41.200815 | 1,500,122,981.200815 | 85,426 |
pythondev | help | This is what I originally tried but I hit memory errors. | 2017-07-15T12:51:27.210624 | Madaline | pythondev_help_Madaline_2017-07-15T12:51:27.210624 | 1,500,123,087.210624 | 85,427 |
pythondev | help | In case anyone is interested in triggering the Google code challenge. I've been spending a lot of time searching for Python, crawlers, NLP, analytics, algorithms, etc... This is the second time it came up for me in the last 2 months.. I was on vacation last time it came up so time ran out. | 2017-07-15T12:54:44.227820 | Madaline | pythondev_help_Madaline_2017-07-15T12:54:44.227820 | 1,500,123,284.22782 | 85,428 |
pythondev | help | <@Cleta> I have a quick question about your example. One line 6 there is SUM of the permutation and then you are checking if it is divisible by 3. Then on line 8 your yield is the joined integer. Is this a faster way or an error? | 2017-07-15T13:11:55.320151 | Madaline | pythondev_help_Madaline_2017-07-15T13:11:55.320151 | 1,500,124,315.320151 | 85,429 |
pythondev | help | any number that is divisible by three has the sum of its digits = to a small multiple of 3, 6, 9, ...
So 33333, if added together equal 15, which in turn equals 6 | 2017-07-15T13:33:24.430596 | Deedee | pythondev_help_Deedee_2017-07-15T13:33:24.430596 | 1,500,125,604.430596 | 85,430 |
pythondev | help | so I would add all elements of list and see if that sum is % 3 | 2017-07-15T13:33:37.431702 | Deedee | pythondev_help_Deedee_2017-07-15T13:33:37.431702 | 1,500,125,617.431702 | 85,431 |
pythondev | help | ^this | 2017-07-15T13:33:50.432628 | Minerva | pythondev_help_Minerva_2017-07-15T13:33:50.432628 | 1,500,125,630.432628 | 85,432 |
pythondev | help | Not sure if that fits | 2017-07-15T13:34:58.438219 | Deedee | pythondev_help_Deedee_2017-07-15T13:34:58.438219 | 1,500,125,698.438219 | 85,433 |
pythondev | help | Thank you.. Its funny. I never really have to deal with this type of problem. | 2017-07-15T13:35:53.442650 | Madaline | pythondev_help_Madaline_2017-07-15T13:35:53.442650 | 1,500,125,753.44265 | 85,434 |
pythondev | help | not sure if it is faster than modulo-ing the int, that's just what came to mind | 2017-07-15T13:35:56.442888 | Minerva | pythondev_help_Minerva_2017-07-15T13:35:56.442888 | 1,500,125,756.442888 | 85,435 |
pythondev | help | I can time it and see if it helps performance | 2017-07-15T13:36:22.445037 | Madaline | pythondev_help_Madaline_2017-07-15T13:36:22.445037 | 1,500,125,782.445037 | 85,436 |
pythondev | help | <@Madaline>, just doing a modulo a la `if int(''.join(p)) % 3 == 0:` is a little faster, i'm guessing because the other way adds a list comprehension step. good catch | 2017-07-15T13:44:54.487976 | Minerva | pythondev_help_Minerva_2017-07-15T13:44:54.487976 | 1,500,126,294.487976 | 85,437 |
pythondev | help | Thank you both.. <@Minerva> <@Deedee>.. I think this should unblock me.. | 2017-07-15T13:47:18.500203 | Madaline | pythondev_help_Madaline_2017-07-15T13:47:18.500203 | 1,500,126,438.500203 | 85,438 |
pythondev | help | Thanks again! Hopefully I can get through the rest and get an interview. :smile: | 2017-07-15T14:26:11.699225 | Madaline | pythondev_help_Madaline_2017-07-15T14:26:11.699225 | 1,500,128,771.699225 | 85,439 |
pythondev | help | yup | 2017-07-15T15:06:55.910265 | Cleta | pythondev_help_Cleta_2017-07-15T15:06:55.910265 | 1,500,131,215.910265 | 85,440 |
pythondev | help | <@Shelly> | 2017-07-15T15:13:17.942215 | Kandis | pythondev_help_Kandis_2017-07-15T15:13:17.942215 | 1,500,131,597.942215 | 85,441 |
pythondev | help | whats the function of the last line of this code | 2017-07-15T15:13:42.944121 | Kandis | pythondev_help_Kandis_2017-07-15T15:13:42.944121 | 1,500,131,622.944121 | 85,442 |
pythondev | help | i see the difference with and without it in the output is this: | 2017-07-15T15:14:02.945810 | Kandis | pythondev_help_Kandis_2017-07-15T15:14:02.945810 | 1,500,131,642.94581 | 85,443 |
pythondev | help | Out[1]: [‘English’, ‘Math’, ‘Science’] | 2017-07-15T15:14:14.946914 | Kandis | pythondev_help_Kandis_2017-07-15T15:14:14.946914 | 1,500,131,654.946914 | 85,444 |
pythondev | help | What is Out[1]: | 2017-07-15T15:14:27.948067 | Kandis | pythondev_help_Kandis_2017-07-15T15:14:27.948067 | 1,500,131,667.948067 | 85,445 |
pythondev | help | ? | 2017-07-15T15:14:33.948519 | Kandis | pythondev_help_Kandis_2017-07-15T15:14:33.948519 | 1,500,131,673.948519 | 85,446 |
pythondev | help | yea, I am happy that something out of my school math class helped. :stuck_out_tongue: | 2017-07-15T15:15:24.952684 | Cleta | pythondev_help_Cleta_2017-07-15T15:15:24.952684 | 1,500,131,724.952684 | 85,447 |
pythondev | help | <@Kandis> It sorts the dictionary based on the keys | 2017-07-15T15:16:46.959659 | Shelly | pythondev_help_Shelly_2017-07-15T15:16:46.959659 | 1,500,131,806.959659 | 85,448 |
pythondev | help | what is Out[1]? | 2017-07-15T15:17:15.962077 | Kandis | pythondev_help_Kandis_2017-07-15T15:17:15.962077 | 1,500,131,835.962077 | 85,449 |
pythondev | help | <@Kandis> it sorts the keys Alphabetically | 2017-07-15T15:17:15.962102 | Cleta | pythondev_help_Cleta_2017-07-15T15:17:15.962102 | 1,500,131,835.962102 | 85,450 |
pythondev | help | May be you are using some interactive python shell like Jupyter | 2017-07-15T15:17:40.963902 | Shelly | pythondev_help_Shelly_2017-07-15T15:17:40.963902 | 1,500,131,860.963902 | 85,451 |
pythondev | help | so the list() gets it printed automatically? | 2017-07-15T15:17:41.964050 | Kandis | pythondev_help_Kandis_2017-07-15T15:17:41.964050 | 1,500,131,861.96405 | 85,452 |
pythondev | help | <@Kandis> What tool are you using to write/run the code anyway? | 2017-07-15T15:18:14.966799 | Shelly | pythondev_help_Shelly_2017-07-15T15:18:14.966799 | 1,500,131,894.966799 | 85,453 |
pythondev | help | i see. so the sorted() does not really have any effect on this dictionary | 2017-07-15T15:19:21.972170 | Kandis | pythondev_help_Kandis_2017-07-15T15:19:21.972170 | 1,500,131,961.97217 | 85,454 |
pythondev | help | <@Shelly> <@Cleta> :taco: | 2017-07-15T15:19:43.973910 | Kandis | pythondev_help_Kandis_2017-07-15T15:19:43.973910 | 1,500,131,983.97391 | 85,455 |
pythondev | help | `Sorted` sorts the dictionary based on the keys in increasing order since you are passing the list of keys here, here it is in alphabetical order. | 2017-07-15T15:20:39.978259 | Shelly | pythondev_help_Shelly_2017-07-15T15:20:39.978259 | 1,500,132,039.978259 | 85,456 |
pythondev | help | yup i got it :slightly_smiling_face:! | 2017-07-15T15:21:19.981024 | Kandis | pythondev_help_Kandis_2017-07-15T15:21:19.981024 | 1,500,132,079.981024 | 85,457 |
pythondev | help | Cool :thumbsup: | 2017-07-15T15:21:30.981921 | Shelly | pythondev_help_Shelly_2017-07-15T15:21:30.981921 | 1,500,132,090.981921 | 85,458 |
pythondev | help | good luck. when google hires you, don't forget us little guys :stuck_out_tongue_winking_eye: | 2017-07-15T15:26:32.005873 | Minerva | pythondev_help_Minerva_2017-07-15T15:26:32.005873 | 1,500,132,392.005873 | 85,459 |
pythondev | help | <@Kandis> to elaborate more on <@Shelly> ‘s answer, the function `marks.keys()` returns a list of keys in the dictionary and `sorted()` returns the sorted list. Although why is there a conversion to list when it will return a list anyways? | 2017-07-15T15:30:10.023343 | Cleta | pythondev_help_Cleta_2017-07-15T15:30:10.023343 | 1,500,132,610.023343 | 85,460 |
pythondev | help | <@Cleta> mmm good point.. | 2017-07-15T15:31:06.028345 | Kandis | pythondev_help_Kandis_2017-07-15T15:31:06.028345 | 1,500,132,666.028345 | 85,461 |
pythondev | help | idk either | 2017-07-15T15:31:10.028673 | Kandis | pythondev_help_Kandis_2017-07-15T15:31:10.028673 | 1,500,132,670.028673 | 85,462 |
pythondev | help | Good luck, | 2017-07-15T15:32:40.036217 | Cleta | pythondev_help_Cleta_2017-07-15T15:32:40.036217 | 1,500,132,760.036217 | 85,463 |
pythondev | help | interesting to note is that it doesn’t effect your dictionary in any manner, it will return a list of sorted elements anyways. even if you pass a string to `sorted()` function but if you use the `list.sort()` function , it changes the list. | 2017-07-15T15:39:40.068972 | Cleta | pythondev_help_Cleta_2017-07-15T15:39:40.068972 | 1,500,133,180.068972 | 85,464 |
pythondev | help | From <https://docs.python.org/3/library/functools.html>:
```
from functools import partial
basetwo = partial(int, base=2)
basetwo.__doc__ = 'Convert base 2 string to an int.'
help(basetwo)
Help on partial object:
class partial(builtins.object)
....
basetwo.__doc__
'Convert base 2 string to an int.'
``` | 2017-07-15T17:05:03.453483 | Meghan | pythondev_help_Meghan_2017-07-15T17:05:03.453483 | 1,500,138,303.453483 | 85,465 |
pythondev | help | The example given would seem to imply the doc string would be read for help, however, help returns the doc string for partial. | 2017-07-15T17:05:34.455666 | Meghan | pythondev_help_Meghan_2017-07-15T17:05:34.455666 | 1,500,138,334.455666 | 85,466 |
pythondev | help | <@Minerva> <@Cleta>, we'll see.. I still have a lot of code challenges to get through. Either way, I'm learning how to be better with Python.. I really appreciate the help. :slightly_smiling_face: | 2017-07-15T17:07:06.462010 | Madaline | pythondev_help_Madaline_2017-07-15T17:07:06.462010 | 1,500,138,426.46201 | 85,467 |
pythondev | help | Hi, Can someone please help me with installing ipython on mac? | 2017-07-15T22:22:12.597338 | Donnetta | pythondev_help_Donnetta_2017-07-15T22:22:12.597338 | 1,500,157,332.597338 | 85,468 |
pythondev | help | <@Donnetta> sure. install anaconda which will have everything and won't mess with your system's python. <https://www.continuum.io/downloads#macos> | 2017-07-15T23:04:37.729095 | Delphine | pythondev_help_Delphine_2017-07-15T23:04:37.729095 | 1,500,159,877.729095 | 85,469 |
pythondev | help | It has ipython and so many other libs which you will use eventually. | 2017-07-15T23:05:05.730633 | Delphine | pythondev_help_Delphine_2017-07-15T23:05:05.730633 | 1,500,159,905.730633 | 85,470 |
pythondev | help | ipython or jupyter notebook makes a list of inputs (In) and outputs (Out) so you can reference previous inputs and outputs by doing stuff like: print(Out[1]) #returns [‘English’, ‘Math’, ‘Science’] | 2017-07-15T23:08:35.740430 | Delphine | pythondev_help_Delphine_2017-07-15T23:08:35.740430 | 1,500,160,115.74043 | 85,471 |
pythondev | help | If you have long lines or large code blocks it can save some scrolling/typing. | 2017-07-15T23:10:10.744990 | Delphine | pythondev_help_Delphine_2017-07-15T23:10:10.744990 | 1,500,160,210.74499 | 85,472 |
pythondev | help | ok thank you | 2017-07-15T23:39:53.830752 | Donnetta | pythondev_help_Donnetta_2017-07-15T23:39:53.830752 | 1,500,161,993.830752 | 85,473 |
pythondev | help | So, I have an import error that I've been trying to solve for the past three days and still haven't been able to figure out. I'm building a REST API and I've put my source into its own module titled `broadway`. I'm implementing an app factory pattern. In `__main__.py` I have `from broadway import create_app, models, util`, and `create_app` is defined in `__init__.py`.
These are the entire contents of `__init__.py`:
```from flask import Flask
from . import config
from .external import init_app
# App factory function
def create_app(config_data):
app = Flask('broadway')
app.config.from_object(config.DevelopmentConfig)
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
external.init_app(app)
return app```
When running my application locally with `python -m broadway` the application returns the following error: `from broadway import create_app, models, util - ModuleNotFoundError: No module named 'broadway'` (edited)
Strangely commenting out `app.config.from_object(config.DevelopmentConfig)` in `__init__.py` fixes the error. This is not a real solution of course since then my app is missing vital configuration info. Also, in this example the parameter (`config.DevelopmentConfig`) is hard-coded as originally `config_data` was passed to it but I changed it to make sure the data being passed wasn't the actual issue.
I just don't get how the line in `__init__.py` relates to the import error at all.
Also, I put a bunch of `print()`s throughout my code to see what was going on. They _all_ printed, even the ones after the actual `create_app` function runs in `__main__.py`.
It was suggested that this was a problem with the Flask development server. After running my app with the Flask CLI it launched without errors. Then the problem was that all the endpoints of my API returned 404s, even though there were no errors in the actual Python reported (Flask's debug mode was on). | 2017-07-16T04:53:02.701373 | Thomasina | pythondev_help_Thomasina_2017-07-16T04:53:02.701373 | 1,500,180,782.701373 | 85,474 |
pythondev | help | <@Stephani> What s the files/folder structure of your project? | 2017-07-16T05:31:44.823138 | Alvin | pythondev_help_Alvin_2017-07-16T05:31:44.823138 | 1,500,183,104.823138 | 85,475 |
pythondev | help | <@Thomasina> you better put up a github link | 2017-07-16T06:21:05.975976 | Meg | pythondev_help_Meg_2017-07-16T06:21:05.975976 | 1,500,186,065.975976 | 85,476 |
pythondev | help | for your project | 2017-07-16T06:21:14.976494 | Meg | pythondev_help_Meg_2017-07-16T06:21:14.976494 | 1,500,186,074.976494 | 85,477 |
pythondev | help | you've been posting about this for what, three days now? | 2017-07-16T06:21:28.977151 | Meg | pythondev_help_Meg_2017-07-16T06:21:28.977151 | 1,500,186,088.977151 | 85,478 |
pythondev | help | <@Meg> Yep, had another dev take a look too but no luck. If I remove all the irrelevant/proprietary stuff I can fit it all in a snippet though. | 2017-07-16T07:04:04.112007 | Thomasina | pythondev_help_Thomasina_2017-07-16T07:04:04.112007 | 1,500,188,644.112007 | 85,479 |
pythondev | help | Hello guys, I was wondering if its possible to use several class to write to the same figure in `matplotlib`?
Say for example I have the following classes
```Client calls Boat.draw
Boat.draw calls Sailors.draw``` | 2017-07-16T09:28:41.635504 | Christin | pythondev_help_Christin_2017-07-16T09:28:41.635504 | 1,500,197,321.635504 | 85,480 |
pythondev | help | Hi Guys,
I am trying to achieve a functionality where I can open a `new command prompt` and run some batch commands. Then redirecting the output to a `logfile` and `console` on real time. So I am using `wtee.exe` (ex command: `dir 2>&1 | wtee.exe logFile.txt`).
Choosing `popen` over `os.system` because I need control over the new process (new command prompt)
As I wont be able to use pipe symbol in Popen. I did the below functionality
```newConsole = Popen(
['cmd','/V:ON /K dir 2>&1'],
creationflags=CREATE_NEW_CONSOLE,stdout=PIPE,stderr=STDOUT
)
outputLog = Popen(
[wtee.exe,'logFile.txt'],
stdin=newConsole.stdout,
)```
I can see the log file is generated and also the output in command prompt (on main window and not in new console).
So please help to find out the way how can I print the output in new console opened using subprocess. | 2017-07-16T10:14:44.825991 | Samira | pythondev_help_Samira_2017-07-16T10:14:44.825991 | 1,500,200,084.825991 | 85,481 |
pythondev | help | Hello
| 2017-07-16T10:17:41.838623 | Vonnie | pythondev_help_Vonnie_2017-07-16T10:17:41.838623 | 1,500,200,261.838623 | 85,482 |
pythondev | help | <@Samira> <https://stackoverflow.com/questions/15899798/subprocess-popen-in-different-console> | 2017-07-16T10:19:30.845850 | Meg | pythondev_help_Meg_2017-07-16T10:19:30.845850 | 1,500,200,370.84585 | 85,483 |
pythondev | help | in short, you need `shell=True` in your `Popen` call | 2017-07-16T10:20:26.850194 | Meg | pythondev_help_Meg_2017-07-16T10:20:26.850194 | 1,500,200,426.850194 | 85,484 |
pythondev | help | I was hoping I could get some help with a script to parse some json files | 2017-07-16T10:23:05.861493 | Vonnie | pythondev_help_Vonnie_2017-07-16T10:23:05.861493 | 1,500,200,585.861493 | 85,485 |
pythondev | help | And save the output. Need to iterate it | 2017-07-16T10:23:21.862573 | Vonnie | pythondev_help_Vonnie_2017-07-16T10:23:21.862573 | 1,500,200,601.862573 | 85,486 |
pythondev | help | you should post the part where you are stuck and I'm sure someone will help you :slightly_smiling_face: | 2017-07-16T10:25:22.871535 | Ciera | pythondev_help_Ciera_2017-07-16T10:25:22.871535 | 1,500,200,722.871535 | 85,487 |
pythondev | help | Hi Jason, Thanks and from the link you have mentioned, it says i can use subprocess without `shell=true` by sending the command in list. Opening new console is fine for me and the problem is I cant output the stdout in that new console. Becasue I have to redirect the output to a file and console both on real time. | 2017-07-16T10:28:13.883598 | Samira | pythondev_help_Samira_2017-07-16T10:28:13.883598 | 1,500,200,893.883598 | 85,488 |
pythondev | help | :) | 2017-07-16T10:43:29.948450 | Vonnie | pythondev_help_Vonnie_2017-07-16T10:43:29.948450 | 1,500,201,809.94845 | 85,489 |
pythondev | help | Can i post my question on stack overflow? | 2017-07-16T10:43:44.949463 | Vonnie | pythondev_help_Vonnie_2017-07-16T10:43:44.949463 | 1,500,201,824.949463 | 85,490 |
pythondev | help | I mean the link to the question | 2017-07-16T10:48:19.969353 | Vonnie | pythondev_help_Vonnie_2017-07-16T10:48:19.969353 | 1,500,202,099.969353 | 85,491 |
pythondev | help | <https://stackoverflow.com/questions/45087325/set-up-a-crawler-and-downloaded-tweets-unable-to-parse-json-file?noredirect=1#comment77166732_45087325> | 2017-07-16T10:51:00.980660 | Vonnie | pythondev_help_Vonnie_2017-07-16T10:51:00.980660 | 1,500,202,260.98066 | 85,492 |
pythondev | help | <@Vonnie> Do you have an example JSON file you're having trouble with? | 2017-07-16T11:31:11.161129 | Ruben | pythondev_help_Ruben_2017-07-16T11:31:11.161129 | 1,500,204,671.161129 | 85,493 |
pythondev | help | Yes I do. It's a twitter json file | 2017-07-16T11:31:51.163979 | Vonnie | pythondev_help_Vonnie_2017-07-16T11:31:51.163979 | 1,500,204,711.163979 | 85,494 |
pythondev | help | Usually JSON files can be loaded with json.loads(f) and then used as a standard Python data structure (nested arrays and dicts etc) | 2017-07-16T11:31:53.164111 | Ruben | pythondev_help_Ruben_2017-07-16T11:31:53.164111 | 1,500,204,713.164111 | 85,495 |
pythondev | help | <@Vonnie> Well, attach it then? | 2017-07-16T11:32:21.166223 | Ruben | pythondev_help_Ruben_2017-07-16T11:32:21.166223 | 1,500,204,741.166223 | 85,496 |
pythondev | help | Let me turn on my laptop. One minute | 2017-07-16T11:33:05.169838 | Vonnie | pythondev_help_Vonnie_2017-07-16T11:33:05.169838 | 1,500,204,785.169838 | 85,497 |
pythondev | help | <@Vonnie> Sure, no hurry. | 2017-07-16T11:33:13.170515 | Ruben | pythondev_help_Ruben_2017-07-16T11:33:13.170515 | 1,500,204,793.170515 | 85,498 |
pythondev | help | Thanks, I'll try to read it. | 2017-07-16T11:38:33.194825 | Ruben | pythondev_help_Ruben_2017-07-16T11:38:33.194825 | 1,500,205,113.194825 | 85,499 |
pythondev | help | When I tried to parse it using other scripts, it would give me (ValueError: Extra data: line 2 column 1 - line 1201 column 1 (char 13339 - 8801096) | 2017-07-16T11:39:29.198941 | Vonnie | pythondev_help_Vonnie_2017-07-16T11:39:29.198941 | 1,500,205,169.198941 | 85,500 |
pythondev | help | For starters, thats *not* a valid JSON file. | 2017-07-16T11:39:56.200699 | Ruben | pythondev_help_Ruben_2017-07-16T11:39:56.200699 | 1,500,205,196.200699 | 85,501 |
pythondev | help | It's more like a text file where every line seems to contain a JSON representation of an object. | 2017-07-16T11:40:42.204156 | Ruben | pythondev_help_Ruben_2017-07-16T11:40:42.204156 | 1,500,205,242.204156 | 85,502 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.