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
Have you tried it by just setting some default values here..
2017-12-19T19:08:43.000078
Corrinne
pythondev_help_Corrinne_2017-12-19T19:08:43.000078
1,513,710,523.000078
105,003
pythondev
help
yeah at the top
2017-12-19T19:08:53.000380
Fabian
pythondev_help_Fabian_2017-12-19T19:08:53.000380
1,513,710,533.00038
105,004
pythondev
help
```major_columns = int(input("Number of Pages: ")) major_columns_w = int(input("Width between cell to cell on the next page: ")) major_rows = int(input("Number of blocks per page: ")) major_rows_h = int(input("height between cell to cell on the next block: ")) columns = int(input("Number of columns inside a block: ")) ...
2017-12-19T19:08:53.000390
Corrinne
pythondev_help_Corrinne_2017-12-19T19:08:53.000390
1,513,710,533.00039
105,005
pythondev
help
ah that was the old code
2017-12-19T19:09:05.000262
Fabian
pythondev_help_Fabian_2017-12-19T19:09:05.000262
1,513,710,545.000262
105,006
pythondev
help
at the bottom is the newer code, before I was taking user input, its quicker to read a file
2017-12-19T19:09:21.000219
Fabian
pythondev_help_Fabian_2017-12-19T19:09:21.000219
1,513,710,561.000219
105,007
pythondev
help
ok, besides taking any user input or reading in from a file, have you tried it with fixed values?
2017-12-19T19:09:54.000069
Corrinne
pythondev_help_Corrinne_2017-12-19T19:09:54.000069
1,513,710,594.000069
105,008
pythondev
help
yeah once i tried setting all of them to none first at the top
2017-12-19T19:10:51.000250
Fabian
pythondev_help_Fabian_2017-12-19T19:10:51.000250
1,513,710,651.00025
105,009
pythondev
help
Ok and I'm guessing that didnt work
2017-12-19T19:11:04.000135
Corrinne
pythondev_help_Corrinne_2017-12-19T19:11:04.000135
1,513,710,664.000135
105,010
pythondev
help
nope
2017-12-19T19:11:39.000062
Fabian
pythondev_help_Fabian_2017-12-19T19:11:39.000062
1,513,710,699.000062
105,011
pythondev
help
would i still use the while loop after?
2017-12-19T19:14:02.000097
Fabian
pythondev_help_Fabian_2017-12-19T19:14:02.000097
1,513,710,842.000097
105,012
pythondev
help
still getting the same issue it seems when i try this
2017-12-19T19:18:26.000199
Fabian
pythondev_help_Fabian_2017-12-19T19:18:26.000199
1,513,711,106.000199
105,013
pythondev
help
```lines = [] with open("instr.txt") as f: for line in f: lines.append(f) while lines: start_pos = start_x, start_y = [int(x) for x in lines[0].split(",")] counter_size = w, h = [int(x) for x in lines[1].split(",")] major_columns = int(lines[2]) major_columns_w = int(lines[3]) major_rows = int(...
2017-12-19T19:18:32.000039
Fabian
pythondev_help_Fabian_2017-12-19T19:18:32.000039
1,513,711,112.000039
105,014
pythondev
help
you're never going to run out of `lines`
2017-12-19T19:19:29.000057
Frieda
pythondev_help_Frieda_2017-12-19T19:19:29.000057
1,513,711,169.000057
105,015
pythondev
help
ah whoops
2017-12-19T19:19:38.000199
Fabian
pythondev_help_Fabian_2017-12-19T19:19:38.000199
1,513,711,178.000199
105,016
pythondev
help
so `while lines:` will run forever
2017-12-19T19:19:43.000114
Frieda
pythondev_help_Frieda_2017-12-19T19:19:43.000114
1,513,711,183.000114
105,017
pythondev
help
``` with open("instr.txt") as f: lines = f.readlines() [set vars here] ```
2017-12-19T19:20:23.000206
Frieda
pythondev_help_Frieda_2017-12-19T19:20:23.000206
1,513,711,223.000206
105,018
pythondev
help
Kenneth to the rescue :parrot_fast:
2017-12-19T19:20:25.000188
Corrinne
pythondev_help_Corrinne_2017-12-19T19:20:25.000188
1,513,711,225.000188
105,019
pythondev
help
ahhh
2017-12-19T19:20:58.000158
Fabian
pythondev_help_Fabian_2017-12-19T19:20:58.000158
1,513,711,258.000158
105,020
pythondev
help
thank you :slightly_smiling_face:
2017-12-19T19:20:58.000160
Fabian
pythondev_help_Fabian_2017-12-19T19:20:58.000160
1,513,711,258.00016
105,021
pythondev
help
agh
2017-12-19T19:22:17.000114
Fabian
pythondev_help_Fabian_2017-12-19T19:22:17.000114
1,513,711,337.000114
105,022
pythondev
help
```C:\Users\lerug\Desktop\Python\counter-cutter>py counter-cutter-beta05.py testcounters.png Traceback (most recent call last): File "counter-cutter-beta05.py", line 30, in <module> start_pos = start_x, start_y = [int(x) for x in lines[0].split(",")] AttributeError: '_io.TextIOWrapper' object has no attr...
2017-12-19T19:22:17.000116
Fabian
pythondev_help_Fabian_2017-12-19T19:22:17.000116
1,513,711,337.000116
105,023
pythondev
help
kind of confused as to what that means
2017-12-19T19:22:24.000094
Fabian
pythondev_help_Fabian_2017-12-19T19:22:24.000094
1,513,711,344.000094
105,024
pythondev
help
It means you're trying to split something that can't be split
2017-12-19T19:23:12.000218
Corrinne
pythondev_help_Corrinne_2017-12-19T19:23:12.000218
1,513,711,392.000218
105,025
pythondev
help
which effectively means you're splitting something that isn't a string
2017-12-19T19:23:26.000223
Frieda
pythondev_help_Frieda_2017-12-19T19:23:26.000223
1,513,711,406.000223
105,026
pythondev
help
ah that means i dont need the split anymore!
2017-12-19T19:23:37.000083
Fabian
pythondev_help_Fabian_2017-12-19T19:23:37.000083
1,513,711,417.000083
105,027
pythondev
help
interesting
2017-12-19T19:23:40.000193
Fabian
pythondev_help_Fabian_2017-12-19T19:23:40.000193
1,513,711,420.000193
105,028
pythondev
help
this is where pdb and logging come in handy
2017-12-19T19:23:57.000200
Frieda
pythondev_help_Frieda_2017-12-19T19:23:57.000200
1,513,711,437.0002
105,029
pythondev
help
pdb?
2017-12-19T19:24:09.000247
Fabian
pythondev_help_Fabian_2017-12-19T19:24:09.000247
1,513,711,449.000247
105,030
pythondev
help
agh
2017-12-19T19:24:47.000040
Fabian
pythondev_help_Fabian_2017-12-19T19:24:47.000040
1,513,711,487.00004
105,031
pythondev
help
I think, looking at the data you're reading in, they were splitting a line with 2 numbers on it
2017-12-19T19:24:49.000341
Corrinne
pythondev_help_Corrinne_2017-12-19T19:24:49.000341
1,513,711,489.000341
105,032
pythondev
help
the python debugger
2017-12-19T19:24:55.000024
Frieda
pythondev_help_Frieda_2017-12-19T19:24:55.000024
1,513,711,495.000024
105,033
pythondev
help
hold for link
2017-12-19T19:24:55.000026
Frieda
pythondev_help_Frieda_2017-12-19T19:24:55.000026
1,513,711,495.000026
105,034
pythondev
help
<https://docs.python.org/3/library/pdb.html>
2017-12-19T19:24:55.000028
Frieda
pythondev_help_Frieda_2017-12-19T19:24:55.000028
1,513,711,495.000028
105,035
pythondev
help
seems the file is closing before it could finish
2017-12-19T19:25:02.000293
Fabian
pythondev_help_Fabian_2017-12-19T19:25:02.000293
1,513,711,502.000293
105,036
pythondev
help
the file state _shouldn't_ matter
2017-12-19T19:25:33.000166
Frieda
pythondev_help_Frieda_2017-12-19T19:25:33.000166
1,513,711,533.000166
105,037
pythondev
help
ValueError: I/O operation on closed file.
2017-12-19T19:25:57.000110
Fabian
pythondev_help_Fabian_2017-12-19T19:25:57.000110
1,513,711,557.00011
105,038
pythondev
help
if it really seems to, declares `lines = []` before the `with`
2017-12-19T19:26:27.000335
Frieda
pythondev_help_Frieda_2017-12-19T19:26:27.000335
1,513,711,587.000335
105,039
pythondev
help
i believe it is right now
2017-12-19T19:26:49.000071
Fabian
pythondev_help_Fabian_2017-12-19T19:26:49.000071
1,513,711,609.000071
105,040
pythondev
help
```lines = [] with open("instr.txt") as f: for line in f: lines.append(f)```
2017-12-19T19:27:09.000041
Fabian
pythondev_help_Fabian_2017-12-19T19:27:09.000041
1,513,711,629.000041
105,041
pythondev
help
just a confusing error
2017-12-19T19:28:23.000165
Fabian
pythondev_help_Fabian_2017-12-19T19:28:23.000165
1,513,711,703.000165
105,042
pythondev
help
this just ran w/ no errors for me. python 3.6
2017-12-19T19:29:30.000006
Frieda
pythondev_help_Frieda_2017-12-19T19:29:30.000006
1,513,711,770.000006
105,043
pythondev
help
and checking `locals()` shows them all set to reasonable values
2017-12-19T19:30:08.000345
Frieda
pythondev_help_Frieda_2017-12-19T19:30:08.000345
1,513,711,808.000345
105,044
pythondev
help
oh so i should still be calling split then
2017-12-19T19:30:14.000018
Fabian
pythondev_help_Fabian_2017-12-19T19:30:14.000018
1,513,711,814.000018
105,045
pythondev
help
¯\_(ツ)_/¯
2017-12-19T19:31:21.000378
Frieda
pythondev_help_Frieda_2017-12-19T19:31:21.000378
1,513,711,881.000378
105,046
pythondev
help
just saying there's no exception raised by _that_ block
2017-12-19T19:31:31.000269
Frieda
pythondev_help_Frieda_2017-12-19T19:31:31.000269
1,513,711,891.000269
105,047
pythondev
help
fucking a it worked!
2017-12-19T19:32:41.000129
Fabian
pythondev_help_Fabian_2017-12-19T19:32:41.000129
1,513,711,961.000129
105,048
pythondev
help
Thank you so much <@Frieda> you saved me, i really appreciate it
2017-12-19T19:32:59.000004
Fabian
pythondev_help_Fabian_2017-12-19T19:32:59.000004
1,513,711,979.000004
105,049
pythondev
help
:sparkling_heart: of course
2017-12-19T19:33:14.000121
Frieda
pythondev_help_Frieda_2017-12-19T19:33:14.000121
1,513,711,994.000121
105,050
pythondev
help
that's what i'm here for
2017-12-19T19:33:22.000117
Frieda
pythondev_help_Frieda_2017-12-19T19:33:22.000117
1,513,712,002.000117
105,051
pythondev
help
<@Frieda> :taco:
2017-12-19T19:36:47.000020
Corrinne
pythondev_help_Corrinne_2017-12-19T19:36:47.000020
1,513,712,207.00002
105,052
pythondev
help
i need to get back to some form of teaching
2017-12-19T19:39:39.000215
Frieda
pythondev_help_Frieda_2017-12-19T19:39:39.000215
1,513,712,379.000215
105,053
pythondev
help
i can feel myself getting rusty
2017-12-19T19:39:44.000257
Frieda
pythondev_help_Frieda_2017-12-19T19:39:44.000257
1,513,712,384.000257
105,054
pythondev
help
You we're just teaching me object-oriented Python an hour ago :laughing:
2017-12-19T19:43:23.000093
Corrinne
pythondev_help_Corrinne_2017-12-19T19:43:23.000093
1,513,712,603.000093
105,055
pythondev
help
Really enjoying the Treehouse courses dude
2017-12-19T19:44:40.000123
Corrinne
pythondev_help_Corrinne_2017-12-19T19:44:40.000123
1,513,712,680.000123
105,056
pythondev
help
lol we'll see how well they age
2017-12-19T19:46:27.000021
Frieda
pythondev_help_Frieda_2017-12-19T19:46:27.000021
1,513,712,787.000021
105,057
pythondev
help
i left treehouse about 3 months ago
2017-12-19T19:47:42.000156
Frieda
pythondev_help_Frieda_2017-12-19T19:47:42.000156
1,513,712,862.000156
105,058
pythondev
help
That's a shame.. For Treehouse. Although I really like some of their other teachers too
2017-12-19T19:48:37.000174
Corrinne
pythondev_help_Corrinne_2017-12-19T19:48:37.000174
1,513,712,917.000174
105,059
pythondev
help
Tried a few different learning platforms but found Treehouse really good
2017-12-19T19:49:17.000154
Corrinne
pythondev_help_Corrinne_2017-12-19T19:49:17.000154
1,513,712,957.000154
105,060
pythondev
help
What are you up to now?
2017-12-19T19:49:22.000176
Corrinne
pythondev_help_Corrinne_2017-12-19T19:49:22.000176
1,513,712,962.000176
105,061
pythondev
help
Software Engineer at O'Reilly Media
2017-12-19T19:49:46.000069
Frieda
pythondev_help_Frieda_2017-12-19T19:49:46.000069
1,513,712,986.000069
105,062
pythondev
help
How can I connect to a web server if `requests` gets a 503, `telnetlib` gets "actively refused" but within powershell I can `curl` and `telnet`
2017-12-19T19:49:59.000019
Glinda
pythondev_help_Glinda_2017-12-19T19:49:59.000019
1,513,712,999.000019
105,063
pythondev
help
Oh nice, good luck with it man. Working on anything you can disclose?
2017-12-19T19:50:22.000298
Corrinne
pythondev_help_Corrinne_2017-12-19T19:50:22.000298
1,513,713,022.000298
105,064
pythondev
help
Just trying to automate a work process
2017-12-19T19:50:40.000159
Glinda
pythondev_help_Glinda_2017-12-19T19:50:40.000159
1,513,713,040.000159
105,065
pythondev
help
I could maybe use python subprocess to `curl`?
2017-12-19T19:51:13.000196
Glinda
pythondev_help_Glinda_2017-12-19T19:51:13.000196
1,513,713,073.000196
105,066
pythondev
help
<@Corrinne> it's really not very interesting. most of my work lately has been helping universities get students into our library more easily
2017-12-19T19:51:20.000356
Frieda
pythondev_help_Frieda_2017-12-19T19:51:20.000356
1,513,713,080.000356
105,067
pythondev
help
<@Glinda> i mean...you could...but i'd probably spend my time figuring out why the other two are blocked. especially `requests`
2017-12-19T19:51:55.000241
Frieda
pythondev_help_Frieda_2017-12-19T19:51:55.000241
1,513,713,115.000241
105,068
pythondev
help
Well I hope you enjoy it at least. That's the important part
2017-12-19T19:52:35.000289
Corrinne
pythondev_help_Corrinne_2017-12-19T19:52:35.000289
1,513,713,155.000289
105,069
pythondev
help
did all the logic look otherwise ok in my code? specifically the loop at the bottom? getting some funny results, math isnt my strong suit
2017-12-19T19:52:43.000329
Fabian
pythondev_help_Fabian_2017-12-19T19:52:43.000329
1,513,713,163.000329
105,070
pythondev
help
yeah, so far, so good
2017-12-19T19:52:45.000014
Frieda
pythondev_help_Frieda_2017-12-19T19:52:45.000014
1,513,713,165.000014
105,071
pythondev
help
<@Fabian> honestly not sure what you were trying to accomplish so i just cut that part. explain, in english, what you're looking to do?
2017-12-19T19:53:19.000296
Frieda
pythondev_help_Frieda_2017-12-19T19:53:19.000296
1,513,713,199.000296
105,072
pythondev
help
ah ok give me one sec, its a little complex, or at least I think
2017-12-19T19:53:46.000032
Fabian
pythondev_help_Fabian_2017-12-19T19:53:46.000032
1,513,713,226.000032
105,073
pythondev
help
<@Fabian> You definitely don't need to be a math genius to learn. Just try and break it down into logical steps
2017-12-19T19:54:18.000197
Corrinne
pythondev_help_Corrinne_2017-12-19T19:54:18.000197
1,513,713,258.000197
105,074
pythondev
help
(that's why i said "in english" :smile: )
2017-12-19T19:54:34.000020
Frieda
pythondev_help_Frieda_2017-12-19T19:54:34.000020
1,513,713,274.00002
105,075
pythondev
help
that makes sense
2017-12-19T19:54:56.000078
Fabian
pythondev_help_Fabian_2017-12-19T19:54:56.000078
1,513,713,296.000078
105,076
pythondev
help
Yeah English would help too :yum:
2017-12-19T19:55:12.000141
Corrinne
pythondev_help_Corrinne_2017-12-19T19:55:12.000141
1,513,713,312.000141
105,077
pythondev
help
gotta get out of that code mindset
2017-12-19T19:55:16.000049
Frieda
pythondev_help_Frieda_2017-12-19T19:55:16.000049
1,513,713,316.000049
105,078
pythondev
help
<@Frieda> I know this is an open ended question, but what was the most effective way for you to learn Python / Development?
2017-12-19T19:57:28.000260
Corrinne
pythondev_help_Corrinne_2017-12-19T19:57:28.000260
1,513,713,448.00026
105,079
pythondev
help
uh. i built things
2017-12-19T19:57:51.000036
Frieda
pythondev_help_Frieda_2017-12-19T19:57:51.000036
1,513,713,471.000036
105,080
pythondev
help
i mean, where do you want me to start? when i first learned any sort of "coding"?
2017-12-19T19:58:11.000087
Frieda
pythondev_help_Frieda_2017-12-19T19:58:11.000087
1,513,713,491.000087
105,081
pythondev
help
or learning python specifically?
2017-12-19T19:58:14.000364
Frieda
pythondev_help_Frieda_2017-12-19T19:58:14.000364
1,513,713,494.000364
105,082
pythondev
help
Ok that was the answer I was hoping for / expecting
2017-12-19T19:58:15.000195
Corrinne
pythondev_help_Corrinne_2017-12-19T19:58:15.000195
1,513,713,495.000195
105,083
pythondev
help
or how i learn stuff now?
2017-12-19T19:58:24.000366
Frieda
pythondev_help_Frieda_2017-12-19T19:58:24.000366
1,513,713,504.000366
105,084
pythondev
help
Early days
2017-12-19T19:58:31.000149
Corrinne
pythondev_help_Corrinne_2017-12-19T19:58:31.000149
1,513,713,511.000149
105,085
pythondev
help
Ok so have to use a little code, what im trying to determine, is what exactly this is doing, `y = h * row + start_y + major_rows_h * row_m` ive been trying to get the right measurements using gimp,, and i believe im manipluating the height between the major rows here, and my estimates are way off, so im not sure if th...
2017-12-19T19:58:44.000205
Fabian
pythondev_help_Fabian_2017-12-19T19:58:44.000205
1,513,713,524.000205
105,086
pythondev
help
Did you just pick a project, start building it and work everything out on the way?
2017-12-19T19:58:58.000069
Corrinne
pythondev_help_Corrinne_2017-12-19T19:58:58.000069
1,513,713,538.000069
105,087
pythondev
help
so, i'm old. i learned BASIC in elementary and middle school. then taught myself HTML on a computer that wasn't connected to the WWW (_HTML For Dummies_ shoutout) and i snuck floppy disks into the public library to upload my web site to GeoCities
2017-12-19T19:59:43.000148
Frieda
pythondev_help_Frieda_2017-12-19T19:59:43.000148
1,513,713,583.000148
105,088
pythondev
help
Haha, awesome
2017-12-19T20:00:01.000225
Corrinne
pythondev_help_Corrinne_2017-12-19T20:00:01.000225
1,513,713,601.000225
105,089
pythondev
help
<@Fabian> you understand PEMDAS?
2017-12-19T20:00:05.000268
Frieda
pythondev_help_Frieda_2017-12-19T20:00:05.000268
1,513,713,605.000268
105,090
pythondev
help
Yeah its been a while but yes
2017-12-19T20:00:19.000062
Fabian
pythondev_help_Fabian_2017-12-19T20:00:19.000062
1,513,713,619.000062
105,091
pythondev
help
<@Corrinne> was that a bit earlier than you wanted?
2017-12-19T20:00:20.000136
Frieda
pythondev_help_Frieda_2017-12-19T20:00:20.000136
1,513,713,620.000136
105,092
pythondev
help
<@Fabian> parentheses, exponents, multiplication, division, addition, subtraction
2017-12-19T20:00:39.000018
Frieda
pythondev_help_Frieda_2017-12-19T20:00:39.000018
1,513,713,639.000018
105,093
pythondev
help
No not at all. I find it interesting to known where everyone started their journey
2017-12-19T20:00:44.000317
Corrinne
pythondev_help_Corrinne_2017-12-19T20:00:44.000317
1,513,713,644.000317
105,094
pythondev
help
Wish I had started earlier. But I'm only just creeping up to 30 :thinking_face:
2017-12-19T20:01:22.000222
Corrinne
pythondev_help_Corrinne_2017-12-19T20:01:22.000222
1,513,713,682.000222
105,095
pythondev
help
<@Fabian> so that line multiplies `h` by `row` (I'll call that `x`), then `major_rows_h` by `row_m` (`z`). then it adds `x` to `start_y` and the sum of that to `z` . finally it assigns the sum of that to `y`
2017-12-19T20:01:40.000319
Frieda
pythondev_help_Frieda_2017-12-19T20:01:40.000319
1,513,713,700.000319
105,096
pythondev
help
<@Corrinne> there's no max age on programming
2017-12-19T20:01:59.000227
Frieda
pythondev_help_Frieda_2017-12-19T20:01:59.000227
1,513,713,719.000227
105,097
pythondev
help
one of the reasons i went to ORM was because i got interviewed by a recent hire who looked to be in their 50s
2017-12-19T20:02:22.000019
Frieda
pythondev_help_Frieda_2017-12-19T20:02:22.000019
1,513,713,742.000019
105,098
pythondev
help
The thing I realised shortly after starting to learn python / Web dev, is that you need to grasp a whole load of other technologies to put it to good use
2017-12-19T20:02:30.000203
Corrinne
pythondev_help_Corrinne_2017-12-19T20:02:30.000203
1,513,713,750.000203
105,099
pythondev
help
web dev is one of the hardest disciplines because you have to understand so many moving parts
2017-12-19T20:02:52.000356
Frieda
pythondev_help_Frieda_2017-12-19T20:02:52.000356
1,513,713,772.000356
105,100
pythondev
help
I think I see
2017-12-19T20:03:00.000172
Fabian
pythondev_help_Fabian_2017-12-19T20:03:00.000172
1,513,713,780.000172
105,101
pythondev
help
frameworks, servers, git, docker, aws, app engine etc..
2017-12-19T20:03:07.000031
Corrinne
pythondev_help_Corrinne_2017-12-19T20:03:07.000031
1,513,713,787.000031
105,102