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
@Furkanzmc thank you
2017-10-31T00:15:50.000123
Vena
pythondev_help_Vena_2017-10-31T00:15:50.000123
1,509,408,950.000123
98,703
pythondev
help
i'm currently sudying on team treehouse right know and i'm stuck on a question
2017-10-31T00:16:39.000033
Ricki
pythondev_help_Ricki_2017-10-31T00:16:39.000033
1,509,408,999.000033
98,704
pythondev
help
<@Ricki> idk if i will be able to, but its an open forum. just ask and if someone knows and can help they probably will
2017-10-31T00:16:51.000048
Bruno
pythondev_help_Bruno_2017-10-31T00:16:51.000048
1,509,409,011.000048
98,705
pythondev
help
any advice anyone?
2017-10-31T00:17:16.000003
Ricki
pythondev_help_Ricki_2017-10-31T00:17:16.000003
1,509,409,036.000003
98,706
pythondev
help
what is your problem
2017-10-31T00:17:42.000079
Bruno
pythondev_help_Bruno_2017-10-31T00:17:42.000079
1,509,409,062.000079
98,707
pythondev
help
its saying i made a mistake
2017-10-31T00:17:57.000011
Ricki
pythondev_help_Ricki_2017-10-31T00:17:57.000011
1,509,409,077.000011
98,708
pythondev
help
check where your quotes are
2017-10-31T00:18:27.000158
Bruno
pythondev_help_Bruno_2017-10-31T00:18:27.000158
1,509,409,107.000158
98,709
pythondev
help
`.format()` is a function that operates on a string
2017-10-31T00:18:49.000122
Bruno
pythondev_help_Bruno_2017-10-31T00:18:49.000122
1,509,409,129.000122
98,710
pythondev
help
it says that i don't have to print() anything to pass the quiz, so how do i use the .format() in my variable?
2017-10-31T00:20:17.000105
Ricki
pythondev_help_Ricki_2017-10-31T00:20:17.000105
1,509,409,217.000105
98,711
pythondev
help
i understand how to use it in print()
2017-10-31T00:21:19.000180
Ricki
pythondev_help_Ricki_2017-10-31T00:21:19.000180
1,509,409,279.00018
98,712
pythondev
help
when in a terminal like that, you dont need to use print as whatever the result is, it will output to the console.
2017-10-31T00:21:20.000062
Bruno
pythondev_help_Bruno_2017-10-31T00:21:20.000062
1,509,409,280.000062
98,713
pythondev
help
oh
2017-10-31T00:21:32.000029
Ricki
pythondev_help_Ricki_2017-10-31T00:21:32.000029
1,509,409,292.000029
98,714
pythondev
help
so, look at the format, on how you use string.format(), then compare to how you are using format. there is a syntax error in your code.
2017-10-31T00:21:53.000052
Bruno
pythondev_help_Bruno_2017-10-31T00:21:53.000052
1,509,409,313.000052
98,715
pythondev
help
one of the last few lines
2017-10-31T00:21:57.000077
Bruno
pythondev_help_Bruno_2017-10-31T00:21:57.000077
1,509,409,317.000077
98,716
pythondev
help
look at the last line and what is spit out. it means that the line before it is one whole string
2017-10-31T00:22:42.000109
Bruno
pythondev_help_Bruno_2017-10-31T00:22:42.000109
1,509,409,362.000109
98,717
pythondev
help
did you find it <@Ricki>?
2017-10-31T00:25:06.000007
Bruno
pythondev_help_Bruno_2017-10-31T00:25:06.000007
1,509,409,506.000007
98,718
pythondev
help
checking it out now <@Bruno>
2017-10-31T00:26:12.000043
Ricki
pythondev_help_Ricki_2017-10-31T00:26:12.000043
1,509,409,572.000043
98,719
pythondev
help
man.. i still don't get it <@Bruno> i sware i'm going to go bald :grimacing:
2017-10-31T00:35:25.000048
Ricki
pythondev_help_Ricki_2017-10-31T00:35:25.000048
1,509,410,125.000048
98,720
pythondev
help
lol its ok
2017-10-31T00:36:07.000015
Bruno
pythondev_help_Bruno_2017-10-31T00:36:07.000015
1,509,410,167.000015
98,721
pythondev
help
so the syntax of format is `"some string {name}".format(name)`
2017-10-31T00:36:40.000041
Bruno
pythondev_help_Bruno_2017-10-31T00:36:40.000041
1,509,410,200.000041
98,722
pythondev
help
check your quoting
2017-10-31T00:36:48.000062
Bruno
pythondev_help_Bruno_2017-10-31T00:36:48.000062
1,509,410,208.000062
98,723
pythondev
help
This is what i have 'code' subject="Treehouse loves{}".format(name)
2017-10-31T00:44:12.000007
Ricki
pythondev_help_Ricki_2017-10-31T00:44:12.000007
1,509,410,652.000007
98,724
pythondev
help
thats the line with the error
2017-10-31T00:44:55.000159
Bruno
pythondev_help_Bruno_2017-10-31T00:44:55.000159
1,509,410,695.000159
98,725
pythondev
help
in the image, its different
2017-10-31T00:45:05.000075
Bruno
pythondev_help_Bruno_2017-10-31T00:45:05.000075
1,509,410,705.000075
98,726
pythondev
help
yes
2017-10-31T00:45:09.000156
Ricki
pythondev_help_Ricki_2017-10-31T00:45:09.000156
1,509,410,709.000156
98,727
pythondev
help
you moved the last double quote
2017-10-31T00:45:13.000168
Bruno
pythondev_help_Bruno_2017-10-31T00:45:13.000168
1,509,410,713.000168
98,728
pythondev
help
i just updated it to what you typed
2017-10-31T00:45:24.000103
Ricki
pythondev_help_Ricki_2017-10-31T00:45:24.000103
1,509,410,724.000103
98,729
pythondev
help
that should work. `subject` should now spit out the proper text
2017-10-31T00:45:39.000104
Bruno
pythondev_help_Bruno_2017-10-31T00:45:39.000104
1,509,410,739.000104
98,730
pythondev
help
you had the last double quote at the end
2017-10-31T00:45:48.000112
Bruno
pythondev_help_Bruno_2017-10-31T00:45:48.000112
1,509,410,748.000112
98,731
pythondev
help
do you see what the error was? is it working for you now?
2017-10-31T00:46:59.000197
Bruno
pythondev_help_Bruno_2017-10-31T00:46:59.000197
1,509,410,819.000197
98,732
pythondev
help
i see, my errors was, but this thing still won't let me pass.. :face_with_rolling_eyes:
2017-10-31T00:49:28.000057
Ricki
pythondev_help_Ricki_2017-10-31T00:49:28.000057
1,509,410,968.000057
98,733
pythondev
help
might need a space between `loves` and `{}` ?
2017-10-31T00:50:46.000095
Bruno
pythondev_help_Bruno_2017-10-31T00:50:46.000095
1,509,411,046.000095
98,734
pythondev
help
nothing <@Bruno> but i'm going to sleep on it, thanks anyways! I really do appreciate it, i will dm you later :fist::skin-tone-4:
2017-10-31T00:57:22.000104
Ricki
pythondev_help_Ricki_2017-10-31T00:57:22.000104
1,509,411,442.000104
98,735
pythondev
help
np
2017-10-31T00:58:33.000161
Bruno
pythondev_help_Bruno_2017-10-31T00:58:33.000161
1,509,411,513.000161
98,736
pythondev
help
good luck
2017-10-31T00:58:36.000117
Bruno
pythondev_help_Bruno_2017-10-31T00:58:36.000117
1,509,411,516.000117
98,737
pythondev
help
what is the latest stable version of 3.4?
2017-10-31T01:02:05.000042
Winnifred
pythondev_help_Winnifred_2017-10-31T01:02:05.000042
1,509,411,725.000042
98,738
pythondev
help
locally pyenv tells me it is `3.4.6`
2017-10-31T01:02:49.000071
Bruno
pythondev_help_Bruno_2017-10-31T01:02:49.000071
1,509,411,769.000071
98,739
pythondev
help
<@Winnifred>
2017-10-31T01:02:54.000105
Bruno
pythondev_help_Bruno_2017-10-31T01:02:54.000105
1,509,411,774.000105
98,740
pythondev
help
Ah, thanks <@Bruno>!
2017-10-31T01:03:14.000149
Winnifred
pythondev_help_Winnifred_2017-10-31T01:03:14.000149
1,509,411,794.000149
98,741
pythondev
help
I need to learn that command. I r `pyenv` n00b.
2017-10-31T01:03:26.000019
Winnifred
pythondev_help_Winnifred_2017-10-31T01:03:26.000019
1,509,411,806.000019
98,742
pythondev
help
Si
2017-10-31T01:03:26.000134
Bruno
pythondev_help_Bruno_2017-10-31T01:03:26.000134
1,509,411,806.000134
98,743
pythondev
help
just check out the pyenv library
2017-10-31T01:03:41.000057
Bruno
pythondev_help_Bruno_2017-10-31T01:03:41.000057
1,509,411,821.000057
98,744
pythondev
help
i dont use it to manage my virtual envs. i just use it to install python versions.
2017-10-31T01:04:00.000143
Bruno
pythondev_help_Bruno_2017-10-31T01:04:00.000143
1,509,411,840.000143
98,745
pythondev
help
i use pipenv
2017-10-31T01:04:04.000070
Bruno
pythondev_help_Bruno_2017-10-31T01:04:04.000070
1,509,411,844.00007
98,746
pythondev
help
gotcha, what are your thoughts about installing virtualenv on each version and creating them that way?
2017-10-31T01:04:37.000029
Winnifred
pythondev_help_Winnifred_2017-10-31T01:04:37.000029
1,509,411,877.000029
98,747
pythondev
help
what do you mean?
2017-10-31T01:04:52.000157
Bruno
pythondev_help_Bruno_2017-10-31T01:04:52.000157
1,509,411,892.000157
98,748
pythondev
help
create a venv for each version of python?
2017-10-31T01:05:08.000083
Bruno
pythondev_help_Bruno_2017-10-31T01:05:08.000083
1,509,411,908.000083
98,749
pythondev
help
well, installing a venv manager on each version
2017-10-31T01:05:33.000058
Winnifred
pythondev_help_Winnifred_2017-10-31T01:05:33.000058
1,509,411,933.000058
98,750
pythondev
help
i just create them as I need them
2017-10-31T01:05:34.000163
Bruno
pythondev_help_Bruno_2017-10-31T01:05:34.000163
1,509,411,934.000163
98,751
pythondev
help
nah.
2017-10-31T01:05:39.000107
Bruno
pythondev_help_Bruno_2017-10-31T01:05:39.000107
1,509,411,939.000107
98,752
pythondev
help
if you install pyenv you can use that to manage installation of whole python versions. then i just use pipenv to manage my environemnts. which uses `pew` under the hood. so i use that to create the actual env.
2017-10-31T01:06:36.000081
Bruno
pythondev_help_Bruno_2017-10-31T01:06:36.000081
1,509,411,996.000081
98,753
pythondev
help
ah, okay
2017-10-31T01:07:08.000131
Winnifred
pythondev_help_Winnifred_2017-10-31T01:07:08.000131
1,509,412,028.000131
98,754
pythondev
help
so my workflow: ``` pipenv install 3.4.6 pew new --py ~/.pyenv/versions/3.4.6/bin/python my_env_name # this will auto activate the environment ``` then if i want to activate that env later i just do ```pew workon my_env_name``` and `exit` to leave the environment
2017-10-31T01:08:34.000143
Bruno
pythondev_help_Bruno_2017-10-31T01:08:34.000143
1,509,412,114.000143
98,755
pythondev
help
or, you can run a command from within that environment without activating it, just `cd` into the project with a `Pipfile` and you can run `pipenv run -- flask run` to run flask, for example
2017-10-31T01:10:13.000097
Bruno
pythondev_help_Bruno_2017-10-31T01:10:13.000097
1,509,412,213.000097
98,756
pythondev
help
but i find it easier to just activate the env
2017-10-31T01:10:30.000092
Bruno
pythondev_help_Bruno_2017-10-31T01:10:30.000092
1,509,412,230.000092
98,757
pythondev
help
Nice, I'll have to check out `pipenv`.
2017-10-31T01:14:17.000081
Winnifred
pythondev_help_Winnifred_2017-10-31T01:14:17.000081
1,509,412,457.000081
98,758
pythondev
help
Hey Everyone ! Quick (meta) questions for you guys. I wasn't sure what channel post them so here goes: I recently had my "aha" moment with regards to multithreading and I was wondering if it it's relevant to use such an approach in the context of web scraping (if you have a ton of sites to extract data from) or in the ...
2017-10-31T04:11:21.000306
Gwenda
pythondev_help_Gwenda_2017-10-31T04:11:21.000306
1,509,423,081.000306
98,759
pythondev
help
Also, if the main reason for multithreading is to speed things up then why do we use locks (don't they defeat the purpose if other threads have to wait for locks to be released before proceeding ?) Thanks in advance for your clarifications
2017-10-31T04:13:21.000188
Gwenda
pythondev_help_Gwenda_2017-10-31T04:13:21.000188
1,509,423,201.000188
98,760
pythondev
help
<@Gwenda> because threads can share the same memory. If two or more threads try to modify a list, for example, you can't predict the exact order of modifications. Thus you need a lock to make sure such mutable shared memory can be modified by a single thread at a time.
2017-10-31T04:15:02.000073
Collette
pythondev_help_Collette_2017-10-31T04:15:02.000073
1,509,423,302.000073
98,761
pythondev
help
If you don't share any memory, then you don't need any locks. But in that case you actually don't need threads - you need multiple processes
2017-10-31T04:15:34.000042
Collette
pythondev_help_Collette_2017-10-31T04:15:34.000042
1,509,423,334.000042
98,762
pythondev
help
ah very interesting point !
2017-10-31T04:16:32.000163
Gwenda
pythondev_help_Gwenda_2017-10-31T04:16:32.000163
1,509,423,392.000163
98,763
pythondev
help
so if memory access is not an issue then multiprocessing is more suited ?
2017-10-31T04:17:00.000127
Gwenda
pythondev_help_Gwenda_2017-10-31T04:17:00.000127
1,509,423,420.000127
98,764
pythondev
help
It really depends on your actual use-case, but in general - yes.
2017-10-31T04:17:25.000301
Collette
pythondev_help_Collette_2017-10-31T04:17:25.000301
1,509,423,445.000301
98,765
pythondev
help
The whole point of having multiple threads is to avoid expensive communication between isolated memories, by having a shared memory.
2017-10-31T04:18:07.000234
Collette
pythondev_help_Collette_2017-10-31T04:18:07.000234
1,509,423,487.000234
98,766
pythondev
help
ah I see now ! Makes sense
2017-10-31T04:19:02.000003
Gwenda
pythondev_help_Gwenda_2017-10-31T04:19:02.000003
1,509,423,542.000003
98,767
pythondev
help
thanks <@Collette>!
2017-10-31T04:19:11.000039
Gwenda
pythondev_help_Gwenda_2017-10-31T04:19:11.000039
1,509,423,551.000039
98,768
pythondev
help
I am looking to plot time series data for multiple data values together any leads to do so in python?
2017-10-31T04:44:49.000060
Mafalda
pythondev_help_Mafalda_2017-10-31T04:44:49.000060
1,509,425,089.00006
98,769
pythondev
help
Morning, Just wondered if any has any experience with a good method to cleanly terminate all threads with Ctrl C on a script using multiprocess pool map?
2017-10-31T06:05:16.000196
Jamar
pythondev_help_Jamar_2017-10-31T06:05:16.000196
1,509,429,916.000196
98,770
pythondev
help
isn't ctrl c the same as the kkill signal?
2017-10-31T06:06:45.000135
Vada
pythondev_help_Vada_2017-10-31T06:06:45.000135
1,509,430,005.000135
98,771
pythondev
help
If you have the thread ids you can just send a kill signal for each id
2017-10-31T06:06:59.000099
Vada
pythondev_help_Vada_2017-10-31T06:06:59.000099
1,509,430,019.000099
98,772
pythondev
help
via bash
2017-10-31T06:07:03.000252
Vada
pythondev_help_Vada_2017-10-31T06:07:03.000252
1,509,430,023.000252
98,773
pythondev
help
havent done a whole lot with Multiprocessing with python I have tried the normal try except with KeyboardInterrupt: but it just kills the current thread I assume
2017-10-31T06:09:02.000164
Jamar
pythondev_help_Jamar_2017-10-31T06:09:02.000164
1,509,430,142.000164
98,774
pythondev
help
as it just continues
2017-10-31T06:09:07.000043
Jamar
pythondev_help_Jamar_2017-10-31T06:09:07.000043
1,509,430,147.000043
98,775
pythondev
help
You have to find the root id, otherwise it will keep spawning more processes no?
2017-10-31T06:09:10.000242
Scot
pythondev_help_Scot_2017-10-31T06:09:10.000242
1,509,430,150.000242
98,776
pythondev
help
Yeah it just continues I've tried a few stackoverflow posts but cant find a good answer for it
2017-10-31T06:10:46.000342
Jamar
pythondev_help_Jamar_2017-10-31T06:10:46.000342
1,509,430,246.000342
98,777
pythondev
help
using the following code, how can i convert ```M = [i.split() for i in L] M = [[int(j) for j in i] for i in M]``` to js?: ```import time start = time.time() L = [] L.append("08 02 22 97 38 15 00 40 00 75 04 05 07 78 52 12 50 77 91 08") L.append("49 49 99 40 17 81 18 57 60 87 17 40 98 43 69 48 04 56 62 00") L.append...
2017-10-31T09:11:56.000184
Toby
pythondev_help_Toby_2017-10-31T09:11:56.000184
1,509,441,116.000184
98,778
pythondev
help
i currently have ```M = [i.split() for (i in values)]; M = [[Number(j) for (j in i)] for (i in M)];```
2017-10-31T09:13:01.000322
Toby
pythondev_help_Toby_2017-10-31T09:13:01.000322
1,509,441,181.000322
98,779
pythondev
help
<@Toby> convert to... js? You mean json?
2017-10-31T09:17:37.000161
Collette
pythondev_help_Collette_2017-10-31T09:17:37.000161
1,509,441,457.000161
98,780
pythondev
help
no, js, javascript
2017-10-31T09:17:44.000408
Toby
pythondev_help_Toby_2017-10-31T09:17:44.000408
1,509,441,464.000408
98,781
pythondev
help
You have a similar data structure and you want to re-implement the algorithm in javascript?
2017-10-31T09:18:20.000168
Collette
pythondev_help_Collette_2017-10-31T09:18:20.000168
1,509,441,500.000168
98,782
pythondev
help
yeah, ive got the rest of the code changed, i just cant figure out the 2 `M = ...` lines
2017-10-31T09:18:48.000030
Toby
pythondev_help_Toby_2017-10-31T09:18:48.000030
1,509,441,528.00003
98,783
pythondev
help
JS doesn't have the concept of list comprehensions as far as I know
2017-10-31T09:19:13.000220
Lory
pythondev_help_Lory_2017-10-31T09:19:13.000220
1,509,441,553.00022
98,784
pythondev
help
im just trying to follow this <http://code.jasonbhill.com/python/project-euler-problem-11/> but write it in js like i have the other problems
2017-10-31T09:20:07.000603
Toby
pythondev_help_Toby_2017-10-31T09:20:07.000603
1,509,441,607.000603
98,785
pythondev
help
ill have to skip it, thanks anyway
2017-10-31T09:21:24.000006
Toby
pythondev_help_Toby_2017-10-31T09:21:24.000006
1,509,441,684.000006
98,786
pythondev
help
js doesn’t have list comps, but does have `map` and others you can use here
2017-10-31T09:25:44.000348
Meg
pythondev_help_Meg_2017-10-31T09:25:44.000348
1,509,441,944.000348
98,787
pythondev
help
<@Toby> <https://repl.it/N5Na>
2017-10-31T09:26:43.000285
Collette
pythondev_help_Collette_2017-10-31T09:26:43.000285
1,509,442,003.000285
98,788
pythondev
help
how come i get `=&gt; undefined` logged at the end?
2017-10-31T09:27:19.000033
Toby
pythondev_help_Toby_2017-10-31T09:27:19.000033
1,509,442,039.000033
98,789
pythondev
help
I suppose that's what `console.log` returns
2017-10-31T09:28:19.000490
Collette
pythondev_help_Collette_2017-10-31T09:28:19.000490
1,509,442,099.00049
98,790
pythondev
help
i get 4 logs from 3 console.logs tho?
2017-10-31T09:28:37.000007
Toby
pythondev_help_Toby_2017-10-31T09:28:37.000007
1,509,442,117.000007
98,791
pythondev
help
What?
2017-10-31T09:28:45.000025
Collette
pythondev_help_Collette_2017-10-31T09:28:45.000025
1,509,442,125.000025
98,792
pythondev
help
```[ 1, 2, 3 ] [ 4, 5, 6 ] [ 7, 8, 9 ] =&gt; undefined``` ^ 4 logs ```console.log(parsed[0]) console.log(parsed[1]) console.log(parsed[2])``` ^ 3 console.logs
2017-10-31T09:29:10.000383
Toby
pythondev_help_Toby_2017-10-31T09:29:10.000383
1,509,442,150.000383
98,793
pythondev
help
`=&gt;` is simply for showing you what have been returned from the script
2017-10-31T09:29:37.000174
Collette
pythondev_help_Collette_2017-10-31T09:29:37.000174
1,509,442,177.000174
98,794
pythondev
help
It's not what `console.log` prints.
2017-10-31T09:29:49.000121
Collette
pythondev_help_Collette_2017-10-31T09:29:49.000121
1,509,442,189.000121
98,795
pythondev
help
ah ok, so just ignore it?
2017-10-31T09:29:56.000662
Toby
pythondev_help_Toby_2017-10-31T09:29:56.000662
1,509,442,196.000662
98,796
pythondev
help
Which tutorial you're using to learn javascript?
2017-10-31T09:30:10.000115
Collette
pythondev_help_Collette_2017-10-31T09:30:10.000115
1,509,442,210.000115
98,797
pythondev
help
im not, i already know javascript a fair bit
2017-10-31T09:30:24.000738
Toby
pythondev_help_Toby_2017-10-31T09:30:24.000738
1,509,442,224.000738
98,798
pythondev
help
ive just never used that editor before
2017-10-31T09:30:32.000532
Toby
pythondev_help_Toby_2017-10-31T09:30:32.000532
1,509,442,232.000532
98,799
pythondev
help
<@Lory> if you work with dates, it's probably good idea to convert strings to `datetime` objects, and manipulate them instead of strings
2017-10-31T10:11:33.000427
Collette
pythondev_help_Collette_2017-10-31T10:11:33.000427
1,509,444,693.000427
98,800
pythondev
help
very much :point_up:
2017-10-31T10:12:24.000197
Ciera
pythondev_help_Ciera_2017-10-31T10:12:24.000197
1,509,444,744.000197
98,801
pythondev
help
I initially had taken that route but the data I am pulling dates out of comes form a few different sources as strings. I figured the date time approach would work in a more predictable environment rather than here where I am conditionally modifying specific pieces and at times reusing the same data for new results. It ...
2017-10-31T10:15:02.000534
Lory
pythondev_help_Lory_2017-10-31T10:15:02.000534
1,509,444,902.000534
98,802